How can i convert this binary image to black background image?

조회 수: 3 (최근 30일)
vinith
vinith 2015년 1월 17일
댓글: Image Analyst 2015년 1월 22일
i require the attached image in this format

채택된 답변

Image Analyst
Image Analyst 2015년 1월 17일
vinith, this must be a class project or something from a text or else you're on the same project as Abdur Rahmaan, because I gave him complete code in this Answer http://www.mathworks.com/matlabcentral/answers/168170#answer_163355.
The way you're approaching it, with edge detection, is not the way I'd do it. I'd use color segmentation.
  댓글 수: 12
vinith
vinith 2015년 1월 18일
i will try the way you suggested sir and post my results
Image Analyst
Image Analyst 2015년 1월 22일
Do you have the images yet? If you're having trouble finding black velvet where you live, then just use black construction paper.

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

추가 답변 (1개)

Matt J
Matt J 2015년 1월 17일
편집: Matt J 2015년 1월 17일
A=imread('http://www.mathworks.com/matlabcentral/answers/uploaded_files/24029/untitled%201.jpg');
A=rgb2gray(A);
BW=A<10;
result = imfill(BW,'holes')&~BW;

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by