# Class SegmentationMask

java.lang.Object
com.codename1.ai.vision.SegmentationMask

public final class SegmentationMask extends Object
Per-pixel foreground confidence mask.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SegmentationMask(int width, int height, float[] confidence)`
  `SegmentationMask(int width, int height, float[] confidence, VisionMetadata metadata)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `float[]`
  `getConfidence()`
  `int`
  `getHeight()`
  `VisionMetadata`
  `getMetadata()`
  `int`
  `getWidth()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SegmentationMask

    public SegmentationMask(int width, int height, float[] confidence)

  - ### SegmentationMask

    public SegmentationMask(int width, int height, float[] confidence, VisionMetadata metadata)

- ## Method Details

  - ### getWidth

    public int getWidth()

  - ### getHeight

    public int getHeight()

  - ### getConfidence

    public float[] getConfidence()

  - ### getMetadata

    public VisionMetadata getMetadata()