MATLAB Answers


how Thicken border 1-pixel wide with 2 pixels?

Asked by Tomas
on 24 Oct 2012

Hi how thicken border 1-pixel wide with 2 pixels with matlab? thanks

edg = edge(I,'log',0);



1 Answer

Answer by Sean de Wolski
on 24 Oct 2012

doc imdilate


on 26 Oct 2012

thank you, I tried it but I haven't got a good result. There is another solution please

That's the way to do it. Why was your result not good? Can you upload some example images illustrating why it's no good? What will you end up doing with this thickened image anyway?

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!