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

2 visualizaciones (últimos 30 días)
i require the attached image in this format

Respuesta aceptada

Image Analyst
Image Analyst el 17 de En. de 2015
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 comentarios
vinith
vinith el 18 de En. de 2015
i will try the way you suggested sir and post my results
Image Analyst
Image Analyst el 22 de En. de 2015
Do you have the images yet? If you're having trouble finding black velvet where you live, then just use black construction paper.

Iniciar sesión para comentar.

Más respuestas (1)

Matt J
Matt J el 17 de En. de 2015
Editada: Matt J el 17 de En. de 2015
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;

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by