dmIImageShift Class Reference

Compute shift between related images using correlations. More...

#include <CCI_ImageShift.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool Compute (cci_object *params, dm_point &p, dm_uint index, dm_uint flags=0)
 Compute shift.
bool CropImages (cci_object *params, cci_object *imagelist, dm_rect *testarea, dm_uint index=-1, dm_uint flags=0)
 Crop images relatively to the computed image shift from a reference image.


Detailed Description

Compute shift between related images using correlations.


Member Function Documentation

bool dmIImageShift::Compute cci_object *  params,
dm_point &  p,
dm_uint  index,
dm_uint  flags = 0
[inline]
 

Compute shift.

Compute the shift between the image parameter and the buffer index. The rectangular area given by the ROI parameter will be used as the test area. p is the top left coordinates of the test area for the image in buffer. Shift vector will be returned in point.

bool dmIImageShift::CropImages cci_object *  params,
cci_object *  imagelist,
dm_rect *  testarea,
dm_uint  index = -1,
dm_uint  flags = 0
[inline]
 

Crop images relatively to the computed image shift from a reference image.

This method will crop all images in imagelist so as to match the reference image determined by the index parameter value.

Parameters:
params a dmIParameters object.
imagelist the imagelist to process (the whole list is processed)
testarea the rectangle wich define the test area for the correlation If null then the test will be located at center of the reference image.
index the buffer index that designate the referenceimage from the imagelist held by the param object. If set to -1, the image is taken out from the default image held by the params object.
flags flags options that modify processing
Note:
The reference image can be an image from the imagelist parameter.
See also:
dmIParameters for details about the params interface.


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO