开发者

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

开发者 https://www.devze.com 2023-03-21 06:11 出处:网络
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)

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

精彩评论

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