Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
jafar::correl::FastTranslationMatcherZncc Class Reference

Detailed Description

Definition at line 54 of file explorer.hpp.

List of all members.

Public Member Functions

 FastTranslationMatcherZncc (double minScore, double partialPosition)
double match (image::Image const &im1, image::Image const &im2_, image::ConvexRoi const &roi, double &xres, double &xstd, double &ystd, double &yres, cv::Mat **results_=NULL)
 This function explores translation to find the best correlation score.

Protected Member Functions

void doCorrelationFast (image::Image const &im1, image::Image &im2, int x, int y, cv::Rect const &patch_in_im1, cv::Rect const &hpatch_in_im1, int &bestx, int &besty, double &best_score, cv::Rect const &int_in_im2, double sum1, double sumSqr1, cv::Mat const &sum2_, cv::Mat const &sumSqr2_, double minScore, int partialLine, double partialSum1, double partialSumSqr1, cv::Rect const &result_in_im2, cv::Mat *results)
void doCorrelationRobust (image::Image const &im1, image::Image &im2, int x, int y, cv::Rect const &patch_in_im1, cv::Rect const &hpatch_in_im1, int &bestx, int &besty, double &best_score, cv::Rect const &result_in_im2, bool force, cv::Mat *results)
void rawExploreTranslationFast (image::Image const &im1, image::Image &im2, image::ConvexRoi const &roi_in_im2, int &bestx, int &besty, double &best_score, double minScore, int partialLine, cv::Rect const &result_in_im2, cv::Mat *results)
void rawExploreTranslationRobust (image::Image const &im1, image::Image &im2, image::ConvexRoi const &roi_in_im2, int &bestx, int &besty, double &best_score, cv::Rect const &result_in_im2, cv::Mat *results)

Private Attributes

double minScore
double partialPosition

Constructor & Destructor Documentation

jafar::correl::FastTranslationMatcherZncc::FastTranslationMatcherZncc ( double  minScore,
double  partialPosition 
) [inline]
Parameters:
minScorethe minimum score under which you don't care about the result
partialPositionat line (int)(im1.height*partialPosition), a test is is done to know if it is still possible to improve the score

Definition at line 82 of file explorer.hpp.


Member Function Documentation

double jafar::correl::FastTranslationMatcherZncc::match ( image::Image const &  im1,
image::Image const &  im2_,
image::ConvexRoi const &  roi,
double &  xres,
double &  xstd,
double &  ystd,
double &  yres,
cv::Mat **  results_ = NULL 
)

This function explores translation to find the best correlation score.

Parameters:
im1the image representing the patch that is searched in im2 (you can set the ROI)
im2the image where the patch represented by im1 is searched
roithe search region in im2 (region where the center of im1 can be)
xres,yresthe result position in im2 of maximum correlation
resultseither NULL, or a pointer to a cv::Mat of type CV_64FC1 and size (roi.width()+2) * (roi.height()+2). It contains the result score of the correlation, in [-1,1], with special values -4 (never computed), -3 (no computation because too few pixels) and -2 (computation aborted because it wouldn't improve the best score)
Returns:
score of best correlation

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS