MaskPlaneBit#
- class lsst.images.MaskPlaneBit(index, mask)#
Bases:
objectThe nested array index and mask value associated with a single mask plane.
Methods Summary
check(value)Test if this bit is set on a single
Maskpixel value.compute(overall_index, stride, mask_type)Construct a
MaskPlaneBitfrom the overall index of a plane in aMaskSchemaand the stride (number of bits per mask array element).Methods Documentation
- check(value)#
Test if this bit is set on a single
Maskpixel value.- Parameters:
value (
ndarray) – A 1-d array of lengthMaskSchema.mask_size, representing a single pixel in aMask.- Return type:
- classmethod compute(overall_index, stride, mask_type)#
Construct a
MaskPlaneBitfrom the overall index of a plane in aMaskSchemaand the stride (number of bits per mask array element).- Parameters:
- Return type: