开发者

Setting the screen origin in OpenCV 2.x (C++)

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.

  1. I want to be able to set the origin to the top left or bottom left of the screen
  2. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜