how does edge(image,'log') calculate threshold?

6 次查看(过去 30 天)
hi friends,
As a part of my Masters curriculum I have to publish a paper during my course. I am using gradient and morphological operations for fingerprint image segmentation.
For command img2=edge(img1,'log'), function edge calculates threshold automatically.
How do I represent this in my paper? Is it ok that I use ">>threshold using LoG"? Or I have to explain algorithm for threshold calculation so this remains programming language independent.
I opened edge.m editor but could not understand how threshold is calculated.

回答(1 个)

Image Analyst
Image Analyst 2013-10-8
The method is not specified. If you need to know you'll have to call imgradient() and then do the thresholding yourself.
  2 个评论
Sam
Sam 2013-10-8
I have specified the method. it is 'log'... "The Laplacian of Gaussian method finds edges by looking for zero crossings after filtering I with a Laplacian of Gaussian filter."
BW = edge(I,'log',THRESH) specifies the sensitivity threshold for the Laplacian of Gaussian method. edge ignores all edges that are not stronger than THRESH. If you do not specify THRESH, or if THRESH is empty ([]), edge chooses the value automatically .
Image Analyst
Image Analyst 2013-10-8
You specified the edge detection method, not the thresholding method. LoG mean Laplacian of Gaussian. It refers to a kernel , not a threshold. Basically it blurs the image twice and subtracts the result from the original image, though it can all be done in one single step. Anyway, you can see that if you don't specify the threshold, it does it automatically using an unspecified method.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by