NAME
get_image_window - Extracts a window from an image
SYNOPSIS
#include "i/i_float.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 get_image_window
(
KJB_image **target_ipp,
const KJB_image *source_ip,
int row_offset,
int col_offset,
int num_target_rows,
int num_target_cols
);
DESCRIPTION
This routine extracts a window from the float image pointed to by the input
parameter "source_ip" into *target_ipp which is created are reszied as
needed. The window is specified by its minimum col (arg "row_offset") and
minimum row (arg "col_offset") and its dimensions (args "num_target_rows" and
"num_target_cols").
RETURNS
NO_ERROR 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
SEE ALSO
kjb_create_image
,
kjb_free_image
,
kjb_copy_image
,
get_zero_image
,
get_invalid_zero_image
,
get_initialized_image
,
get_initialized_image_2
,
get_target_image