Image.sameas#
- Image.sameas(other: object, colororder: bool = True) bool[source][source]#
Compare two images for exact equality and return a scalar bool.
- Parameters:
- Returns:
exact image equality test
- Return type:
Unlike
==, which returns an element-wise boolean Image, this method returnsTrueonly if:otheris anImageimage shape is identical
image dtype is identical
color order is identical (if
colororderisTrue)all pixel values are identical
Examples