 /*
  * Khoros: $Id: lvclose.h,v 1.1 1991/05/10 04:15:50 khoros Exp $
  */

 /*
  * $Log: lvclose.h,v $
 * Revision 1.1  1991/05/10  04:15:50  khoros
 * Initial revision
 *
  */ 

int           j_dim,
              i_dim,
                     lg_min_ch_front,
                     direction,
                     coef_seuil_grdt;
unsigned char *im,
                     *im_grdt;
short         *im_ctr;

#define CONTOUR -1
#define CDAT_CTR -2
#define FOND 0
#define VIDE 0
#define NUL -1
#define FALSE 0
#define TRUE 1
#define SUCCES 1
#define POINT_CONTOUR(POINT) ( (im_ctr[(POINT)] == (CONTOUR)) || (im_ctr[(POINT)] == (CDAT_CTR)))
#define COLORIER(POINT,COULEUR) (im_ctr[(POINT)] = (COULEUR))
#define GRADIENT(POINT) im_grdt[POINT]
#define MALLOC(TYPE) ((TYPE *)malloc(sizeof(TYPE)))

struct s_pile_cdats
      {
       int point,
           candidat;
       struct s_pile_cdats *suivant;
      };
typedef struct s_pile_cdats t_pile_cdats;

int voisinage[8],
    cde_dir[3][3]={{3,2,1},{4,0,8},{5,6,7}};
static int seuil_grdt, 
           couleur;
static t_pile_cdats *sommet_pile_cdats;

