c++ - How to get all pixels in connected components by opencv? -
i use new opencv function connectedcomponentswithstats (version 3.0). how pixels in connected components?
the result
 
the third argument of connectedcomponentswithstats, stats, provides information allow draw bounding boxes around labeled regions.
the second argument, labels should contain image zeros (black pixels) non labeled pixels , coloured pixels labeled groups of pixels, 1 colour per label.
Comments
Post a Comment