c++ - opencv Mat ::convertTo assertion error
大家讲道理
大家讲道理 2017-04-17 13:40:23
0
1
565
Mat sample(400,image_queue[i].size(),CV_32FC1);
image_queue[i][j].reshape(0,1).convertTo(sample.col(j),CV_32FC1,1/255.0);

我想把 image_queue[i][j]这张图(CV_8UC,灰度图,20*20)作为sample的一列。执行第二句的时候报异常。!

搞不懂为什么。求教!

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
洪涛
Mat sample(400,image_queue[i].size(),CV_32FC1);

The image_queue[i].size() is the length of one side of your image matrix, right? Is there any correspondence with the size of the image?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!