Borrar filtros
Borrar filtros

how to write morphological based edge detection code based using imdilate and erode to find edges for image of one pixel width

3 visualizaciones (últimos 30 días)
Finding edges For attached image using morphological based functions like imdilate and imerode

Respuestas (1)

Image Analyst
Image Analyst el 7 de En. de 2015
Did you try obvious things like
edgeImageE = double(grayImage) - double(imerode(grayImage));
imshow(edgeImageE, []);
edgeImageD = double(grayImage) - double(imdilate(grayImage));
imshow(edgeImageD, []);
on your images (which were not attached by the way)?
  2 comentarios
kavya p
kavya p el 7 de En. de 2015
Editada: kavya p el 7 de En. de 2015
First I dilate image using imdilate with structuring element than erode results with same structuring using imerode tan subtract obtained result after dilation & erosion I getting result for images rather tan this image which I attached
Image Analyst
Image Analyst el 7 de En. de 2015
The dilation will probably be all white. The erosion of that image will also be all white since erosion is a local min and there are no mins - the entire image is 255. The erosion of the original image will have thicker black lines. The subtraction of the erosion of the original from the dilation of the original should show something. What is the problem? Where is your code and original image, or screenshots of your resulting images? Try this.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by