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

Compared to Zncc, remove some robustness features, but add a lot of optimizations. More...


Detailed Description

Compared to Zncc, remove some robustness features, but add a lot of optimizations.

Definition at line 52 of file zncc.hpp.

#include <zncc.hpp>

List of all members.

Static Public Member Functions

static double compute (image::Image const &im1, image::Image const &im2, double sum1, double sumSqr1, double sum2, double sumSqr2, double minScore, int partialLine, double partialSum1, double partialSumSqr1, double partialSum2, double partialSumSqr2)
 This function computes the ZNCC between two images of the same depth in two regions of interest that must have the same size, and use precomputed sums and squaredSums (that should provide from integral images), and some other optimizations.
static double computeChar (image::Image const &im1, image::Image const &im2, double sum1, double sumSqr1, double sum2, double sumSqr2, double minScore, int partialLine, double partialSum1, double partialSumSqr1, double partialSum2, double partialSumSqr2)
 This version can more easily be inlined, which can increase the speed by 10%, but only manages CV_8U images.

Static Private Member Functions

template<int depth, typename worktype >
static double computeTpl (image::Image const &im1, image::Image const &im2, double sum1, double sumSqr1, double sum2, double sumSqr2, double minScore, int partialLine, double partialSum1, double partialSumSqr1, double partialSum2, double partialSumSqr2)

Member Function Documentation

double jafar::correl::FastZncc::compute ( image::Image const &  im1,
image::Image const &  im2,
double  sum1,
double  sumSqr1,
double  sum2,
double  sumSqr2,
double  minScore,
int  partialLine,
double  partialSum1,
double  partialSumSqr1,
double  partialSum2,
double  partialSumSqr2 
) [inline, static]

This function computes the ZNCC between two images of the same depth in two regions of interest that must have the same size, and use precomputed sums and squaredSums (that should provide from integral images), and some other optimizations.

Parameters:
im1_the first image
im2_the second image
sum1the sum of all the pixels of the first image
sumSqr1the sum of the square of all the pixels of the first image
sum2the sum of all the pixels of the second image
sumSqr2the sum of the square of all the pixels of the second image
minScorethe minimum score for which we want a result (if the real score is below, 0 will be returned)
halfLinethe line number at which the half test will be done: if in the best case it is impossible to reach minScore, then correlation is stopped and 0 is returned
halfSumSqr1the sum of the square of the pixels of the first image from halfLine+1 to the end of the image

Definition at line 162 of file zncc.hpp.

References jafar::image::Image::depth(), and JFR_PRECOND.


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