1 | initial version |
Hi, if you include opencv2/highgui/ios.h in your implementation file, then you can use:
UIImageToMat(image, cvImage); // Source UIImage* --> cv::Mat self.matchedImage = MatToUIImage(cvMatchedImage); // cv:Mat --> UIImage*
No method implementations are needed. I always used these methods without any problems. I'm using OpenCV version 2.4.9, Xcode 5.0, IOS 7.0
Andrea
2 | Put a P.S .about execution of methods on main thread |
Hi, if you include opencv2/highgui/ios.h in your implementation file, then you can use:
UIImageToMat(image, cvImage); // Source UIImage* --> cv::Mat self.matchedImage = MatToUIImage(cvMatchedImage); // cv:Mat --> UIImage*
No method implementations are needed. I always used these methods without any problems. I'm using OpenCV version 2.4.9, Xcode 5.0, IOS 7.0
Andrea
P.s : i use these methods NOT on main thread, and they works well also.