23from ._detection
import HeavyFootprintI, HeavyFootprintF, HeavyFootprintD, HeavyFootprintU
30 """Add this heavy footprint to an image.
34 image : `lsst.afw.image`
36 indices = self.spans.indices()
37 image.array[indices[0, :] - image.getY0(),
38 indices[1, :] - image.getX0()] += self.getImageArray()
41 """Subtract this heavy footprint from an image.
45 image : `lsst.afw.image`
47 indices = self.spans.indices()
48 image.array[indices[0, :] - image.getY0(),
49 indices[1, :] - image.getX0()] -= self.getImageArray()
52 """Create a 2D image of a HeavyFootprint
57 Number to fill the pixels in the image that are not
60 Bounding box of the output image.
62 This should be either a `MaskedImage` or `Image` and describes
63 the type of the output image.
64 If `imageType` is `None` then `Image` will be used.
68 image : `lsst.afw.image.MaskedImage` or `lsst.afw.image.Image`
69 An image defined by `bbox` and padded with `fill` that
70 contains the projected flux in `heavy`.
78 image = imageType(bbox, dtype=self.getImageArray().dtype)
84HeavyFootprint.register(np.int32, HeavyFootprintI)
85HeavyFootprint.register(np.float32, HeavyFootprintF)
86HeavyFootprint.register(np.float64, HeavyFootprintD)
87HeavyFootprint.register(np.uint16, HeavyFootprintU)