Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connected component labelling Vs Blob detection Vs Contours

Tags:

opencv

Can any body please tell me the basic difference between connected component labelling, blob detection and contours in OpenCv??

like image 582
Mack Avatar asked Feb 10 '26 16:02

Mack


1 Answers

I think, connected components and blobs are synonyms. Contours are the different thing.

A contour is a line that represents a sudden color change in an image.

A connected component is a set of adjacent pixels of the same color.

In relation to OpenCV, it currently doesn't have any component labeling and blob detection (probably, because it's a trivial thing). However, it has a few methods for contour detection.

So do not confuse contours with connected components.

like image 164
Vanuan Avatar answered Feb 18 '26 13:02

Vanuan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!