I have instance of cvMat like cv::Mat sourceImage;
Is it possible to convert this into Objective C Mat object like Mat *dst = [[Mat alloc] init];
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
I have figure it out by myself
There is initialiser available in OpenCV it takes the C++ Mat instance type and create Objective C Mat instance.
If you wish to create a custom ObjectiveC class that contains your structure you will either need to wrap around it or you will need to copy all values you are interested in.
Wrapping should be pretty simple:
Header:
Source
So this would make your code look like: