LLIPS  rev33
Light Library for Image ProcesS
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
llips_contrastdetect.h File Reference

About contrast and edge detection on image. More...

Go to the source code of this file.

Macros

#define HOR   0x0001
 
#define VER   0x0002
 
#define DIAG   0x0004
 

Functions

CPU_CHAR search_contrast (CPU_CHAR tolerance, t_img *img_in1, t_img *img_out, CPU_INT32U RGB, CPU_INT32U color, CPU_CHAR direction)
 Search constrast between two adjacent pixel. More...
 

Detailed Description

About contrast and edge detection on image.

Author
MPE

Definition in file llips_contrastdetect.h.

Macro Definition Documentation

#define DIAG   0x0004

Definition at line 14 of file llips_contrastdetect.h.

#define HOR   0x0001

Definition at line 12 of file llips_contrastdetect.h.

#define VER   0x0002

Definition at line 13 of file llips_contrastdetect.h.

Function Documentation

CPU_CHAR search_contrast ( CPU_CHAR  tolerance,
t_img img_in1,
t_img img_out,
CPU_INT32U  RGB,
CPU_INT32U  color,
CPU_CHAR  direction 
)

Search constrast between two adjacent pixel.

Parameters
toleranceCPU_CHAR - tolerance in % between two pixel
img_in1t_img* - input image
img_outt_img* - output image
RGBCPU_INT32U - replacement color for detected pixel
colorCPU_INT32U - range of color to work on
directionCPU_CHAR - HOR,VER or DIAG to indicate direction of detection
Returns
CPU_CHAR - status of search

Search constrast between two adjacent pixel on a given direction, according to a color

Definition at line 34 of file llips_contrastdetect.c.