1. 程式人生 > >error:Assertion failed ((unsigned)i0 < (unsigned)size.p[0]) in cv::Mat::at

error:Assertion failed ((unsigned)i0 < (unsigned)size.p[0]) in cv::Mat::at

font sig ron err sse mat style assert tro

問題原因:

訪問像素時指針越界造成的

解決辦法:

1、檢查指針下標是否正確

2、row和col是否寫反了

error:Assertion failed ((unsigned)i0 < (unsigned)size.p[0]) in cv::Mat::at