mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Update ios_conversions.mm
Define fix for Mac Catalyst iOS
This commit is contained in:
parent
6f48cb78b6
commit
e596680939
@ -39,6 +39,8 @@
|
|||||||
// the use of this software, even if advised of the possibility of such damage.
|
// the use of this software, even if advised of the possibility of such damage.
|
||||||
//
|
//
|
||||||
//M*/
|
//M*/
|
||||||
|
#include <TargetConditionals.h>
|
||||||
|
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#include "apple_conversions.h"
|
#include "apple_conversions.h"
|
||||||
@ -61,3 +63,4 @@ void UIImageToMat(const UIImage* image, cv::Mat& m, bool alphaExist) {
|
|||||||
CGImageRef imageRef = image.CGImage;
|
CGImageRef imageRef = image.CGImage;
|
||||||
CGImageToMat(imageRef, m, alphaExist);
|
CGImageToMat(imageRef, m, alphaExist);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user