mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 22:16:27 +08:00
Cleanup unneeded raw pointer handling code
This commit is contained in:
parent
13962b8533
commit
177fbc7bbb
@ -15,8 +15,6 @@ typedef union { float f; int32_t i; } V32;
|
||||
#ifdef __cplusplus
|
||||
#import <vector>
|
||||
|
||||
#define MAKE_PTR(t) (*((cv::Ptr<t>*)self.nativePtr))
|
||||
|
||||
template <typename CV, typename OBJC> std::vector<CV> objc2cv(NSArray<OBJC*>* _Nonnull array, CV& (* _Nonnull converter)(OBJC* _Nonnull)) {
|
||||
std::vector<CV> ret;
|
||||
for (OBJC* obj in array) {
|
||||
|
@ -33,7 +33,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
#pragma mark - Constructors
|
||||
|
||||
- (instancetype)init;
|
||||
- (void)dealloc;
|
||||
#ifdef __cplusplus
|
||||
- (instancetype)initWithNativeMat:(cv::Ptr<cv::Mat>)nativeMat;
|
||||
+ (instancetype)fromNativePtr:(cv::Ptr<cv::Mat>)nativePtr;
|
||||
|
Loading…
Reference in New Issue
Block a user