NAME

segment_from_background - Segments image chunks from the background

SYNOPSIS

#include "v/v_chunk.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 segment_from_background
(
	const KJB_image *ip,
	int (*is_background_pixel_fn)(Pixel),
	Image_chunk_info **image_chunk_info_ptr_ptr
);

DESCRIPTION

This routine segments the image chunks from the background, given a function which computes whether or not a pixel is a background pixel. The routine compute a list of chunks which are a pixel count and a list of pixels. The pixels themselves are the pixel values and their coordinates.

RETURNS

The number of image chunks greater than a requested size on sucess and ERROR on failure.

DISCLAIMER

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

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard