I can't understand what is bwconncomp command do ?

조회 수: 2 (최근 30일)
Alex Dashevsky
Alex Dashevsky 2017년 5월 5일
답변: Image Analyst 2017년 5월 6일
What does "connecting components" mean ? What are components ? What they connect ?

답변 (2개)

Image Analyst
Image Analyst 2017년 5월 6일
If all you have is one giant image, essentially a collection of individual pixel elements, and you want the area of one blob in the image, then how do you think you can do it? How do you think it would know that pixel 5 is connected to pixel 6 (assuming they're both true/white/1 in the binary image) but pixel 498357 (far away and separated by big swaths of black from pixel 5) is not part of the same blob and should not be counted in the area computation? You have to give each connected set of pixels in a blob an ID number, so it will know pixels 5 and 6 are part of blob #1 but pixel #498357 is part of blob #135 (or whatever).
Read this page https://en.wikipedia.org/wiki/Connected-component_labeling and see if you still don't know what it is after reading that.

Steven Lord
Steven Lord 2017년 5월 6일
This example in the documentation describes and illustrates what a connected component is.
Why might you be interested in connected components? Take a look at the "before" and "after" pictures in the "Erase Largest Component from Image" example on the documentation page for bwconncomp. Note that the "different" in the before picture has become "di erent" in the after picture, because the two f's were connected to one another and so were considered one component. But in other words in the picture, the individual letters will be the components.
  댓글 수: 1
Alex Dashevsky
Alex Dashevsky 2017년 5월 6일
편집: Alex Dashevsky 2017년 5월 6일
I still don't understand this command. I need example with more details.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by