Detailed Description
Zncc class.
Definition at line 21 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, float const *weightMatrix=NULL) |
| This function computes the ZNCC between two images of the same depth in two regions of interest that can be of different size if on the border of theimage, and can apply a spatially distributed weight.
|
static double | compute8noborne (image::Image const &im1, image::Image const &im2) |
static double | exploreRotation (image::Image const *im1, image::Image const *im2, int rotationStep) |
| This function return the best ZNCC between two images, the second images get rotated.
|
Static Private Member Functions |
template<int depth, typename worktype , typename bornetype , bornetype borneinf, bornetype bornesup, bool useBornes, bool useWeightMatrix> |
static double | computeTpl (image::Image const &im1, image::Image const &im2, float const *weightMatrix=NULL) |
Member Function Documentation
This function computes the ZNCC between two images of the same depth in two regions of interest that can be of different size if on the border of theimage, and can apply a spatially distributed weight.
It ignores pixels with extremum value (eg 0 and 255 for char), and ignores parts outside of images, but requires at least half of pixels not ignored to return non 0.
- Parameters:
-
im1 | the second image ; the roi can be set (with Image::setROI) |
im2 | the second image ; the roi can be set (with Image::setROI) and must have the same size than the first one |
weightMatrix | the weight matrix that must have the same size than the regions of interest ; if NULL not used |
- Returns:
- ZNCC correlation score between 0 and 1
This function return the best ZNCC between two images, the second images get rotated.
- Parameters:
-
im1 | the first image ; the roi can be set (with set_roi(CvRect)) |
im2 | the second image ; the roi can be set (with set_roi(CvRect)) and must have the same size than the first one |
rotationStep | the step used for the applied rotation |
The documentation for this class was generated from the following file: