mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Merge pull request #18566 from mtfrctl:mat-objc-swift-data-pointer
This commit is contained in:
commit
57c894f44d
@ -97,6 +97,7 @@ CV_EXPORTS @interface Mat : NSObject
|
|||||||
- (void)createEx:(NSArray<NSNumber*>*)sizes type:(int)type NS_SWIFT_NAME(create(sizes:type:));
|
- (void)createEx:(NSArray<NSNumber*>*)sizes type:(int)type NS_SWIFT_NAME(create(sizes:type:));
|
||||||
- (void)copySize:(Mat*)mat;
|
- (void)copySize:(Mat*)mat;
|
||||||
- (Mat*)cross:(Mat*)mat;
|
- (Mat*)cross:(Mat*)mat;
|
||||||
|
- (unsigned char*)dataPtr NS_SWIFT_NAME(dataPointer());
|
||||||
- (int)depth;
|
- (int)depth;
|
||||||
- (Mat*)diag:(int)diagonal;
|
- (Mat*)diag:(int)diagonal;
|
||||||
- (Mat*)diag;
|
- (Mat*)diag;
|
||||||
|
@ -286,6 +286,10 @@ static bool updateIdx(cv::Mat* mat, std::vector<int>& indices, int inc) {
|
|||||||
return [[Mat alloc] initWithNativeMat:new cv::Mat(_nativePtr->cross(*(cv::Mat*)mat.nativePtr))];
|
return [[Mat alloc] initWithNativeMat:new cv::Mat(_nativePtr->cross(*(cv::Mat*)mat.nativePtr))];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (unsigned char*)dataPtr {
|
||||||
|
return _nativePtr->data;
|
||||||
|
}
|
||||||
|
|
||||||
- (int)depth {
|
- (int)depth {
|
||||||
return _nativePtr->depth();
|
return _nativePtr->depth();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user