AI-generated Key Takeaways
-
CommonSegmenterOptionsprovides configuration options for a segmenter, primarily focusing on the mode and output size. -
segmenterModedetermines the segmenter's operational mode, defaulting to stream processing for live image segmentation. -
shouldEnableRawSizeMaskcontrols whether the segmenter outputs a mask matching its model output or upscales it to the input image size. -
Initialization of
CommonSegmenterOptionsdirectly is unavailable; developers should utilize the initializer of a relevant subclass to create instances.
CommonSegmenterOptions
class CommonSegmenterOptions : NSObjectOptions for specifying a segmenter.
-
The mode for the segmenter. The default value is
.stream.Declaration
Swift
var segmenterMode: SegmenterMode { get set } -
Indicates whether the segmenter should output a raw size mask which matches the model output size. If
NO, the segmenter will upscale the mask using linear interpolation to match the input image dimensions . Defaults toNO.Declaration
Swift
var shouldEnableRawSizeMask: Bool { get set } -
Unavailable. Use the initializer of a subclass.