How is Threshold parameter calculated and expressed in Unsharp Mask?

1 回表示 (過去 30 日間)
Nut 2017 年 3 月 22 日
編集済み: Nut 2017 年 3 月 22 日
I'm trying to understand the imsharpen function:
I would like to understand how the Threshold parameter is calculated. It is about the minimum contrast, but how the contrast is calculated? The Threshold must be a scalar in the range [0 1], so I think it is a ratio: but of what?
As example, if I want to exclude the edges characterized by a difference of intensity equal or less than 20, which is the value to set as Threshold?
I also tried to investigate by using the imgradient function, but the resultant matrix can have values greater than 1, so I think it is not what I'm looking for.
Finally, in my case it could be very very useful to return a matrix (of the same size of the image) containing the value of contrast pixel by pixel, as calculated in order to apply the Threshold.
Thanks for your answers, kind regards.

回答 (0 件)


Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by