| Connected Components functions | |
| Functions | |
| ccGetConnectedComponentsBBox | Extract the connected components’ boxes from the image. |
| ccGetAndLabelConnectedComponentsBBox | Extract the connected components’ boxes from the image and builds a mtr that ‘labels’ the components, giving fast access to a pixels’ corresponding Rect. |
| ccLabelConnectedComponents | Label the connected components of an image using a UnionFind approach. |
Rect *ccGetConnectedComponentsBBox( Image * img )
Extract the connected components’ boxes from the image.
| img | Image to extract the connected components from |
A Rect list with the bounding boxes of the extracted connected components. The Rects contain in the fill field the proportion between the area of the Rect and the area of the connected component it represents.
Rect *ccGetAndLabelConnectedComponentsBBox( Image * img, Matrix ** rectMatrix )
Extract the connected components’ boxes from the image and builds a mtr that ‘labels’ the components, giving fast access to a pixels’ corresponding Rect.
| img | Image to extract the connected components from |
| labelMatrix | address to return the mtr into |
A Rect list with the bounding boxes of the extracted connected components and a matrix that labels every point of the image with its Rect.
Matrix *ccLabelConnectedComponents( Image * img, int * num_components )
Label the connected components of an image using a UnionFind approach. White is considered background and Black is foreground.
| img | image to label the connected components |
| num_components | pointer to store the number of components found |
A mtr with labels on the connected components.
Extract the connected components’ boxes from the image.
Rect *ccGetConnectedComponentsBBox( Image * img )
Extract the connected components’ boxes from the image and builds a mtr that ‘labels’ the components, giving fast access to a pixels’ corresponding Rect.
Rect *ccGetAndLabelConnectedComponentsBBox( Image * img, Matrix ** rectMatrix )
Label the connected components of an image using a UnionFind approach.
Matrix *ccLabelConnectedComponents( Image * img, int * num_components )