less connected pixels from gray scale image

조회 수: 1 (최근 30일)
Filza Ashraf
Filza Ashraf 2014년 1월 20일
댓글: Walter Roberson 2014년 1월 20일
i have a gray scale image that contains a box of white and a text. i need to convert only text because those pixels are less connected than box pixels. if i find an of the command for connected pixels such as bwareaopen (bw, 8) or 4 pixel connection i can even get box pixels as well but i only want to label those pixels that has less connection. need help please.
  댓글 수: 1
Image Analyst
Image Analyst 2014년 1월 20일
You forgot to attach your image. And I don't know what "if i find an of the command" means.

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

채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 20일
Label the more connected pixels. The pixels that did not get labeled are then the less-connected pixels.
  댓글 수: 2
Filza Ashraf
Filza Ashraf 2014년 1월 20일
but sir i have to use that less connected pixels image as a mask for pixel elimination from image so i couldn't find any command to just find pixels of less connectivity
Walter Roberson
Walter Roberson 2014년 1월 20일
m = bwareaopen (bw, 8);
lessconnected = bw & ~m;

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by