Access pixels with Mat OpenCV

后端 未结 1 1862
小鲜肉
小鲜肉 2021-01-21 06:21

I would like to access pixels in RGB with OpenCV 2.3. I\'m trying like this but it\'s like every pixels are equal frame after frame because I got no output. Images are from my w

相关标签:
1条回答
  • 2021-01-21 06:51

    Change

    oldFrame = frame;
    

    to

    oldFrame = frame.clone();
    

    You are creating two Mat objects that point to the same data. clone() makes a deep copy.

    0 讨论(0)
提交回复
热议问题