Mask

data class Mask(val width: Int, val height: Int, val data: FloatArray)

Represents a segmentation mask.

Parameters

width

Width of the mask.

height

Height of the mask.

data

Flat array of mask values (confidence or category indices).

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, data: FloatArray)

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getValue(x: Int, y: Int): Float

Returns the mask value at the specified (x, y) coordinates.

Link copied to clipboard
open override fun hashCode(): Int