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

New to MATLAB?

how Thicken border 1-pixel wide with 2 pixels?

Asked by Tomas

Tomas (view profile)

on 24 Oct 2012

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

I=imread('image.jpg');
edg = edge(I,'log',0);

thankx

0 Comments

Tomas

Tomas (view profile)

1 Answer

Answer by Sean de Wolski

Sean de Wolski (view profile)

on 24 Oct 2012
doc imdilate

2 Comments

Tomas

Tomas (view profile)

on 26 Oct 2012

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

Image Analyst

Image Analyst (view profile)

on 26 Oct 2012

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?

Sean de Wolski

Sean de Wolski (view profile)

Contact us