I'm trying to set the origin of the image I'm getting from my camera in OpenCV and I'm using cv::Mat instead of an IplImage. I know that you can set the origin in an IplImage (img->origin = 0 or 1) but I wasn't able to find any information on how to do the same for a cv::Mat.
- I want to be able to set the origin to the top left or bottom left of the screen
- Are there any functions on cv::Mat that lets me do that?
T开发者_高级运维hank you for your help
I don't believe this is possible. According to the API, IplImage has a field for the origin (naturally), but CvMat does not. This makes sense because there's no concept of an origin with matrices.
FYI here's the API I used: OpenCV
精彩评论