assert_images_equal#
- lsst.images.tests.assert_images_equal(a, b, *, rtol=0.0, atol=0.0, expect_view=None)#
Assert that two images are equal or nearly equal.
- Parameters:
a (
Image) – First image to compare.b (
Image) – Second image to compare.rtol (
float, default:0.0) – Relative tolerance for the pixel comparison.atol (
float, default:0.0) – Absolute tolerance for the pixel comparison.expect_view (
Union[bool,Literal['array'],None], default:None) – If notNone, also assert whetherbshares memory witha(i.e. is a view);"array"checks only the pixel arrays.
- Return type: