23from ._detection
import HeavyFootprintI, HeavyFootprintF, HeavyFootprintD, HeavyFootprintU
30 """Add this heavy footprint to an 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.
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.
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)
A class to represent a 2-dimensional array of pixels.
A class to manipulate images, masks, and variance as a single object.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.