MaskPlaneBit#

class lsst.images.MaskPlaneBit(index, mask)#

Bases: object

The nested array index and mask value associated with a single mask plane.

Parameters:

Methods Summary

check(value)

Test if this bit is set on a single Mask pixel value.

compute(overall_index, stride, mask_type)

Construct a MaskPlaneBit from the overall index of a plane in a MaskSchema and the stride (number of bits per mask array element).

Methods Documentation

check(value)#

Test if this bit is set on a single Mask pixel value.

Parameters:

value (ndarray) – A 1-d array of length MaskSchema.mask_size, representing a single pixel in a Mask.

Return type:

bool

classmethod compute(overall_index, stride, mask_type)#

Construct a MaskPlaneBit from the overall index of a plane in a MaskSchema and the stride (number of bits per mask array element).

Parameters:
  • overall_index (int) – Index of the plane across the whole schema.

  • stride (int) – Number of mask bits per array element.

  • mask_type (type[integer]) – Integer dtype of the mask array elements.

Return type:

MaskPlaneBit

This page was last modified on .