Ask Your Question

Revision history [back]

click to hide/show revision 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 ;)

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)