问题原因:

You are probably working outside of the image dimensions. Does any of the values you pass to the cvSetImageROI function lay outside the image boudaries?

图像的ROI区域超过了图像的尺寸,即roi.x + roi.width > m.cols && roi.y + roi.height > m.rows

解决办法:

判断截取的ROI尺寸是否在图像内

posted on 2018-11-02 20:59  一抹烟霞  阅读(10947)  评论(1编辑  收藏  举报

Live2D