MPPRegionOfInterest
@interface MPPRegionOfInterest : NSObjectThe Region-Of-Interest (ROI) to interact with in an interactive segmentation inference.
An instance can contain erither contain a single normalized point pointing to the object that the user wants to segment or array of normalized key points that make up scribbles over the object that the user wants to segment.
-
The normalized point pointing to the object that the user wants to segment.
nilifscribblesis notnil.Declaration
Objective-C
@property (nonatomic, readonly, nullable) MPPNormalizedKeypoint *keypoint; -
The array of normalized key points that make up scribbles over the object that the user wants to segment.
nilifkeypointis notnil.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSArray<MPPNormalizedKeypoint *> *scribbles; -
Initializes a new
RegionOfInterestthat represents a single normalized point pointing to the object that the user wants to segment.Declaration
Objective-C
- (nonnull instancetype)initWithNormalizedKeyPoint: (nonnull MPPNormalizedKeypoint *)normalizedKeypoint;Parameters
normalizedKeypointThe normalized key point pointing to the object that the user wants to segment.
Return Value
An instance of
RegionOfInterestinitialized with the given normalized key point pointing to the object that the user wants to segment. -
Initializes a new
RegionOfInterestthat represents scribbles over the object that the user wants to segment.Declaration
Objective-C
- (nonnull instancetype)initWithScribbles: (nonnull NSArray<MPPNormalizedKeypoint *> *)scribbles;Parameters
scribblesThe array of normalized key points that make up scribbles over the object that the user wants to segment.
Return Value
An instance of
RegionOfInterestinitialized with the given normalized key points that make up scribbles over the object that the user wants to segment. -
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;