LLIPS
rev33
Light Library for Image ProcesS
|
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... | |
About contrast and edge detection on image.
Definition in file llips_contrastdetect.h.
#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.
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.
tolerance | CPU_CHAR - tolerance in % between two pixel |
img_in1 | t_img* - input image |
img_out | t_img* - output image |
RGB | CPU_INT32U - replacement color for detected pixel |
color | CPU_INT32U - range of color to work on |
direction | CPU_CHAR - HOR,VER or DIAG to indicate direction of detection |
Search constrast between two adjacent pixel on a given direction, according to a color
Definition at line 34 of file llips_contrastdetect.c.