 | 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
Syntaxpublic static double Compare(
Bitmap imageA,
Bitmap imageB
)
Public Shared Function Compare (
imageA As Bitmap,
imageB As Bitmap
) As Double
Parameters
- imageA
- Type: System.DrawingBitmap
The first image. - imageB
- Type: System.DrawingBitmap
The second image.
Return Value
Type:
DoubleThe similarity of the two images.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If imageA is null. |
| ArgumentNullException | If imageB is null. |
| ArgumentException | If the bitmap format of the imageB
cannot be converted to that of the imageA. |
RemarksA 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