The invention relates to a method for detecting image sharpness of a computer system, including the selection of the target test card in the image region of interest; choose a pixel in the selected region of interest was used to scan and horizontal gradient calculation of each scanning line; the pixel level gradient on each scan line was analyzed and a statistical level gradient for similar; by the height of the image pixel value points gradient levels similar to the definition are divisible by continuous calculation. The implementation methods of the image definition detection of the computer system, the use of interactive selection of region of interest and multi scan line gradient statistical analysis to overcome the subjective judgment on problems in the traditional method, and the final test results accord with the human visual characteristics, using multi line technique and multi line gradient statistical analysis, so as to overcome the traditional detection method of dependence on people and the existing detection tools and human visual characteristics are consistent with the problem of poor, has wider application range.
【技术实现步骤摘要】
本专利技术涉及图像处理
,尤其涉及图像清晰度检测
,具体是指一种计算机系统中实现图像清晰度检测的方法。
技术介绍
图像清晰度检测基于测试卡图像的图像分析过程。目前图像清晰度分析主要采用基于投射式和反射式测试卡图像的人工主观判断的方式,这种方式优点在于检测结果符合人眼视觉模型,缺点在于检测结果完全依赖于人的主观判断,不同人的检测结果往往不一致。在实际摄像机类产品测试工程测试过程中,如何建立一致性检测同时符合人眼视觉模型的图像清晰度分析方法成为摄像机类产品测试过程中的重要问题。经过对现有技术的检索发现,目前主流测试为采用IMGTEST为代表的测试软件对测试卡图像进行分析,该方法对测试卡和调制传递函数都有相对严格要求,要想获得一致性高且满足人眼视觉特性的清晰度测试结果比较困难。
技术实现思路
本专利技术的目的是克服了上述现有技术的缺点,提供了一种能够实现有效克服传统方法中依赖人主观判断的问题、同时最终的检测结果符合人眼视觉特性、具有更广泛应用范围的计算机系统中实现图像清晰度检测的方法。为了实现上述目的,本专利技术的计算机系统中实现图像清晰度检测的方法具有如下构成:该计算机系统中实现图像清晰度检测的方法,其主要特点是,所述的方法包括以下步骤:(1)选择目标测试卡图像中的感兴趣区域;(2)选择一像素点对选择的感兴趣区域进行扫描并计算每条扫描线的水平梯度;(3)对每条扫描线的水平梯度进 ...
【技术保护点】
一种计算机系统中实现图像清晰度检测的方法,其特征在于,所述的方法包括以下步骤:(1)选择目标测试卡图像中的感兴趣区域;(2)选择一像素点对选择的感兴趣区域进行扫描并计算每条扫描线的水平梯度;(3)对每条扫描线的水平梯度进行分析并统计连续相似的水平梯度的像素点数;(4)采用图像的高度值整除所述的连续相似的水平梯度的像素点数得到清晰度计算结果。
【技术特征摘要】
1.一种计算机系统中实现图像清晰度检测的方法,其特征在于,所述的方法包括以下
步骤:
(1)选择目标测试卡图像中的感兴趣区域;
(2)选择一像素点对选择的感兴趣区域进行扫描并计算每条扫描线的水平梯度;
(3)对每条扫描线的水平梯度进行分析并统计连续相似的水平梯度的像素点数;
(4)采用图像的高度值整除所述的连续相似的水平梯度的像素点数得到清晰度计算结
果。
2.根据权利要求1所述的计算机系统中实现图像清晰度检测的方法,其特征在于,所述
的选择目标测试卡图像中的感兴趣区域,具体为:
采用鼠标以按照如下公式的矩形框选择目标测试卡图像中的感兴趣区域:
Iroi=I·REC(x,y,width,height)
x,y是图像中鼠标选中的初始像素点的坐标,width,height分别为选取矩形框的宽度
和高度,REC为矩形框操作,I为原始图像,Iroi为矩形框操作后的感兴趣区域。
3.根据权利要求1所述的计算机系统中实现图像清晰度检测的方法,其特征在于,所述
的对选择的感兴趣区域进行扫描,具体为:
对选取的感兴趣区域从左上角依次选择一像素点开始从左到右进行扫描,每次扫描采
用三条扫描线L1、L2和L3。
4.根据权利要求3所述...
【专利技术属性】
技术研发人员:闵庆浩,唐汪林,姚晨,王慈,
申请(专利权)人:上海敏达网络科技有限公司,
类型:发明
国别省市:上海;31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。