Jafar
|
Compared to Zncc, remove some robustness features, but add a lot of optimizations. More...
Compared to Zncc, remove some robustness features, but add a lot of optimizations.
#include <zncc.hpp>
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) |
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.
im1_ | the first image |
im2_ | the second image |
sum1 | the sum of all the pixels of the first image |
sumSqr1 | the sum of the square of all the pixels of the first image |
sum2 | the sum of all the pixels of the second image |
sumSqr2 | the sum of the square of all the pixels of the second image |
minScore | the minimum score for which we want a result (if the real score is below, 0 will be returned) |
halfLine | the 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 |
halfSumSqr1 | the 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.
Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1 |