MatOfRotatedRect
Mat representation of an array of RotatedRect objects
-
Create MatOfRotatedRect from array
Declaration
Objective-C
- (nonnull instancetype)initWithArray:(nonnull NSArray<RotatedRect *> *)array;Swift
init(array: [RotatedRect])Parameters
arrayArray from which to create MatOfRotatedRect
-
Allocate specified number of elements
Declaration
Objective-C
- (void)alloc:(int)elemNumber;Swift
func alloc(_ elemNumber: Int32)Parameters
elemNumberNumber of elements
-
Populate Mat with elements of an array
Declaration
Objective-C
- (void)fromArray:(nonnull NSArray<RotatedRect *> *)array;Swift
func fromArray(_ array: [RotatedRect])Parameters
arrayArray with which to populate the Mat
-
Output Mat elements as an array of RotatedRect objects
Declaration
Objective-C
- (nonnull NSArray<RotatedRect *> *)toArray;Swift
func toArray() -> [RotatedRect] -
Total number of values in Mat
Declaration
Objective-C
- (int)length;Swift
func length() -> Int32
View on GitHub
MatOfRotatedRect Class Reference