Represents a segmentation mask.
Width of the mask.
Height of the mask.
Flat array of mask values (confidence or category indices).
Returns the mask value at the specified (x, y) coordinates.