setDetectionMask

lsst.pipe.tasks.maskStreaks.setDetectionMask(maskedImage, forceSlowBin=False, binning=None, detectedPlane='DETECTED', badMaskPlanes=('NO_DATA', 'INTRP', 'BAD', 'SAT', 'EDGE'), detectionThreshold=5)

Make detection mask and set the mask plane.

Creat a binary image from a masked image by setting all data with signal-to- noise below some threshold to zero, and all data above the threshold to one. If the binning parameter has been set, this procedure will be preceded by a weighted binning of the data in order to smooth the result, after which the result is scaled back to the original dimensions. Set the detection mask plane with this binary image.

Parameters:
maskedImagelsst.afw.image.maskedImage

Image to be (optionally) binned and converted.

forceSlowBinbool, optional

Force usage of slower binning method to check that the two methods give the same result.

binningint, optional

Number of pixels by which to bin image.

detectedPlanestr, optional

Name of mask with pixels that were detected above threshold in image.

badMaskPlanesset, optional

Names of masks with pixels that are rejected.

detectionThresholdfloat, optional

Boundary in signal-to-noise between non-detections and detections for making a binary image from the original input image.