InteractiveSegmenterResult
class InteractiveSegmenterResult : TaskResultRepresents the segmentation results generated by ImageSegmenter.
- 
                  
                  An optional array of Maskobjects. EachMaskin the array holds a 32 bit float array of sizeimage width*image heightwhich represents the confidence mask for each category. Each element of the float array represents the confidence with which the model predicted that the corresponding pixel belongs to the category that the mask represents, usually in the range [0,1].DeclarationSwift var confidenceMasks: [Mask]? { get }
- 
                  
                  The quality scores of the result masks, in the range of [0, 1]. Defaults to 1if the model doesn’t output quality scores. Each element corresponds to the score of the category in the model outputs.DeclarationSwift var qualityScores: [NSNumber]? { get }
- 
                  
                  Initializes a new ImageSegmenterResultwith the given array of confidence masks, category mask, quality scores and timestamp (in milliseconds).DeclarationParametersconfidenceMaskscategoryMaskAn optional Maskobject of typeuInt8.qualityScoresThe quality scores of the result masks of type NSArray *. Each NSNumberin the array holds afloat.timestampInMillisecondsThe timestamp (in milliseconds) for this result. Return ValueAn instance of ImageSegmenterResultinitialized with the given array of confidence masks, category mask, quality scores and timestamp (in milliseconds).