masked_segm_image
- petrofit.segmentation.masked_segm_image(source, image, segm, fill=None, mask_background=False)[source]
Returns a masked image of the original image by masking out other sources
- Parameters:
- sourcelist or int or photutils.segmentation.properties.SourceCatalog
The catalog object for the target or label of target in the segmentation object.
- imageCCDData or array
Image to mask.
- segmphotutils.segmentation.core.SegmentationImage
Segmentation image.
- fillfloat
Fill in the masked pixels with this value.
- mask_backgroundbool
Option to also mask out all the un-segmented background pixels.
- Returns:
- masked_imageCCDData or array