NAME

mode_filter - Applies a mode filter on a series of images.

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 mode_filter
(
	KJB_image_vector *ivp,
	KJB_image **output_image
);

DESCRIPTION

This filter applies the mode filter on all RGB combinations. In this case, we define the mode as the most common RGB combination because of the difficulty of classifying a mode for 3 dimensions. It sorts the pixels first and then walks through the array of images looking for the most popular pixel (mode) per row and col of the image.

RETURNS

On error, it sets an error message and returns ERROR On success, it returns NO_ERROR

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

compare_pixel