Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Metrics » CompareImages
CompareImages
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationPro |
Compares two images tile by tile using one of several available methods.
Syntax
C++
C#
void avl::CompareImages ( const avl::Image& inImage1, const avl::Image& inImage2, avl::CompareMeasure::Type inMeasure, int inTileSize, int inDensity, avl::Image& outImage )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage1 | const Image& | First input image | ||
![]() |
inImage2 | const Image& | Second input image | ||
![]() |
inMeasure | CompareMeasure::Type | DSSIM | ||
![]() |
inTileSize | int | 1 - ![]() |
25 | |
![]() |
inDensity | int | 1 - ![]() |
||
![]() |
outImage | Image& | Output image |
Description
The operation compares two images tile by tile using one of the following methods:
- Value - Sum of absolute differences divided by tile area
- NCC - Normalized cross-correlation
- DSSIM - Structural dissimilarity
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Formats of input images differ in CompareImages. |
| DomainError | Images sizes are not equal in CompareImages. |
| DomainError | Not supported measure type in CompareImages. |
See Also
- ColorDistanceImage – Compares each pixel with the specified color using chromatic and non-chromatic information.



