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

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

static double jafar::correl::Zncc::compute ( image::Image const &  im1,
image::Image const &  im2,
float const *  weightMatrix = NULL 
) [static]

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:
im1the second image ; the roi can be set (with Image::setROI)
im2the second image ; the roi can be set (with Image::setROI) and must have the same size than the first one
weightMatrixthe 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
static double jafar::correl::Zncc::exploreRotation ( image::Image const *  im1,
image::Image const *  im2,
int  rotationStep 
) [static]

This function return the best ZNCC between two images, the second images get rotated.

Parameters:
im1the first image ; the roi can be set (with set_roi(CvRect))
im2the second image ; the roi can be set (with set_roi(CvRect)) and must have the same size than the first one
rotationStepthe step used for the applied rotation

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