Mat
Objective-C
@interface Mat : NSObject
Swift
class Mat : NSObject
The class Mat represents an n-dimensional dense numerical single-channel or multi-channel array.
-
Declaration
Objective-C
- (instancetype)init;
Swift
init()
-
Declaration
Objective-C
- (instancetype)initWithRows:(int)rows cols:(int)cols type:(int)type;
Swift
init(rows: Int32, cols: Int32, type: Int32)
-
Declaration
Objective-C
- (instancetype)initWithRows:(int)rows cols:(int)cols type:(int)type data:(NSData*)data;
Swift
init(rows: Int32, cols: Int32, type: Int32, data: Data)
-
Declaration
Objective-C
- (instancetype)initWithRows:(int)rows cols:(int)cols type:(int)type data:(NSData*)data step:(long)step;
Swift
init(rows: Int32, cols: Int32, type: Int32, data: Data, step: Int)
-
Declaration
Objective-C
- (instancetype)initWithSizes:(NSArray<NSNumber*>*)sizes type:(int)type;
Swift
init(sizes: [NSNumber], type: Int32)
-
Declaration
Objective-C
- (Mat*)adjustRoiTop:(int)dtop bottom:(int)dbottom left:(int)dleft right:(int)dright NS_SWIFT_NAME(adjustRoi(top:bottom:left:right:));
Swift
func adjustRoi(top dtop: Int32, bottom dbottom: Int32, left dleft: Int32, right dright: Int32) -> Mat
-
Declaration
Objective-C
- (void)assignTo:(Mat*)mat type:(int)type;
Swift
func assign(to mat: Mat, type: Int32)
-
Declaration
Objective-C
- (void)assignTo:(Mat*)mat;
Swift
func assign(to mat: Mat)
-
Declaration
Objective-C
- (BOOL)isSameMat:(Mat*)mat;
Swift
func isSameMat(_ mat: Mat) -> Bool
-
Declaration
Objective-C
- (int)channels;
Swift
func channels() -> Int32
-
Declaration
Objective-C
- (int)checkVector:(int)elemChannels depth:(int)depth requireContinuous:(BOOL) requireContinuous NS_SWIFT_NAME(checkVector(elemChannels:depth:requireContinuous:));
Swift
func checkVector(elemChannels: Int32, depth: Int32, requireContinuous: Bool) -> Int32
-
Declaration
Objective-C
- (int)checkVector:(int)elemChannels depth:(int)depth NS_SWIFT_NAME(checkVector(elemChannels:depth:));
Swift
func checkVector(elemChannels: Int32, depth: Int32) -> Int32
-
Declaration
Objective-C
- (int)checkVector:(int)elemChannels NS_SWIFT_NAME(checkVector(elemChannels:));
Swift
func checkVector(elemChannels: Int32) -> Int32
-
Declaration
Objective-C
- (Mat*)clone;
Swift
func clone() -> Mat
-
Declaration
Objective-C
- (Mat*)col:(int)x;
Swift
func col(_ x: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)colRange:(int)start end:(int)end NS_SWIFT_NAME(colRange(start:end:));
Swift
func colRange(start: Int32, end: Int32) -> Mat
-
Declaration
Objective-C
- (int)dims;
Swift
func dims() -> Int32
-
Declaration
Objective-C
- (int)cols;
Swift
func cols() -> Int32
-
Declaration
Objective-C
- (void)convertTo:(Mat*)mat rtype:(int)rtype alpha:(double)alpha beta:(double)beta;
Swift
func convert(to mat: Mat, rtype: Int32, alpha: Double, beta: Double)
-
Declaration
Objective-C
- (void)convertTo:(Mat*)mat rtype:(int)rtype alpha:(double)alpha;
Swift
func convert(to mat: Mat, rtype: Int32, alpha: Double)
-
Declaration
Objective-C
- (void)convertTo:(Mat*)mat rtype:(int)rtype;
Swift
func convert(to mat: Mat, rtype: Int32)
-
Declaration
Objective-C
- (void)copyTo:(Mat*)mat;
Swift
func copy(to mat: Mat)
-
Declaration
Objective-C
- (void)copyTo:(Mat*)mat mask:(Mat*)mask;
Swift
func copy(to mat: Mat, mask: Mat)
-
Declaration
Objective-C
- (void)create:(int)rows cols:(int)cols type:(int)type NS_SWIFT_NAME(create(rows:cols:type:));
Swift
func create(rows: Int32, cols: Int32, type: Int32)
-
Declaration
Objective-C
- (void)createEx:(NSArray<NSNumber*>*)sizes type:(int)type NS_SWIFT_NAME(create(sizes:type:));
Swift
func create(sizes: [NSNumber], type: Int32)
-
Declaration
Objective-C
- (void)copySize:(Mat*)mat;
Swift
func copySize(_ mat: Mat)
-
Declaration
Objective-C
- (Mat*)cross:(Mat*)mat;
Swift
func cross(_ mat: Mat) -> Mat
-
Declaration
Objective-C
- (int)depth;
Swift
func depth() -> Int32
-
Declaration
Objective-C
- (Mat*)diag:(int)diagonal;
Swift
func diag(_ diagonal: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)diag;
Swift
func diag() -> Mat
-
Declaration
Objective-C
+ (Mat*)diag:(Mat*)diagonal;
Swift
class func diag(_ diagonal: Mat) -> Mat
-
Declaration
Objective-C
- (double)dot:(Mat*)mat;
Swift
func dot(_ mat: Mat) -> Double
-
Declaration
Objective-C
- (long)elemSize;
Swift
func elemSize() -> Int
-
Declaration
Objective-C
- (long)elemSize1;
Swift
func elemSize1() -> Int
-
Declaration
Objective-C
- (BOOL)empty;
Swift
func empty() -> Bool
-
Declaration
Objective-C
+ (Mat*)eye:(int)rows cols:(int)cols type:(int)type NS_SWIFT_NAME(eye(rows:cols:type:));
Swift
class func eye(rows: Int32, cols: Int32, type: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)inv:(int)method;
Swift
func inv(_ method: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)inv;
Swift
func inv() -> Mat
-
Declaration
Objective-C
- (BOOL)isContinuous;
Swift
func isContinuous() -> Bool
-
Declaration
Objective-C
- (BOOL)isSubmatrix;
Swift
func isSubmatrix() -> Bool
-
Declaration
Objective-C
- (Mat*)mul:(Mat*)mat scale:(double)scale;
Swift
func mul(_ mat: Mat, scale: Double) -> Mat
-
Declaration
Objective-C
- (Mat*)mul:(Mat*)mat;
Swift
func mul(_ mat: Mat) -> Mat
-
Declaration
Objective-C
+ (Mat*)ones:(int)rows cols:(int)cols type:(int)type NS_SWIFT_NAME(ones(rows:cols:type:));
Swift
class func ones(rows: Int32, cols: Int32, type: Int32) -> Mat
-
Declaration
Objective-C
+ (Mat*)onesEx:(NSArray<NSNumber*>*)sizes type:(int)type NS_SWIFT_NAME(ones(sizes:type:));
Swift
class func ones(sizes: [NSNumber], type: Int32) -> Mat
-
Declaration
Objective-C
- (void)push_back:(Mat*)mat;
Swift
func push_back(_ mat: Mat)
-
Declaration
Objective-C
- (Mat*)reshape:(int)channels rows:(int)rows NS_SWIFT_NAME(reshape(channels:rows:));
Swift
func reshape(channels: Int32, rows: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)reshape:(int)channels NS_SWIFT_NAME(reshape(channels:));
Swift
func reshape(channels: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)reshape:(int)channels newshape:(NSArray<NSNumber*>*)newshape NS_SWIFT_NAME(reshape(channels:newshape:));
Swift
func reshape(channels: Int32, newshape: [NSNumber]) -> Mat
-
Declaration
Objective-C
- (Mat*)row:(int)y;
Swift
func row(_ y: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)rowRange:(int)start end:(int)end NS_SWIFT_NAME(rowRange(start:end:));
Swift
func rowRange(start: Int32, end: Int32) -> Mat
-
Declaration
Objective-C
- (int)rows;
Swift
func rows() -> Int32
-
Declaration
Objective-C
- (Mat*)setToValue:(Mat*)value mask:(Mat*)mask NS_SWIFT_NAME(setTo(value:mask:));
Swift
func setTo(value: Mat, mask: Mat) -> Mat
-
Declaration
Objective-C
- (Mat*)setToValue:(Mat*)value NS_SWIFT_NAME(setTo(value:));
Swift
func setTo(value: Mat) -> Mat
-
Declaration
Objective-C
- (int)size:(int)dim;
Swift
func size(_ dim: Int32) -> Int32
-
Declaration
Objective-C
- (long)step1:(int)dim;
Swift
func step1(_ dim: Int32) -> Int
-
Declaration
Objective-C
- (long)step1;
Swift
func step1() -> Int
-
Declaration
Objective-C
- (Mat*)submat:(int)rowStart rowEnd:(int)rowEnd colStart:(int)colStart colEnd:(int)colEnd NS_SWIFT_NAME(submat(rowStart:rowEnd:colStart:colEnd:));
Swift
func submat(rowStart: Int32, rowEnd: Int32, colStart: Int32, colEnd: Int32) -> Mat
-
Declaration
Objective-C
- (Mat*)t;
Swift
func t() -> Mat
-
Declaration
Objective-C
- (long)total;
Swift
func total() -> Int
-
Declaration
Objective-C
- (int)type;
Swift
func type() -> Int32
-
Declaration
Objective-C
+ (Mat*)zeros:(int)rows cols:(int)cols type:(int)type;
Swift
class func zeros(_ rows: Int32, cols: Int32, type: Int32) -> Mat
-
Declaration
Objective-C
+ (Mat*)zerosEx:(NSArray<NSNumber*>*)sizes type:(int)type NS_SWIFT_NAME(zeros(sizes:type:));
Swift
class func zeros(sizes: [NSNumber], type: Int32) -> Mat
-
Declaration
Objective-C
- (NSString*)description;
Swift
func description() -> String
-
Declaration
Objective-C
- (NSString*)dump;
Swift
func dump() -> String
-
Declaration
Objective-C
- (int)height;
Swift
func height() -> Int32
-
Declaration
Objective-C
- (int)width;
Swift
func width() -> Int32
-
Declaration
Objective-C
- (int)put:(int)row col:(int)col data:(NSArray<NSNumber*>*)data NS_REFINED_FOR_SWIFT;
Swift
func __put(_ row: Int32, col: Int32, data: [NSNumber]) -> Int32
-
Declaration
Objective-C
- (int)put:(NSArray<NSNumber*>*)indices data:(NSArray<NSNumber*>*)data NS_REFINED_FOR_SWIFT;
Swift
func __put(_ indices: [NSNumber], data: [NSNumber]) -> Int32
-
Declaration
Objective-C
- (int)get:(int)row col:(int)col data:(NSMutableArray<NSNumber*>*)data NS_REFINED_FOR_SWIFT;
Swift
func __get(_ row: Int32, col: Int32, data: NSMutableArray) -> Int32
-
Declaration
Objective-C
- (int)get:(NSArray<NSNumber*>*)indices data:(NSMutableArray<NSNumber*>*)data NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber], data: NSMutableArray) -> Int32
-
Declaration
Objective-C
- (NSArray<NSNumber*>*)get:(int)row col:(int)col NS_REFINED_FOR_SWIFT;
Swift
func __get(_ row: Int32, col: Int32) -> [NSNumber]
-
Declaration
Objective-C
- (NSArray<NSNumber*>*)get:(NSArray<NSNumber*>*)indices NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber]) -> [NSNumber]
-
Declaration
Objective-C
- (int)get:(NSArray<NSNumber*>*)indices count:(int)count byteBuffer:(char*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber], count: Int32, byteBuffer buffer: UnsafeMutablePointer<Int8>) -> Int32
-
Declaration
Objective-C
- (int)get:(NSArray<NSNumber*>*)indices count:(int)count doubleBuffer:(double*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber], count: Int32, doubleBuffer buffer: UnsafeMutablePointer<Double>) -> Int32
-
Declaration
Objective-C
- (int)get:(NSArray<NSNumber*>*)indices count:(int)count floatBuffer:(float*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber], count: Int32, floatBuffer buffer: UnsafeMutablePointer<Float>) -> Int32
-
Declaration
Objective-C
- (int)get:(NSArray<NSNumber*>*)indices count:(int)count intBuffer:(int*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber], count: Int32, intBuffer buffer: UnsafeMutablePointer<Int32>) -> Int32
-
Declaration
Objective-C
- (int)get:(NSArray<NSNumber*>*)indices count:(int)count shortBuffer:(short*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __get(_ indices: [NSNumber], count: Int32, shortBuffer buffer: UnsafeMutablePointer<Int16>) -> Int32
-
Declaration
Objective-C
- (int)put:(NSArray<NSNumber*>*)indices count:(int)count byteBuffer:(const char*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __put(_ indices: [NSNumber], count: Int32, byteBuffer buffer: UnsafePointer<Int8>) -> Int32
-
Declaration
Objective-C
- (int)put:(NSArray<NSNumber*>*)indices count:(int)count doubleBuffer:(const double*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __put(_ indices: [NSNumber], count: Int32, doubleBuffer buffer: UnsafePointer<Double>) -> Int32
-
Declaration
Objective-C
- (int)put:(NSArray<NSNumber*>*)indices count:(int)count floatBuffer:(const float*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __put(_ indices: [NSNumber], count: Int32, floatBuffer buffer: UnsafePointer<Float>) -> Int32
-
Declaration
Objective-C
- (int)put:(NSArray<NSNumber*>*)indices count:(int)count intBuffer:(const int*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __put(_ indices: [NSNumber], count: Int32, intBuffer buffer: UnsafePointer<Int32>) -> Int32
-
Declaration
Objective-C
- (int)put:(NSArray<NSNumber*>*)indices count:(int)count shortBuffer:(const short*)buffer NS_REFINED_FOR_SWIFT;
Swift
func __put(_ indices: [NSNumber], count: Int32, shortBuffer buffer: UnsafePointer<Int16>) -> Int32