the fillConnectedComponents function has the effect of coloring (gray scale) the image's various connected components from 1-255 (looping if there are more than 255 CCs). This doesn't seem useful - perhaps the cvRealScalar(index) was supposed to be cvScalarAll(0)?
the
fillConnectedComponents
function has the effect of coloring (gray scale) the image's various connected components from 1-255 (looping if there are more than 255 CCs). This doesn't seem useful - perhaps thecvRealScalar(index)
was supposed to becvScalarAll(0)
?