The image preprocessing method of holographic reproduction proposed by the present invention relates to the field of holographic image processing technology. Step 1, graying, the top-hat operation is adopted to compensate the image background of the three component images of R, G and B respectively, and then the three images are superimposed to obtain gray image; Step 2, thresholding, Otsu thresholding method is used to calculate the gray image. The gray image obtained in step 1 makes the maximum variance between classes, and then the image is thresholded to get the binary image. Step 3, Region growth, the initial binary image obtained in step 2 is re-opened, and the results are used as seed points to grow the gray image region. The method of the invention preprocesses the original image and obtains an ideal binary image, which is convenient for subsequent extraction and recognition of image features. The effect of the method has been verified by experiments. The experimental results show that the method can obtain a better binary image for image recognition.
【技术实现步骤摘要】
全息再现的图像预处理方法
本专利技术涉及全息图像处理
,尤其是全息再现的图像预处理方法。
技术介绍
图像预处理是图像识别中必不可少的环节,其效果的好坏将直接影响识别算法的复杂度及识别的准确率。常见的图像预处理的方法有图像的灰度化、图像增强、二值化以及图像分割等。但当原始图像是透明的防伪标识在红色激光的照射下、在全息屏上再现的图像,属于典型的光照不均匀的图像,因此需要结合使用多种图像预处理方法,才能得到较好的二值图像,以便于图像的识别。
技术实现思路
本专利技术提供的全息再现的图像预处理方法,原始图像经过预处理后,得到了较为理想的二值图像。本专利技术具体采用如下技术方案实现:一种全息再现的图像预处理方法,具体包括以下步骤:步骤1、灰度化,对图像的R、G、B三个分量图像分别采取了顶帽运算的方式进行图像背景的补偿,然后,将得到的三幅图像叠加,从而得到灰度图像;步骤2、阈值化,运用Otsu阈值化方法计算所述步骤1得到的灰度图像中使得类间方差最大的阈值,然后将图像阈值化,得到二值图像;步骤3、区域生长,对所述步骤2初步得到的二值图像再次做开运算,并将结果作为种子点,对灰度 ...
【技术保护点】
1.一种全息再现的图像预处理方法,其特征在于,具体包括以下步骤:步骤1、灰度化,对图像的R、G、B三个分量图像分别采取了顶帽运算的方式进行图像背景的补偿,然后,将得到的三幅图像叠加,从而得到灰度图像;步骤2、阈值化,运用Otsu阈值化方法计算所述步骤1得到的灰度图像中使得类间方差最大的阈值,然后将图像阈值化,得到二值图像;步骤3、区域生长,对所述步骤2初步得到的二值图像再次做开运算,并将结果作为种子点,对灰度图像进行区域生长,区域生长的条件是若像素与种子点之间的亮度差的绝对值小于或等于某个阈值(此处阈值为15),则判定这个像素是类似于该种子点的,并将其划归到该种子点所属区域 ...
【技术特征摘要】
1.一种全息再现的图像预处理方法,其特征在于,具体包括以下步骤:步骤1、灰度化,对图像的R、G、B三个分量图像分别采取了顶帽运算的方式进行图像背景的补偿,然后,将得到的三幅图像叠加,从而得到灰度图像;步骤2、阈值化,运用Otsu阈值化方法计算所述步骤1得到的灰度图像中使得类间方差最大的阈值,然后将图像阈值化,...
【专利技术属性】
技术研发人员:不公告发明人,
申请(专利权)人:北京微美云息软件有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。