compare_image_to_legacy#

lsst.images.tests.compare_image_to_legacy(tc: TestCase, image: Image, legacy_image: Any, expect_view: bool | None = None) None#

Compare an Image object to a legacy lsst.afw.image.Image object.

Parameters#

tc

Test case providing the assertion methods to use.

image

Image to compare.

legacy_image

Legacy lsst.afw.image.Image to compare against.

expect_view

If not None, also assert whether image shares memory with legacy_image (i.e. is a view).