Click or drag to resize
Ranorex

ImagingCompare Method (Bitmap, Bitmap)

Compares imageA and imageB and returns their similarity.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static double Compare(
	Bitmap imageA,
	Bitmap imageB
)

Parameters

imageA
Type: System.DrawingBitmap
The first image.
imageB
Type: System.DrawingBitmap
The second image.

Return Value

Type: Double
The similarity of the two images.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf imageA is null.
ArgumentNullExceptionIf imageB is null.
ArgumentExceptionIf the bitmap format of the imageB cannot be converted to that of the imageA.
Remarks
A similarity of zero will be returned if the two images do not have the same size. No preprocessing or clipping is done on the specified images.
See Also