You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for( i = 1; i <= nccomps; i++ ) {
colors[i] = Vec3b(rand()%256, rand()%256, rand()%256);
if( stats.at<int>(i-1, cv::CC_STAT_AREA) < 100 )
colors[i] = Vec3b(0,0,0); // small regions are painted with black too.
}
may be changed to
for( i = 1; i < nccomps; i++ ) {
colors[i] = Vec3b(rand()%256, rand()%256, rand()%256);
if( stats.at<int>(i, cv::CC_STAT_AREA) < 100 )
colors[i] = Vec3b(0,0,0); // small regions are painted with black too.
}
and the below code gives me the right result.
am i right?thanks.
The text was updated successfully, but these errors were encountered:
in page 419(pdf)
1、when i use
OpenCV gvies me an ERROR,
I had change my code to
2、i think
may be changed to
and the below code gives me the right result.
am i right?thanks.
The text was updated successfully, but these errors were encountered: