Increase edge thickness in binary?

29 visualizaciones (últimos 30 días)
Steven
Steven el 27 de Oct. de 2014
Comentada: Steven el 28 de Oct. de 2014
Hi
I have detected the edges of an image using "bwperim". I want to increase the thickness the edges (such as the sides of a square) to make it more visible. How can I do it using Image Processing Toolbox?
Thanks!
Steven

Respuesta aceptada

Anand
Anand el 27 de Oct. de 2014
Have a look at the imdilate function.
Here's a quick example,
BW1 = imread('circbw.tif');
BW2 = bwperim(BW1,8);
BW3 = imdilate(BW2, strel('disk',1));
  1 comentario
Steven
Steven el 28 de Oct. de 2014
Thanks Anand!

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by