Exemplo n.º 1
0
    def combine(self, target, imageList, stats):
        """!Combine multiple images

        @param target      Target image to receive the combined pixels
        @param imageList   List of input images
        @param stats       Statistics control
        """
        images = [img for img in imageList if img is not None]
        afwMath.statisticsStack(target, images,
                                afwMath.Property(self.config.combine), stats)
Exemplo n.º 2
0
    def combine(self, target, expList, stats):
        """Combine multiple images.

        Parameters
        ----------
        target : `lsst.afw.image.Exposure`
            Output exposure to construct.
        expList : `list` [`lsst.afw.image.Exposure`]
            Input exposures to combine.
        stats : `lsst.afw.math.StatisticsControl`
            Control explaining how to combine the input images.
        """
        images = [img.getMaskedImage() for img in expList if img is not None]
        afwMath.statisticsStack(target, images,
                                afwMath.Property(self.config.combine), stats)
Exemplo n.º 3
0
 def tst():
     afwMath.statisticsStack(
         imgList, afwMath.Property(afwMath.MEAN | afwMath.MEANCLIP),
         sctrl)