MPPRegionOfInterest
@interface MPPRegionOfInterest : NSObject
The 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.
nil
ifscribbles
is 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.
nil
ifkeypoint
is notnil
.Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSArray<MPPNormalizedKeypoint *> *scribbles;
-
Initializes a new
RegionOfInterest
that 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
normalizedKeypoint
The normalized key point pointing to the object that the user wants to segment.
Return Value
An instance of
RegionOfInterest
initialized with the given normalized key point pointing to the object that the user wants to segment. -
Initializes a new
RegionOfInterest
that represents scribbles over the object that the user wants to segment.Declaration
Objective-C
- (nonnull instancetype)initWithScribbles: (nonnull NSArray<MPPNormalizedKeypoint *> *)scribbles;
Parameters
scribbles
The array of normalized key points that make up scribbles over the object that the user wants to segment.
Return Value
An instance of
RegionOfInterest
initialized 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;