SoBinaryCorrelationProcessing2d engine More...
#include <ImageViz/Engines/GeometryAndMatching/PatternRecognition/SoBinaryCorrelationProcessing2d.h>
Classes | |
class | SbCorrelationDetail |
Results details of image correlation. More... | |
Public Types | |
enum | OffsetMode { OFFSET_1 = 0, OFFSET_2 = 1, OFFSET_4 = 2, OFFSET_8 = 3 } |
Public Member Functions | |
SoBinaryCorrelationProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inBinaryImage |
SoSFImageDataAdapter | inBinaryKernel |
SoSFEnum | offsetMode |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outMatchingImage |
SoImageVizEngineAnalysisOutput < SbCorrelationDetail > | outResult |
SoBinaryCorrelationProcessing2d performs the logical correlation between a binary image and a binary kernel.
Notations:
The binary correlation between image I and kernel K is defined as:
At the end of the processus, the correlation image is normalized between -1 and 1.
Figure 1: Example of SoBinaryCorrelationProcessing2d
When a part of the kernel lies beyond the edge of the image, the correlation is not computed on the border. In which case, the values are set to -3e38.
Note: The SoBinaryCorrelationProcessing2d filter does not accept a mask AOI attached to the kernel image.
inBinaryImage | NULL |
inBinaryKernel | NULL |
offsetMode | OFFSET_1 |
See Correlation.
SoBinaryCorrelationProcessing2d::SoBinaryCorrelationProcessing2d | ( | ) |
Constructor.
The input binary image.
Default value is NULL. Supported types include: binary color image.
The correlation kernel.
Default value is NULL. Supported types include: binary color image.
Select the calculation offset (number of pixels).
Use enum OffsetMode. Default is OFFSET_1
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoBinaryCorrelationProcessing2d::outMatchingImage |
The output correlation image.
Default value is NULL. Supported types include: grayscale color image.
The correlation matching results.
Default value is NULL.