NAME

get_registered_image_pixels - Puts registered valid pixels from 2 images into arrays

SYNOPSIS

#include "i/i_data.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_registered_image_pixels
(
	const KJB_image *ip1,
	const KJB_image *ip2,
	Matrix **mp1_ptr,
	Matrix **mp2_ptr,
	int **invalid_registered_ptr
);

DESCRIPTION

This selects all pixels locations which have valid pixels in both the input images and puts the pixels for each of the input images into the corresponding output matrices. The two matrices thus will have the same number of rows. If either of the target matrices *mp1_ptr or *mp2_ptr are NULL, then they are created. If either are the wrong size, then they are resized. Finally, if either are the right size, then the storage is recycled as is.

RETURNS

NO_ERROR on success, and ERROR on failure, with an appropriate error message being set.

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

get_image_pixels