How is Threshold parameter calculated and expressed in Unsharp Mask?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm trying to understand the imsharpen function:
https://it.mathworks.com/help/images/ref/imsharpen.html
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!