[mmisbinary] [Up] [mmislesseq] Relations

mmisequal
Verify if two images are equal

Synopsis

boo = mmisequal ( f1 , f2 )

Input

f1 Image Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image

f2 Image Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image

Output

boo Boolean

Description

mmisequal compares the images f1 and f2 and returns true (1), if f1(x)=f2(x) , for all pixel x, and false (0), otherwise.

Examples

f1 = uint8(arange(4))
print f1
[0 1 2 3]
f2 = uint8([9, 5, 3, 3])
print f2
[9 5 3 3]
f3 = f1
mmisequal(f1,f2)
0.0
mmisequal(f1,f3)
1.0

Equation

See also

mmfreedom Control automatic data type conversion.
mmis Verify if a relationship among images is true or false.
mmcmp Compare two images pixelwisely.
[mmisbinary] [Up] [mmislesseq]