1 | initial version |
this is an INTEGER Mat:
cv::Mat labels(100, 1, CV_32SC1);
but you access it as FLOAT:
labels.at<float>(i)
so, either use float or integer types consistently, and it'll work ;)
2 | No.2 Revision |
this is an INTEGER Mat:
cv::Mat labels(100, 1, CV_32SC1);
but you access it as FLOAT:
labels.at<float>(i)
so, either use float or integer types consistently, and it'll work ;)
(and no, it's not the rowRange, that part is correct)