Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Alright, thank you! I got it!, but now it's throwing an exception like:

OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /home/ubuntu/Documents/opencv-3.1.0/modules/core/src/matrix.cpp, line 508 terminate called after throwing an instance of 'cv::Exception' what(): /home/ubuntu/Documents/opencv-3.1.0/modules/core/src/matrix.cpp:508: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat

Aborted (core dumped)

My images are all the size of 64x128. I can't figure out where the problem is. I'm sure that the inputs are o.k. right now.