Provides images comparison options.
typedef struct COMPAREOPTIONS
{
L_UINT uStructSize;
L_UINT uThreshold;
L_COLORREF crReferenceBackground;
L_COLORREF crReferenceForeground;
L_COLORREF crModifiedBackground;
L_COLORREF crModifiedForeground;
L_COLORREF crOutputExternal;
L_COLORREF crOutputBackground;
L_COLORREF crOutputMatch;
L_COLORREF crOutputAddition;
L_COLORREF crOutputDeletion;
L_COLORREF crOutputChange;
} COMPAREOPTIONS, * pCOMPAREOPTIONS;
Must be set to sizeof(COMPAREOPTIONS)
.
The range in color values allowed and still be considered the same color. The distance is calculated in Euclidean RGB color space using the following equation:
The color used to identify the background content within the reference image.
The color used to identify the foreground content (such as text), within the reference image.
The color used to identify the background content within the modified image.
The color used to identify the foreground content (such as text), within the modified image.
The color used in the generated image to indicate pixels which were not part of either image.
The color used in the generated image to indicate pixels which were equivalent to the background in both images.
The color used in the generated image to indicate pixels which were equal in both images.
The color used in the generated image to indicate pixels which were background content in the reference image, but not in the modified image. Additionally, any pixels within the bounds of the modified image but were not within the bounds of the reference image will be marked with this color.
The color used in the generated image to indicate pixels which were background content in the modified image, but not in the reference image. Additionally, any pixels within the bounds of the reference image but were not within the bounds of the modified image will be marked with this color.
The color used in the generated image to indicate pixels which were different in both images (but were neither an addition nor deletion).
For an example, refer to L_CompareBitmap.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document