CN102567957B - Method and system for removing reticulate pattern from image - Google Patents
Method and system for removing reticulate pattern from image Download PDFInfo
- Publication number
- CN102567957B CN102567957B CN201010616588.5A CN201010616588A CN102567957B CN 102567957 B CN102567957 B CN 102567957B CN 201010616588 A CN201010616588 A CN 201010616588A CN 102567957 B CN102567957 B CN 102567957B
- Authority
- CN
- China
- Prior art keywords
- image
- texture
- pixel
- unit
- color
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000015556 catabolic process Effects 0.000 claims abstract description 31
- 238000006731 degradation reaction Methods 0.000 claims abstract description 31
- 238000012545 processing Methods 0.000 claims abstract description 12
- 238000004458 analytical method Methods 0.000 claims description 10
- 230000009466 transformation Effects 0.000 claims description 6
- 238000010606 normalization Methods 0.000 claims description 5
- 238000012916 structural analysis Methods 0.000 claims description 3
- 238000007774 anilox coating Methods 0.000 claims 1
- 238000009826 distribution Methods 0.000 abstract description 5
- 230000000737 periodic effect Effects 0.000 abstract description 5
- 230000000694 effects Effects 0.000 abstract description 3
- 239000000758 substrate Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
本发明提供了一种去除图像中网纹的方法与系统,用以解决现有技术中去除图像中的网纹的处理效果不佳的问题。该方法包括:获取图像的网纹结构特征;建立图像退化模型;依据所述图像退化模型,得到去除网纹后的图像。采用本发明的技术方案,利用了网纹的周期性分布的结构特征,因而能够更好地去除网纹,并尽可能的保持原始图像细节的完整性。
The present invention provides a method and system for removing the texture in an image, which is used to solve the problem in the prior art that the processing effect of removing the texture in the image is not good. The method includes: obtaining the texture feature of the image; establishing an image degradation model; and obtaining the image after removing the texture according to the image degradation model. The technical solution of the present invention utilizes the structural feature of the periodic distribution of the texture, so the texture can be removed better and the integrity of the details of the original image can be kept as much as possible.
Description
技术领域 technical field
本发明涉及一种去除图像中网纹的方法与系统。The invention relates to a method and a system for removing net pattern in an image.
背景技术 Background technique
在印刷过程中,由于着墨辊对承印物的压力不均匀、承印物本身的粗糙程度也各不相同、油墨在承印物上的堆积也不相同,造成油墨在承印物上的深浅断隔,从而形成了有规律的、深浅不同的、与承印物本身纹理有关的着墨纹理,该纹理可以看作是由基本相同的纹理单元周期性出现而形成,我们称之为网纹。如图1的方框11中的图像所示,图1是现有技术中包含网纹的图像的示例。在对承印物进行扫描以获取承印物上的图像时,网纹也随之被扫描而进入获取的图像中,网纹一般会影响图像的完整性或者美观,通常在应用这些图像时希望去除网纹,并且尽量保持原图像的内容不被破坏。During the printing process, due to the uneven pressure of the inking roller on the substrate, the roughness of the substrate itself is also different, and the accumulation of ink on the substrate is also different, resulting in the depth of the ink on the substrate. Formed a regular, different shades of inking texture related to the texture of the substrate itself, which can be seen as formed by the periodic appearance of basically the same texture units, which we call reticulation. As shown in the image in
为了去除图像中的网纹,目前实际生产中常采用的方法包括:(1)以较高的分辨率扫描图像,然后缩小高分辨率的图像,得到没有网纹的图像。该方法虽简单实用,但受限于扫描设备的分辨率。(2)将网纹视为图像中的噪声,采用一般的图像滤波方法对原图进行平滑或去噪。该类方法不能很好的保持图像的细节不被破坏。(3)利用纹理特征的周期性,在频域或小波域去网纹。由于承印物本身的变化、扫描时产生的扭曲等都会导致网纹本身并不完全符合周期性,这类方法也不能很好的去除网纹。In order to remove the moire in the image, the methods commonly used in actual production at present include: (1) scanning the image with a higher resolution, and then reducing the high-resolution image to obtain an image without moire. Although this method is simple and practical, it is limited by the resolution of the scanning device. (2) Treat the texture as the noise in the image, and use the general image filtering method to smooth or denoise the original image. This type of method cannot keep the details of the image well. (3) Use the periodicity of texture features to de-texture in the frequency domain or wavelet domain. Due to the change of the substrate itself, the distortion generated during scanning, etc., the texture itself is not completely in line with the periodicity, and this method cannot remove the texture well.
总体而言,现有技术中去除图像中的网纹的处理效果不佳,对于该问题,目前尚未提出有效解决方案。Generally speaking, the processing effect of removing the texture in the image in the prior art is not good, and no effective solution has been proposed for this problem so far.
发明内容 Contents of the invention
本发明的主要目的是提供一种去除图像中网纹的方法与系统,以解决现有技术中去除图像中的网纹的处理效果不佳的问题。The main purpose of the present invention is to provide a method and system for removing the texture in an image, so as to solve the problem in the prior art that the processing effect of removing the texture in the image is not good.
为了实现上述目的,根据本发明的一个方面,提供了一种去除图像中网纹的方法。In order to achieve the above object, according to one aspect of the present invention, a method for removing moire in an image is provided.
本发明的去除图像中网纹的方法包括:获取图像的网纹结构特征;建立图像退化模型;依据所述图像退化模型,得到去除网纹后的图像。The method for removing the texture in the image of the present invention includes: acquiring the texture structure feature of the image; establishing an image degradation model; and obtaining the image after the texture is removed according to the image degradation model.
进一步地,所述获取图像的网纹结构特征包括:确定网纹单元结构;定位图像中每个网纹单元在图像中的位置以及所述网纹单元中的每个像素点在网纹单元中的位置。Further, the acquisition of the textured structure features of the image includes: determining the textured unit structure; locating the position of each textured unit in the image and the position of each pixel in the textured unit in the textured unit s position.
进一步地,所述确定网纹单元结构包括:计算图像的自相关图像;确定所述自相关图像的峰值像素点;选取任意一个峰值像素点作为网纹单元的第一端点,选取与所述第一端点非共线的任意两个相邻像素点作为网纹单元的第二端点和第三端点;选取与所述第一端点、第二端点以及第三端点均相邻的像素点作为网纹单元的第四端点,以所述四个端点构成的四边形单元结构作为网纹单元结构。Further, the determination of the texture unit structure includes: calculating the autocorrelation image of the image; determining the peak pixel point of the autocorrelation image; selecting any peak pixel point as the first endpoint of the texture unit, and selecting the Any two adjacent pixel points that are not collinear at the first end point are used as the second end point and the third end point of the mesh unit; select the pixel points that are adjacent to the first end point, the second end point, and the third end point As the fourth end point of the textured unit, the quadrilateral unit structure formed by the four endpoints is used as the textured unit structure.
进一步地,所述定位图像中每个网纹单元在图像中的位置以及所述网纹单元中的每个像素点在网纹单元中的位置包括:依据所述网纹单元结构,依次遍历所有峰值点,以峰值点作为网纹单元端点,确定图像中每个网纹单元的位置;定位网纹单元中的每个像素点在其网纹单元中的位置。Further, the positioning of the position of each texture unit in the image and the position of each pixel in the texture unit in the texture unit includes: according to the texture unit structure, sequentially traversing all Peak point, with the peak point as the endpoint of the texture unit, determine the position of each texture unit in the image; locate the position of each pixel point in the texture unit in its texture unit.
进一步地,所述建立图像退化模型是指依据网纹单元的颜色信息,确定网纹单元中的每个像素点颜色为真实色的可靠度。Further, the establishment of the image degradation model refers to determining the reliability of the color of each pixel in the texture unit as a real color according to the color information of the texture unit.
进一步地,所述每个像素点颜色为真实色的可靠度包括:计算每个网纹单元i中的任意像素点(x,y)的饱和度Si(x,y),同时计算每个网纹单元中最高饱和度SHi;累加所有网纹单元中位于相同位置的像素点饱和度Si(x,y)与网纹单元中最高饱和度SHi的比值,最后取均值作为每个像素点颜色为真实色的可靠度,即 Further, the reliability that the color of each pixel point is a true color includes: calculating the saturation S i(x, y) of any pixel point (x, y ) in each texture unit i, and calculating each The highest saturation SH i in the texture unit; add up the ratio of the pixel point saturation S i(x, y) at the same position in all texture units to the highest saturation SH i in the texture unit, and finally take the mean value as each The reliability of the pixel color as the true color, that is,
进一步地,在进行依据所述图像退化模型,得到去除网纹后的图像的步骤之前,还包括:依据定位图像中每个网纹单元在图像中的位置后,对网纹单元的结构进行稳定性评估;若存在网纹单元结构形变的情况,则依据坐标变换更新原图像得到网纹单元未变形的图像。Further, before performing the step of obtaining the image after removing the texture according to the image degradation model, it also includes: after locating the position of each texture unit in the image in the image, stabilizing the structure of the texture unit performance evaluation; if there is structural deformation of the textured unit, the original image is updated according to the coordinate transformation to obtain the undistorted image of the textured unit.
进一步地,所述依据所述图像退化模型,得到去除网纹后的图像包括:依据当前像素点邻域内每个像素点颜色为真实色的可靠度以及每个像素点与当前像素点的距离加权得到更新后所述像素点的像素值,更新后的图像即为去除网纹后的图像。Further, according to the image degradation model, obtaining the image after removing the texture includes: weighting according to the reliability of the color of each pixel in the neighborhood of the current pixel as a true color and the distance between each pixel and the current pixel The updated pixel value of the pixel point is obtained, and the updated image is the image after de-screening.
进一步地,所述更新后所述像素点的像素值R(i,j)为:其中P(x,y)为原图像中像素点颜色为真实色的可靠度,C(x,y)为原图像中像素的颜色;N(i,j)为坐标为(i,j)的像素点的邻域;D(x-i,y-j)为与坐标(x,y)\坐标(i,j)之间距离有关的权重,坐标(x,y)距离坐标(i,j)越远,D(x-i,y-j)的值越小,归一化系数 Further, the pixel value R (i, j) of the pixel point after the update is: Among them, P (x, y) is the reliability of the color of the pixel in the original image as the true color, C (x, y) is the color of the pixel in the original image; N (i, j) is the coordinate of (i, j) The neighborhood of pixels; D (xi, yj) is the weight related to the distance between coordinates (x, y)\coordinates (i, j), the farther the coordinates (x, y) are from the coordinates (i, j), The smaller the value of D (xi, yj) , the normalization coefficient
根据本发明的另一方面,提供了一种去除图像中网纹的系统。According to another aspect of the present invention, a system for removing moire in an image is provided.
本发明的去除图像中网纹的系统包括:结构分析模块,用于获取图像的网纹结构特征;退化模型模块,用于建立图像退化模型;网纹处理模块,用于依据所述图像退化模型,得到去除网纹后的图像。The system for removing texture in an image of the present invention includes: a structure analysis module, used to obtain texture features of an image; a degradation model module, used to establish an image degradation model; a texture processing module, used to base the image degradation model on , to obtain the image after removing the texture.
进一步地,所述结构分析模块还用于确定网纹单元结构;定位图像中每个网纹单元在图像中的位置以及所述网纹单元中的每个像素点在网纹单元中的位置。Further, the structure analysis module is also used to determine the texture unit structure; locate the position of each texture unit in the image and the position of each pixel in the texture unit in the texture unit.
进一步地,所述结构分析模块还用于计算图像的自相关图像;确定所述自相关图像的峰值像素点;选取任意一个峰值像素点作为网纹单元的第一端点,选取与所述第一端点非共线的任意两个相邻像素点作为网纹单元的第二端点和第三端点;选取与所述第一端点、第二端点以及第三端点均相邻的像素点作为网纹单元的第四端点,以所述四个端点构成的四边形单元结构作为网纹单元结构。Further, the structure analysis module is also used to calculate the autocorrelation image of the image; determine the peak pixel point of the autocorrelation image; select any peak pixel point as the first endpoint of the mesh unit, and select Any two adjacent pixels of an endpoint non-collinear are used as the second endpoint and the third endpoint of the mesh unit; the pixels adjacent to the first endpoint, the second endpoint, and the third endpoint are selected as For the fourth end point of the textured unit, the quadrilateral unit structure formed by the four endpoints is used as the textured unit structure.
进一步地,所述结构分析模块还用于依据所述网纹单元结构,依次遍历所有峰值点,以峰值点作为网纹单元端点,确定图像中每个网纹单元的位置;定位网纹单元中的每个像素点在其网纹单元中的位置。Further, the structure analysis module is also used for traversing all the peak points sequentially according to the texture unit structure, using the peak point as the endpoint of the texture unit to determine the position of each texture unit in the image; The position of each pixel in its texture unit.
进一步地,所述退化模型模块还用于依据网纹单元的颜色信息,确定网纹单元中的每个像素点颜色为真实色的可靠度。Further, the degradation model module is also used to determine the reliability of the color of each pixel in the texture unit as a true color according to the color information of the texture unit.
进一步地,所述退化模型模块还用于计算每个网纹单元i中的任意像素点(x,y)的饱和度Si(x,y),同时计算每个网纹单元中最高饱和度SHi;累加所有网纹单元中位于相同位置的像素点饱和度Si(x,y)与网纹单元中最高饱和度SHi的比值,最后取均值作为每个像素点颜色为真实色的可靠度,即 Further, the degradation model module is also used to calculate the saturation S i(x, y) of any pixel point (x, y) in each texture unit i, and at the same time calculate the highest saturation in each texture unit SH i ; Accumulate the ratio of the pixel point saturation S i(x, y) at the same position in all textured units to the highest saturation SHi in the textured unit, and finally take the average value as a reliable guarantee that the color of each pixel point is the true color degree, that is
进一步地,所述系统还包括稳定性模块,用于依据定位图像中每个网纹单元在图像中的位置后,对网纹单元的结构进行稳定性评估;若存在网纹单元结构形变的情况,则依据坐标变换更新原图像得到网纹单元未变形的图像。Further, the system also includes a stability module, which is used to evaluate the stability of the texture unit structure according to the position of each texture unit in the image after positioning; if there is a texture deformation of the texture unit , then the original image is updated according to the coordinate transformation to obtain the undistorted image of the mesh unit.
进一步地,所述网纹处理模块还用于依据当前像素点邻域内每个像素点颜色为真实色的可靠度以及每个像素点与当前像素点的距离加权得到更新后所述像素点的像素值,更新后的图像即为去除网纹后的图像。Further, the texture processing module is also used to obtain the updated pixels of the pixel according to the reliability of the color of each pixel in the neighborhood of the current pixel as a true color and the weight of the distance between each pixel and the current pixel. value, the updated image is the image after removing the texture.
进一步地,所述网纹处理模块还用于根据计算所述更新后所述像素点的像素值R(i,j),其中P(x,y)为原图像中像素点颜色为真实色的可靠度,C(x,y)为原图像中像素的颜色;N(i,j)为坐标为(i,j)的像素点的邻域;D为与距离有关的权重,坐标(x,y)距离坐标(i,j)越远,D的值越小,归一化系数 Further, the texture processing module is also used for Calculate the pixel value R (i, j) of the pixel point after the update, where P (x, y) is the reliability of the true color of the pixel point color in the original image, and C (x, y) is the reliability in the original image The color of the pixel; N (i, j) is the neighborhood of the pixel with the coordinates (i, j); D is the weight related to the distance, the farther the coordinate (x, y) is from the coordinate (i, j), the D The smaller the value, the normalization coefficient
根据本发明的技术方案,利用了网纹的周期性分布的结构特征,因而能够更好地去除网纹,并尽可能的保持原始图像细节的完整性。According to the technical solution of the present invention, the structural feature of the periodic distribution of the texture is utilized, so the texture can be removed better and the integrity of the details of the original image can be kept as much as possible.
附图说明 Description of drawings
说明书附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings in the description are used to provide a further understanding of the present invention and constitute a part of the present application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是现有技术中包含网纹的图像的示例;Fig. 1 is the example that comprises the image of texture in the prior art;
图2是根据本发明实施例的去除图像中网纹的方法的主要步骤的示意图;2 is a schematic diagram of main steps of a method for removing texture in an image according to an embodiment of the present invention;
图3是根据本发明实施例的获取图像的网纹结构特征的一种具体步骤的示意图;Fig. 3 is a schematic diagram of a specific step of acquiring the texture feature of an image according to an embodiment of the present invention;
图4是根据本发明实施例的网纹单元结构的示意图;以及4 is a schematic diagram of a textured cell structure according to an embodiment of the present invention; and
图5是根据本发明实施例的去除图像中网纹的系统的主要模块的示意图。Fig. 5 is a schematic diagram of main modules of a system for removing moire in an image according to an embodiment of the present invention.
具体实施方式 Detailed ways
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.
图2是根据本发明实施例的去除图像中网纹的方法的主要步骤的示意图,如图2所示,该方法主要包括如下步骤:Fig. 2 is a schematic diagram of the main steps of a method for removing texture in an image according to an embodiment of the present invention. As shown in Fig. 2, the method mainly includes the following steps:
步骤S21:获取图像的网纹结构特征;Step S21: Obtain the texture feature of the image;
步骤S23:建立图像退化模型;Step S23: establishing an image degradation model;
步骤S25:依据图像退化模型,得到去除网纹后的图像。Step S25: According to the image degradation model, obtain the image after removing the texture.
以下对于上述步骤再作进一步说明。步骤21的一种具体方式如图3所示,图3是根据本发明实施例的获取图像的网纹结构特征的一种具体步骤的示意图。图3中包含如下步骤:The above steps will be further described below. A specific manner of step 21 is shown in FIG. 3 , which is a schematic diagram of a specific step for acquiring texture features of an image according to an embodiment of the present invention. Figure 3 includes the following steps:
步骤S31:确定网纹单元结构;Step S31: determining the texture unit structure;
步骤S33:定位图像中每个网纹单元在图像中的位置以及网纹单元中的每个像素点在网纹单元中的位置。Step S33: Locating the position of each textured unit in the image and the position of each pixel in the textured unit in the textured unit.
本步骤分析网纹图像,获取网纹结构特征。假设可以将图像划分成不同的块,在每个块中网纹对图像内容的破坏服从相同或近似的规律,将这样的块称为一个网纹单元。理想情况下(网纹规则周期性排列,承印物没有变形扭曲等),可以将网纹图像划分成周期性排列的大小形状完全相同的块,每个块是一个网纹单元。在非理想网纹图像中,不同的网纹单元具有近似的形状,且近似地服从周期性的分布。In this step, the texture image is analyzed to obtain texture features. Assuming that the image can be divided into different blocks, and the destruction of the image content by the texture in each block obeys the same or similar law, such a block is called a texture unit. Ideally (the texture is regularly arranged regularly, the substrate is not deformed and distorted, etc.), the texture image can be divided into periodically arranged blocks of the same size and shape, and each block is a texture unit. In a non-ideal textured image, different textured units have similar shapes and approximately follow a periodic distribution.
网纹结构特征分析找出图像中网纹单元的的结构和分布情况,如找出每个网纹单元在图像中的位置,以及该网纹单元中每个元素在该网纹单元中的相对位置。Analysis of texture features Find out the structure and distribution of textured units in the image, such as finding the position of each textured unit in the image, and the relative position of each element in the textured unit in the textured unit Location.
在上述步骤S31中,具体可以先计算图像的自相关图像,然后确定该自相关图像的峰值像素点,再选取任意一个峰值像素点作为网纹单元的第一端点,以及选取与该第一端点非共线的任意两个相邻像素点,作为网纹单元的第二端点和第三端点;然后选取与该第一端点、第二端点以及第三端点均相邻的像素点作为网纹单元的第四端点,最后以上述四个端点构成的四边形单元结构作为网纹单元结构。一种可能的网纹结构如图4所示,图4是根据本发明实施例的网纹单元结构的示意图,其中方框41内为图像的一部分,该图像中黑色圆点例如圆点42表示网纹单元的中心,包围每个圆点的四边形例如四边形43为一个网纹单元。In the above step S31, specifically, the autocorrelation image of the image may be calculated first, then the peak pixel point of the autocorrelation image is determined, and any peak pixel point is selected as the first end point of the mesh unit, and the first endpoint corresponding to the first endpoint is selected. Any two adjacent pixel points whose endpoints are not collinear are used as the second endpoint and the third endpoint of the mesh unit; then select the pixels adjacent to the first endpoint, the second endpoint and the third endpoint as The fourth end point of the textured unit, finally, the quadrilateral unit structure formed by the above four endpoints is used as the textured unit structure. A possible mesh structure is shown in Figure 4, and Figure 4 is a schematic diagram of a texture unit structure according to an embodiment of the present invention, wherein a part of an image is inside a
在上述步骤S33中,具体可以是首先依据网纹单元结构依次遍历所有峰值点,然后以峰值点作为网纹单元端点确定图像中每个网纹单元的位置;再定位网纹单元中的每个像素点在其网纹单元中的位置。In the above-mentioned step S33, specifically, it may be first to traverse all the peak points sequentially according to the texture unit structure, and then use the peak point as the endpoint of the texture unit to determine the position of each texture unit in the image; The position of the pixel in its texture unit.
受网纹的影响,像素的颜色会发生改变,网纹单元中不同位置、不同颜色的像素受网纹影响的程度不同(如网纹图像中受网纹影响大的像素饱和度往往偏低),会发生不同程度的颜色改变,改变的程度越大,与真实色相同的概率就越小。步骤S23中建立图像退化模型时,可以是依据网纹单元的颜色信息,确定网纹单元中的每个像素点颜色为真实色的可靠度。具体可以是首先计算每个网纹单元i中的任意像素点(x,y)的饱和度Si(x,y),同时计算每个网纹单元中最高饱和度SHi;然后累加所有网纹单元中位于相同位置的像素点饱和度Si(x,y)与网纹单元中最高饱和度SHi的比值,最后取均值作为每个像素点颜色为真实色的可靠度P(x,y),即 Affected by the texture, the color of the pixel will change, and pixels of different positions and colors in the texture unit are affected by the texture to a different degree (for example, the saturation of pixels that are greatly affected by the texture in the texture image is often low) , different degrees of color changes will occur, and the greater the degree of change, the smaller the probability of being the same as the real color. When establishing the image degradation model in step S23, it may be based on the color information of the texture unit to determine the reliability of the color of each pixel in the texture unit being a true color. Specifically, the saturation S i(x, y) of any pixel point (x, y ) in each texture unit i can be calculated first, and the highest saturation SH i in each texture unit can be calculated at the same time; The ratio of the pixel point saturation S i (x, y) at the same position in the grain unit to the highest saturation SH i in the texture unit, and finally take the mean value as the reliability P (x, y) of the true color of each pixel point color y) , ie
在上述的步骤S25之前,可以依据定位图像中每个网纹单元在图像中的位置后,对网纹单元的结构进行稳定性评估;若存在网纹单元结构形变的情况,则依据坐标变换更新原图像得到网纹单元未变形的图像。Before the above-mentioned step S25, the structure of the texture unit can be evaluated for stability according to the position of each texture unit in the image in the positioning image; The original image is the undistorted image of the textured unit.
以上述得到的基于概率的图像退化模型为例,对于网纹图像中的每一个网纹单元,其中的某个像素的颜色可靠度可以通过查找标准形状的网纹单元得到(在非理想网纹情况下需要通过坐标的形变得到其在标准网纹单元中的坐标)。一种可能的图像复原方式是,在上述的步骤S25中,依据当前像素点邻域内每个像素点颜色为真实色的可靠度以及每个像素点与当前像素点的距离加权得到更新后像素点的像素值,更新后的图像即为去除网纹后的图像。更新后像素点的像素值R(i,j)可以用下式计算:其中C(x,y)为原图像中像素的颜色;N(i,j)为(i,j)的邻域;D(x-i,y-j)为与坐标(x,y)\坐标(i,j)之间距离有关的权重,坐标(x,y)距离坐标(i,j)越远,D(x-i,y-j)的值越小,归一化系数 Taking the probability-based image degradation model obtained above as an example, for each textured unit in the textured image, the color reliability of a certain pixel can be obtained by searching the meshed unit with a standard shape (in non-ideal textured In some cases, it is necessary to obtain its coordinates in the standard mesh unit through the transformation of the coordinates). A possible image restoration method is, in the above-mentioned step S25, according to the reliability of the color of each pixel in the neighborhood of the current pixel as the real color and the weight of the distance between each pixel and the current pixel to obtain the updated pixel The pixel value of , the updated image is the image after removing the texture. The pixel value R (i, j) of the updated pixel point can be calculated by the following formula: Among them, C (x, y) is the color of the pixel in the original image; N (i, j) is the neighborhood of (i, j); D (xi, yj) is the coordinate (x, y)\coordinate (i, The weight related to the distance between j), the farther the coordinate (x, y) is from the coordinate (i, j), the smaller the value of D (xi, yj) , and the normalization coefficient
图5是根据本发明实施例的去除图像中网纹的系统的主要模块的示意图。如图5所示,去除图像中网纹的系统50主要包含如下模块:结构分析模块,用于获取图像的网纹结构特征;退化模型模块,用于建立图像退化模型;网纹处理模块,用于依据图像退化模型,得到去除网纹后的图像。Fig. 5 is a schematic diagram of main modules of a system for removing moire in an image according to an embodiment of the present invention. As shown in Figure 5, the
结构分析模块还可用于确定网纹单元结构;定位图像中每个网纹单元在图像中的位置以及所述网纹单元中的每个像素点在网纹单元中的位置。The structure analysis module can also be used to determine the texture unit structure; locate the position of each texture unit in the image and the position of each pixel in the texture unit in the texture unit.
结构分析模块还可用于计算图像的自相关图像;确定自相关图像的峰值像素点;选取任意一个峰值像素点作为网纹单元的第一端点,选取与第一端点非共线的任意两个相邻像素点,作为网纹单元的第二端点和第三端点;选取与第一端点、第二端点以及第三端点均相邻的像素点作为网纹单元的第四端点,以上述四个端点构成的四边形单元结构作为网纹单元结构。The structural analysis module can also be used to calculate the autocorrelation image of the image; determine the peak pixel point of the autocorrelation image; select any peak pixel point as the first endpoint of the mesh unit, and select any two non-collinear with the first endpoint adjacent pixel points, as the second end point and the third end point of the mesh unit; select the pixels adjacent to the first end point, the second end point and the third end point as the fourth end point of the mesh unit, with the above-mentioned A quadrilateral unit structure composed of four endpoints is used as a textured unit structure.
结构分析模块还可用于依据网纹单元结构,依次遍历所有峰值点,以峰值点作为网纹单元端点,确定图像中每个网纹单元的位置;定位网纹单元中的每个像素点在其网纹单元中的位置。退化模型模块还可用于依据网纹单元的颜色信息,确定网纹单元中的每个像素点颜色为真实色的可靠度。The structural analysis module can also be used to traverse all the peak points in turn according to the structure of the texture unit, and use the peak point as the endpoint of the texture unit to determine the position of each texture unit in the image; locate each pixel in the texture unit in its The position in the texture unit. The degradation model module can also be used to determine the reliability of the color of each pixel in the texture unit as the real color according to the color information of the texture unit.
退化模型模块还可用于计算每个网纹单元i中的任意像素点(x,y)的饱和度Si(x,y),同时计算每个网纹单元中最高饱和度SHi;累加所有网纹单元中位于相同位置的像素点饱和度Si(x,y)与网纹单元中最高饱和度SHi,的比值,最后取均值作为每个像素点颜色为真实色的可靠度,即 The degradation model module can also be used to calculate the saturation S i(x, y) of any pixel point (x, y) in each texture unit i, and simultaneously calculate the highest saturation SH i in each texture unit; accumulate all The ratio of the pixel saturation S i(x, y) at the same position in the texture unit to the highest saturation SH i in the texture unit, and finally take the mean value as the reliability of the color of each pixel point as the real color, that is
图5所示的系统50还可包括稳定性模块(图中未示出),用于依据定位图像中每个网纹单元在图像中的位置后,对网纹单元的结构进行稳定性评估;若存在网纹单元结构形变的情况,则依据坐标变换更新原图像得到网纹单元未变形的图像。The
网纹处理模块还可用于依据当前像素点邻域内每个像素点颜色为真实色的可靠度以及每个像素点与当前像素点的距离加权得到更新后所述像素点的像素值,更新后的图像即为去除网纹后的图像。The mesh processing module can also be used to obtain the updated pixel value of the pixel according to the reliability of the true color of each pixel in the neighborhood of the current pixel and the distance between each pixel and the current pixel. The image is the image after removing the texture.
网纹处理模块还可用于根据计算更新后像素点的像素值R(i,j),其中P(x,y)为原图像中像素点颜色为真实色的可靠度,C(x,y)为原图像中像素的颜色;N(i,j)为(i,j)的邻域;D(x-i,y-j)为与坐标(x,y)\坐标(i,j)之间距离有关的权重,坐标(x,y)距离坐标(i,j)越远,D(x-i,y-j)的值越小,归一化系数 Texture processing module can also be used according to the Calculate the pixel value R (i, j) of the updated pixel point, where P (x, y) is the reliability of the true color of the pixel point color in the original image, and C (x, y) is the color of the pixel in the original image; N (i, j) is the neighborhood of (i, j); D (xi, yj) is the weight related to the distance between coordinates (x, y)\coordinates (i, j), coordinates (x, y) The farther away from coordinates (i, j), the smaller the value of D (xi, yj) , the normalization coefficient
从以上描述中可以看出,本发明实施例的技术方案与一般的图像复原方式相比,利用了网纹的周期性分布的结构特征,因而能够更好地去除网纹,并尽可能的保持原始图像细节的完整性。It can be seen from the above description that, compared with the general image restoration method, the technical solution of the embodiment of the present invention utilizes the structural characteristics of the periodic distribution of the texture, so it can better remove the texture and keep the texture as much as possible. Integrity of original image detail.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, or they can be made into individual integrated circuit modules, or they can be integrated into Multiple modules or steps are fabricated into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010616588.5A CN102567957B (en) | 2010-12-30 | 2010-12-30 | Method and system for removing reticulate pattern from image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010616588.5A CN102567957B (en) | 2010-12-30 | 2010-12-30 | Method and system for removing reticulate pattern from image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102567957A CN102567957A (en) | 2012-07-11 |
CN102567957B true CN102567957B (en) | 2014-06-25 |
Family
ID=46413311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010616588.5A Expired - Fee Related CN102567957B (en) | 2010-12-30 | 2010-12-30 | Method and system for removing reticulate pattern from image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102567957B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105930797B (en) * | 2016-04-21 | 2019-03-26 | 腾讯科技(深圳)有限公司 | A kind of face verification method and device |
CN107016657B (en) * | 2017-04-07 | 2019-05-28 | 河北工业大学 | The restorative procedure of the face picture covered by reticulate pattern |
CN107633458A (en) * | 2017-09-19 | 2018-01-26 | 平安科技(深圳)有限公司 | A kind of processing method, storage medium and the server of contract investigation |
CN108108685B (en) * | 2017-12-15 | 2022-02-08 | 北京小米移动软件有限公司 | Method and device for carrying out face recognition processing |
CN109035171B (en) * | 2018-08-01 | 2021-06-15 | 中国计量大学 | A kind of reticulated face image restoration method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020184276A1 (en) * | 2001-03-30 | 2002-12-05 | Tinku Acharya | Two-dimensional pyramid filter architecture |
US7312900B2 (en) * | 2002-12-17 | 2007-12-25 | Dainippon Screen Mfg. Co., Ltd. | Method of descreening screened image, method of separating screened image into regions, image processing device, and program |
CN1228962C (en) * | 2002-12-27 | 2005-11-23 | 光宝科技股份有限公司 | Moire Elimination Method |
US7365882B2 (en) * | 2004-02-12 | 2008-04-29 | Xerox Corporation | Halftone screen frequency and magnitude estimation for digital descreening of documents |
CN100418347C (en) * | 2005-09-09 | 2008-09-10 | 宇东光学公司 | Method for removing cob-webbing of digital image |
CN101552860B (en) * | 2009-05-13 | 2010-12-08 | 西安理工大学 | Halftone image descreening method based on dot detection and dot filling |
-
2010
- 2010-12-30 CN CN201010616588.5A patent/CN102567957B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102567957A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102567957B (en) | Method and system for removing reticulate pattern from image | |
CN103646395B (en) | A kind of High-precision image method for registering based on grid method | |
CN106815823B (en) | Lens distortion calibration and correction method and device | |
CN104318583B (en) | Visible light broadband spectrum image registration method | |
CN113592776A (en) | Image processing method and device, electronic device and storage medium | |
CN107590530B (en) | Layer-by-layer updating algorithm based on generation of countermeasure network | |
CN101527774B (en) | Method for optimizing image lattice quality and device thereof | |
CN102034224A (en) | Pseudo-Zernike moment-based image denoising algorithm | |
CN109933639B (en) | Layer-superposition-oriented multispectral image and full-color image self-adaptive fusion method | |
CN106940782B (en) | High-resolution SAR newly-added construction land extraction software based on variation function | |
CN102903078B (en) | A kind of motion blur image method for parameter estimation based on multiresolution Fourier analysis theory | |
CN102158630B (en) | Image-tone-based adaptive green-noise screening method | |
CN103793897A (en) | Digital image halftone method based on small-wavelet-domain multi-scale information fusion | |
JP5356711B2 (en) | Map information correction apparatus, map information correction method, and program | |
CN109035162A (en) | A kind of picture drift correction method and system based on pixel reconstruction | |
CN113066023A (en) | SAR image speckle removing method based on self-calibration convolutional neural network | |
CN109003296B (en) | A feature extraction method to characterize the ringing effect of restored images | |
CN105069764B (en) | A kind of image de-noising method and system based on Edge track | |
CN104616265B (en) | A kind of time domain method for reconstructing of remote sensing sequence data | |
CN103955908B (en) | Digital image halftone method based on multi-scale perception error measure approximation global optimization | |
CN108062743B (en) | Super-resolution method for noisy image | |
CN114581343B (en) | Image restoration method and device, electronic equipment and storage medium | |
CN117455803A (en) | A diffusion model-based optical fiber image quality optimization method and system for imaging beams | |
CN112907486B (en) | A remote sensing image color correction method based on deep learning and color mapping | |
CN101364303B (en) | Edge pixel extracting and processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140625 |