Thread Subject: a problem about Canny edge

Subject: a problem about Canny edge

From: dai

Date: 20 Jul, 2009 13:15:17

Message: 1 of 4

Dear all, I am new to matlab and when I use canny detector to detect the edge of the Image. I find a interesting thing that if I use canny detector for the whole image and get the boundary, at the same time I cut some part of the Image and use canny to detect the part of the Image, I find that it is the same when I use the canny for the whole image and for the part. Could anyone tell me why it happens?

Subject: a problem about Canny edge

From: Dave Robinson

Date: 20 Jul, 2009 13:47:02

Message: 2 of 4

"dai " <279711585@qq.com> wrote in message <h41ql5$5hp$1@fred.mathworks.com>...
> Dear all, I am new to matlab and when I use canny detector to detect the edge of the Image. I find a interesting thing that if I use canny detector for the whole image and get the boundary, at the same time I cut some part of the Image and use canny to detect the part of the Image, I find that it is the same when I use the canny for the whole image and for the part. Could anyone tell me why it happens?

Sorry to say I cannot make any sense of what you are asking - it may be me being a bit thick this afternoon. Perhaps you could have another attempt at explaining exactly what you are trying to do, then I might be able to help.

Regards

Dave Robinson

Subject: a problem about Canny edge

From: dai

Date: 21 Jul, 2009 02:23:01

Message: 3 of 4

"Dave Robinson" <dave.robinson@somewhere.biz> wrote in message <h41sgm$f65$1@fred.mathworks.com>...
> "dai " <279711585@qq.com> wrote in message <h41ql5$5hp$1@fred.mathworks.com>...
> > Dear all, I am new to matlab and when I use canny detector to detect the edge of the Image. I find a interesting thing that if I use canny detector for the whole image and get the boundary, at the same time I cut some part of the Image and use canny to detect the part of the Image, I find that it is the same when I use the canny for the whole image and for the part. Could anyone tell me why it happens?
>
> Sorry to say I cannot make any sense of what you are asking - it may be me being a bit thick this afternoon. Perhaps you could have another attempt at explaining exactly what you are trying to do, then I might be able to help.
>
> Regards
>
> Dave Robinson

My question is that the Canny edge detecter effecting the whole Image and some part of the image is the same.
For example:
>>load I
>>BW_I = edge(I,'canny');
>>J = I(50:100,50:100);
>>BW_J = edge(J,'canny');
Now it is shown that BW_J = BW_I(50:100,50:100).
I do not know why.

Subject: a problem about Canny edge

From: ImageAnalyst

Date: 21 Jul, 2009 04:07:08

Message: 4 of 4

On Jul 20, 10:23 pm, "dai " <279711...@qq.com> wrote:
> "Dave Robinson" <dave.robin...@somewhere.biz> wrote in message <h41sgm$f6...@fred.mathworks.com>...
> > "dai " <279711...@qq.com> wrote in message <h41ql5$5h...@fred.mathworks.com>...
> > > Dear all, I am new to matlab and when I use canny detector to detect the edge of the Image. I find a interesting thing that if I use canny detector for the whole image and get the boundary, at the same time I cut some part of the Image and use canny to detect the part of the Image, I find that it is the same when I use the canny for the whole image and for the part. Could anyone tell me why it happens?
>
> > Sorry to say I cannot make any sense of what you are asking - it may be me being a bit thick this afternoon. Perhaps you could have another attempt at explaining exactly what you are trying to do, then I might be able to help.
>
> > Regards
>
> > Dave Robinson
>
> My question is that the Canny edge detecter effecting the whole Image and some part of the image is the same.
> For example:>>load I
> >>BW_I = edge(I,'canny');
> >>J = I(50:100,50:100);
> >>BW_J = edge(J,'canny');
>
> Now it is shown that BW_J = BW_I(50:100,50:100).
> I do not know why.

---------------------------------------------------------------------
OK so if you Canny the whole image and crop a portion of it, it looks
the same as if you cropped first and then Canny'ed it. Seems normal.
Why does this seem unusual to you? Why are you expecting anything
different? The edges present in that portion of the image will appear
in the output regardless if you crop it before or after edge
detection.
ImageAnalyst

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
edge canny Sprinceana 20 Jul, 2009 11:34:58
rssFeed for this Thread

Contact us at files@mathworks.com