![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Computes the Normalized Cross Correlation between an image and a kernel. More...
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg (const image::ImageConstPtr &pInImg2d, const KernelXYConstPtr &pInKnlXY) |
| wrapper function for Computes the Normalized Cross Correlation between an image and a kernel More... | |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg (const image::ImageConstPtr &pInImg2d, const KernelXYConstPtr &pInKnlXY, const image::ImagePtr &pOutRealImg) |
| wrapper function for Computes the Normalized Cross Correlation between an image and a kernel More... | |
| IPSDKIPLFILTERING_API image::ImagePtr | ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg (const image::ImageConstPtr &pInImg2d, const image::ImageConstPtr &pInKnlImg2d) |
| wrapper function for Computes the Normalized Cross Correlation between an image and a kernel More... | |
| IPSDKIPLFILTERING_API void | ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg (const image::ImageConstPtr &pInImg2d, const image::ImageConstPtr &pInKnlImg2d, const image::ImagePtr &pOutRealImg) |
| wrapper function for Computes the Normalized Cross Correlation between an image and a kernel More... | |
Computes the Normalized Cross Correlation between an image and a kernel.
The two dimensional Normalized Cross-Correlation (NCC) between an image
and a template
is a similarity measure, which is defined in spatial domain as follows :
Where
represents the coordinates of a pixel,
is the mean of
in the neighbourhood defined by the kernel and
is the mean of
.
The kernel describes the template to match with the input image. Typically, it represents a region of interest of an altered version of the input image (deformation, noise, ...).
To improve the algorithm peformances, it is recommanded to extract a search area from the initial image to reduce the number of processed data. This area will be given to the algorithm as the input image
.
Here is an example of an image, a template to match and the resulting NCC :
As displayed by the colorbar, low values are represented in blue and high values are represented in red. The position of the maximum of the NCC indicates the location of the center of the patch in the image which matches the most with the template.
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg2d | [Input] 2d image for operation | X |
| ipsdk::imaproc::attr::InKnlXY | [Input] kernel xy for processing operation | X |
| ipsdk::imaproc::attr::OutRealImg | [Output] image for processing operation (data contained in image buffer are reals) | ipsdk::imaproc::duplicateInOut (_pOutRealImg, _pInImg2d, ipsdk::image::eImageBufferType::eIBT_Real32) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInImg2d,_pOutRealImg)
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg | ( | const image::ImageConstPtr & | pInImg2d, |
| const KernelXYConstPtr & | pInKnlXY | ||
| ) |
wrapper function for Computes the Normalized Cross Correlation between an image and a kernel
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg | ( | const image::ImageConstPtr & | pInImg2d, |
| const KernelXYConstPtr & | pInKnlXY, | ||
| const image::ImagePtr & | pOutRealImg | ||
| ) |
wrapper function for Computes the Normalized Cross Correlation between an image and a kernel
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg | ( | const image::ImageConstPtr & | pInImg2d, |
| const image::ImageConstPtr & | pInKnlImg2d | ||
| ) |
wrapper function for Computes the Normalized Cross Correlation between an image and a kernel
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::normalizedCrossCorrelation2dImg | ( | const image::ImageConstPtr & | pInImg2d, |
| const image::ImageConstPtr & | pInKnlImg2d, | ||
| const image::ImagePtr & | pOutRealImg | ||
| ) |
wrapper function for Computes the Normalized Cross Correlation between an image and a kernel
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14