필터 지우기
필터 지우기

How to remove unwanted objects of smaller than a certain threshold area from a grayscale image?

조회 수: 6 (최근 30일)
My algorithm is as follows :- - convert entire image to binary form - remove the objects of the area smaller than required. My problem is to how to work on the object of larger area in its gray scale form. Please suggest any other method if better

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 12일
See bwareaopen() but notice that it works on black and white images. So you could convert your grayscale to B&W, run the area open, then use the resulting B&W image as a mask on your grayscale.
  댓글 수: 2
Image Analyst
Image Analyst 2013년 3월 12일
편집: Image Analyst 2013년 3월 12일
To mask (one way of doing it):
grayImage(~binaryImage) = 0; % Set background to zero.
Richa Nayak
Richa Nayak 2013년 3월 13일
You BlobsDemo Tutorial has been very helpful till now. dint refer to it for this tho. Thanks a lot!

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by