How to estimate the standard deviation of canny edge detection

I want to segment a video using canny edge detection. I want to know if there is a method to estimate the standard deviation automatically used in canny algorithm?

2 Comments

What do you mean the standard deviation automatically?
For different image, canny algorithm will use different sigma to smooth images and get good result of segmentation. If there are some methods to estimate sigma using the image information,no need to set the parameters manually.

Sign in to comment.

Answers (2)

Do you want something like stdfilt?
doc stdfilt

1 Comment

Or maybe something like std(yourImageArray(:))??? This question definitely needs more explanation.

Sign in to comment.

Now, I estimate the noise variance to replace the sigma in canny algorithm. Thanks everyone.

Categories

Asked:

on 20 Jul 2011

Community Treasure Hunt

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

Start Hunting!