NAME
sample_image - Selects middle pixel from image blocks
SYNOPSIS
#include "i/i_ave.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 sample_image
(
KJB_image **out_ipp,
const KJB_image *in_ip,
int row_count,
int col_count
);
DESCRIPTION
This routine selects the middle pixel of each row_count by col_count
rectangle of an image.
The output is put into the *out_ipp. If *out_ipp is NULL, then it is
created. If it is the wrong size, then it is resized. If it is the right
size, the storage is recycled as is.
RETURNS
NO_ERROR on success and ERROR on failure, with an error message being set.
images, image average, image sampling, image smoothing
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
set_image_average_options
,
ave_image
,
ave_image_without_invalid
,
median_filter_image