boundingRect assertion error

asked 2016-11-19 01:43:50 -0500

Nbb gravatar image
cv::Rect rect = cv::boundingRect(opencv_crd_mat);

OpenCV Error: Assertion failed (npoints >= 0 && (depth == CV_32F || depth == CV_32S)) in cv::pointSetBoundingRect, file C:\Bin\opencv-master\source\modules\imgproc\src\shapedescr.cpp, line 458

This is my opencv_crd_mat 8 cols 2 rows.

[-4281.8457, -4315.7046, -7327.6001, -7293.7407, -2615.3616, -2649.2207, -5661.1162, -5627.2568; -995.60034, -20469.369, -21360.467, -1886.6984, -1013.2598, -20487.029, -21378.127, -1904.3578]

edit retag flag offensive close merge delete

Comments

please add some more lines of code, showing, how you construct opencv_crd_mat

berak gravatar imageberak ( 2016-11-19 01:58:20 -0500 )edit