I am trying to use CvConnectedComp
which is an output from cvFloodFill
.
CvConnectedComp comp;
cvFloodFill(imgInput,seedPoint,
cvScalarAll(0),cvScalarAll(.1),cvScalarAll(1.),
&comp,CV_FLOODFILL_MASK_ONLY,imgMask);
I am able to use comp.rect
for drawing the component, but comp.contour
is NULL
.I want to use it for further processing. I tried without mask also, but still it is same result.
Any idea will be appreciated.