Example #1
0
    def writeFileLegacyAPI(self, fileName):
        asinh = rgb.asinhMappingF(self.min, self.range, self.Q)
        rgbImage = rgb.RgbImageF(self.images[R], self.images[G], self.images[B], asinh)
        if False:
            ds9.mtv(self.images[B], frame=0, title="B")
            ds9.mtv(self.images[G], frame=1, title="G")
            ds9.mtv(self.images[R], frame=2, title="R")

        rgbImage.write(fileName)
Example #2
0
    def writeFileLegacyAPI(self, fileName):
        """Test that the legacy API still works, although it's deprecated"""
        asinh = rgb.asinhMappingF(self.min, self.range, self.Q)
        rgbImage = rgb.RgbImageF(
            self.images[R], self.images[G], self.images[B], asinh)
        if False:
            ds9.mtv(self.images[B], frame=0, title="B")
            ds9.mtv(self.images[G], frame=1, title="G")
            ds9.mtv(self.images[R], frame=2, title="R")

        rgbImage.write(fileName)
Example #3
0
    def writeFileLegacyAPI(self, fileName):
        """Test that the legacy API still works, although it's deprecated"""
        asinh = rgb.asinhMappingF(self.min, self.range, self.Q)
        rgbImage = rgb.RgbImageF(
            self.images[R], self.images[G], self.images[B], asinh)
        if display > 1:
            afwDisplay.Display(frame=0).mtv(self.images[B], title="B: legacy API")
            afwDisplay.Display(frame=1).mtv(self.images[G], title="G: legacy API")
            afwDisplay.Display(frame=2).mtv(self.images[R], title="R: legacy API")

        rgbImage.write(fileName)
Example #4
0
    def writeFileLegacyAPI(self, fileName):
        """Test that the legacy API still works, although it's deprecated"""
        asinh = rgb.asinhMappingF(self.min, self.range, self.Q)
        rgbImage = rgb.RgbImageF(self.images[R], self.images[G],
                                 self.images[B], asinh)
        if display > 1:
            afwDisplay.Display(frame=0).mtv(self.images[B],
                                            title="B: legacy API")
            afwDisplay.Display(frame=1).mtv(self.images[G],
                                            title="G: legacy API")
            afwDisplay.Display(frame=2).mtv(self.images[R],
                                            title="R: legacy API")

        rgbImage.write(fileName)