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
Imageobject to a legacylsst.afw.image.Imageobject.Parameters#
- tc
Test case providing the assertion methods to use.
- image
Image to compare.
- legacy_image
Legacy
lsst.afw.image.Imageto compare against.- expect_view
If not
None, also assert whetherimageshares memory withlegacy_image(i.e. is a view).