C++, Negative RGB values of pixels using OpenCV

前端 未结 4 709
旧巷少年郎
旧巷少年郎 2021-01-03 09:26

I\'m using OpenCV to iterate through an image and find the colour of each pixel, here\'s some of the code I\'m using:

IplImage* img = cvLoadImage(\"c:\\\\tes         


        
4条回答
  •  有刺的猬
    2021-01-03 09:54

    I've never used OpenCV, but I would imagine that cvCreateImage doesn't initialise the contents of the image, and certainly not to anything meaningful.

提交回复
热议问题