removing connected component
이전 댓글 표시
How can I remove a connected component from an image of particular length?
Actually I am processing some images in which there is a connected component in the form of an arc, which starts with the start of image top and ends where image ends. its length is equal to or greater than the image height.
please help me in doing this
댓글 수: 2
Chandra Kurniawan
2012년 3월 10일
Would you show me the image?
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
md mizan chowdhury
2017년 9월 13일
how can i remove all connected component from an image
답변 (3개)
Image Analyst
2012년 3월 10일
0 개 추천
You can use ismember(), as shown in my BlobsDemo image segmentation tutorial: http://www.mathworks.com/matlabcentral/fileexchange/25157 First identify the index of the blob you want to eliminate. It can be based on its area, shape, perimeter, MajorAxisLength, or whatever. Then use ismember to get a labeled image without that particular blob.
md mizan chowdhury
2017년 9월 14일
0 개 추천
how can i remove all connected components
댓글 수: 3
Image Analyst
2017년 9월 14일
Easy. Simply set everything to zero
labeledImage(:) = 0;
Now all components are gone. But what good is this to you?
md mizan chowdhury
2017년 9월 18일
plz give me the whole code
Image Analyst
2017년 9월 18일
That was it. All connected components will be erased once you execute that code.
md mizan chowdhury
2017년 9월 18일
0 개 추천
detect text from video.
댓글 수: 1
Image Analyst
2017년 9월 18일
This is not an "Answer" for Khawaja. It does not address his original question at the top at all.
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!