/* --------------- */ /* --- nrlut.c --- */ /* --------------- */ /* * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved * Univ Paris Sud XI, CNRS * * Distributed under the Boost Software License, Version 1.0 * see accompanying file LICENSE.txt or copy it at * http://www.boost.org/LICENSE_1_0.txt */ /* * 2002/06/11 ajout des fonctions endline */ #include #include #include #include // fabs #include "mypredef.h" #include "nrtype.h" #include "nrdef.h" #include "nrmacro.h" #include "nrkernel.h" #include "nrlut.h" /* ----------------------------------------------------------------------- */ IMAGE_EXPORT(void) init_blut(byte *v, int nl, int nh, int n0, int n1, byte k) /* ----------------------------------------------------------------------- */ { int i; if(nl<=nh) { // normal case for(i=nl; i< n0; i++) v[i] = 0; for(i=n0; i<=n1; i++) v[i] = k; for(i=n1+1; i