NAME

compare_pixel - Compares pixel values as a 3-digit number.

SYNOPSIS

#include "i/i_mode_filter.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int compare_pixel
(
	const void *pixel1,
	const void *pixel2
);

DESCRIPTION

This method establishes a partial-order among pixels. R = 100s, G = 10s, B = 1s. For example, 255 170 100 > 255 173 159 > 254 170 159.

RETURNS

1 if pixel1's value > pixel2's value -1 if pixel1's value < pixel2's value 0 if pixel1's value = pixel2's value

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Qiyam Tung

DOCUMENTER

Qiyam Tung

SEE ALSO

mode_filter