lsst.afw
19.0.0-25-g6c8df7140+1
|
Classes | |
class | MultibandFootprint |
Functions | |
def | getSpanSetFromImages (images, thresh=0, xy0=None) |
def | heavyFootprintToImage (heavy, fill=np.nan, bbox=None, imageType=MaskedImage) |
def lsst.afw.detection.multiband.getSpanSetFromImages | ( | images, | |
thresh = 0 , |
|||
xy0 = None |
|||
) |
Create a Footprint from a set of Images Parameters ---------- images: `MultibandImage` or list of `Image`, array Images to extract the footprint from thresh: `float` All pixels above `thresh` will be included in the footprint xy0: `Point2I` Location of the minimum value of the images bounding box (if images is an array, otherwise the image bounding box is used). Returns ------- spans: `SpanSet` Union of all spans in the images above the threshold imageBBox: `Box2I` Bounding box for the input images.
Definition at line 33 of file multiband.py.
def lsst.afw.detection.multiband.heavyFootprintToImage | ( | heavy, | |
fill = np.nan , |
|||
bbox = None , |
|||
imageType = MaskedImage |
|||
) |
Create an image of a HeavyFootprint Parameters ---------- heavy: `HeavyFootprint` The HeavyFootprint to insert into the image fill: number Number to fill the pixels in the image that are not contained in `heavy`. bbox: `Box2I` Bounding box of the output image. imageType: `type` This should be either a `MaskedImage` or `Image` and describes the type of the output image. Returns ------- image: `MaskedImage` or `Image` An image defined by `bbox` and padded with `fill` that contains the projected flux in `heavy`.
Definition at line 78 of file multiband.py.