Back to FabImage Library website
You are here: Start » Function Reference » Image Metrics » ImageDifference_Deprecated

ImageDifference_Deprecated
Header: | FIL.h |
---|---|
Namespace: | fil |
Measures dissimilarity between two images.
Syntax
C++
void fil::ImageDifference_Deprecated ( const fil::Image& inImage, const fil::Image& inPatternImage, ftl::Optional<const fil::Region&> inRoi, fil::DistanceMeasure::Type inDistanceMeasure, float& outDifference )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inPatternImage | const Image& | Pattern to be compared with input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
inDistanceMeasure | DistanceMeasure::Type | Measure of distance | |
![]() |
outDifference | float& | Value of difference between pattern and image |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: UINT8 (for inDistanceMeasure = MeanError).
This operation is optimized for SSE3 technology for pixels of types: UINT16 (for inDistanceMeasure = MeanError), UINT8 (for inDistanceMeasure = MeanSquaredError), REAL.
This operation is optimized for SSE4 technology for pixels of types: INT16, UINT16 (for inDistanceMeasure = MeanSquaredError).
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported distance measure in ImageDifference. |