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 can I extend an edge?

Asked by Tomas

Tomas (view profile)

on 2 Nov 2012

Hi

I need to find the surrounding edge of a region. I used these lines but it don't give me a good result . log find an edge belonging to the region when I need to find the edge that surrounds the region. Is there a matlab function that extends the edge given by log 1 or 2 pixels

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

thankx

0 Comments

Tomas

Tomas (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst

Image Analyst (view profile)

on 2 Nov 2012

No.

1 Comment

Tomas

Tomas (view profile)

on 2 Nov 2012

thank you for your reply, is it possible to dilate the edge to the outside of the region. How can i correct these lines?

NHOOD = [ 0 1 0; 1 1 1; 0 1 0];
SE = strel('arbitrary', NHOOD);
Dilate = imdilate(Edge, SE);
Image Analyst

Image Analyst (view profile)

Contact us