计算图像的亮度和锐度 [英] calculate blurness and sharpness of an image
本文介绍了计算图像的亮度和锐度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何计算给定图像的亮度和锐度usig opencv?在opencv有什么功能吗?如果在opencv中没有函数怎么实现呢?
How to calculate blurness and sharpness of a given image usig opencv? Is there any functions there in opencv to do it? If there is no functions in opencv how can I implement it? nay ideas would be great..
输入将是一个图像,输出应该是图像的亮度和锐度。
The input will be an image and the output should be the blurness and sharpness of the image.
推荐答案
我建议你对图像进行频率分析。高能带中的能量会告诉你图像相当锐化,而低能带中的能量通常意味着图像模糊。对于计算频谱,您可以使用FFTW库。
I recommend you to make a frequential analysis of the image. Energy in high band will tell you that the image is quite sharpened, while energy in low band usually means that image is blurry. For computing spectrum, you can use FFTW library.
注意,
这篇关于计算图像的亮度和锐度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文