Borrar filtros
Borrar filtros

this is what the code is

1 visualización (últimos 30 días)
kavya p
kavya p el 7 de En. de 2015
Comentada: Image Analyst el 29 de En. de 2015
Result which I getting is full black Code is as follows
I =imread('image.bitmap');
G=rgb2gray(I);
Se=ones(5,5);
Out=imdilate(G,Se);
Out1=imerode(Out,Se);
Out2=imsubtract(Out,Out1);

Respuesta aceptada

Image Analyst
Image Analyst el 7 de En. de 2015
Try using [] in imshow():
Out2 = double(Out) - double(Out1);
imshow(Out2, []);
  2 comentarios
kavya p
kavya p el 29 de En. de 2015
Thanks for ur suggestion.This suggestion may work for pixel of width more than 1
Image Analyst
Image Analyst el 29 de En. de 2015
Uh, yeah. It doesn't really have anything to do with a pixel "width".

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by