MatOfInt4
Mat representation of an array of vectors of four ints
-
Create MatOfInt4 from array
Declaration
Objective-C
- (nonnull instancetype)initWithArray:(nonnull NSArray<NSNumber *> *)array;
Swift
init(array: [NSNumber])
Parameters
array
Array from which to create MatOfInt4
-
Allocate specified number of elements
Declaration
Objective-C
- (void)alloc:(int)elemNumber;
Swift
func alloc(_ elemNumber: Int32)
Parameters
elemNumber
Number of elements
-
Populate Mat with elements of an array
Declaration
Objective-C
- (void)fromArray:(nonnull NSArray<NSNumber *> *)array;
Swift
func fromArray(_ array: [NSNumber])
Parameters
array
Array with which to populate the Mat
-
Output Mat elements as an array
Declaration
Objective-C
- (nonnull NSArray<NSNumber *> *)toArray;
Swift
func toArray() -> [NSNumber]
-
Total number of values in Mat
Declaration
Objective-C
- (int)length;
Swift
func length() -> Int32