[go: up one dir, main page]

CN1141665C - Methods of Feature Extraction and Recognition of Microscopic Image - Google Patents

Methods of Feature Extraction and Recognition of Microscopic Image Download PDF

Info

Publication number
CN1141665C
CN1141665C CNB021208867A CN02120886A CN1141665C CN 1141665 C CN1141665 C CN 1141665C CN B021208867 A CNB021208867 A CN B021208867A CN 02120886 A CN02120886 A CN 02120886A CN 1141665 C CN1141665 C CN 1141665C
Authority
CN
China
Prior art keywords
image
feature
microscopic
recognition
edge
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
Application number
CNB021208867A
Other languages
Chinese (zh)
Other versions
CN1384467A (en
Inventor
王伯雄
朱从锋
罗秀芝
陈华成
刘振江
陈大年
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CNB021208867A priority Critical patent/CN1141665C/en
Publication of CN1384467A publication Critical patent/CN1384467A/en
Application granted granted Critical
Publication of CN1141665C publication Critical patent/CN1141665C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Character Discrimination (AREA)

Abstract

本发明属于图像处理技术领域,为一种微观图像的特征提取和识别方法,包括对微观图像特征的提取和特征的识别两部分。其中:微观图像的特征提取包括对图像的微观放大、将模拟的微观图像数字化后,用二值化的方法处理,采取归一化坐标来表征数字化图像边缘的位置信息,以及对该信息的再处理及样板保存;微观图像的识别则包括对待识别的图像进行微观放大、该微观图像的数字化、对该数字化图像进行边缘位置的信息提取,以及将该信息与存储的特征样板进行比较。其中:并采用最大误差限的准则来判别图像识别的真伪。具有实现简单、边缘轮廓清晰和识别可靠的特点,尤其适用于对有价证券和文件的真伪性的辨别及防伪。

The invention belongs to the technical field of image processing, and is a method for feature extraction and recognition of microscopic images, including two parts: extraction of microscopic image features and feature recognition. Among them: the feature extraction of the microscopic image includes microscopic magnification of the image, digitizing the simulated microscopic image, processing it with binarization, adopting normalized coordinates to represent the position information of the edge of the digitized image, and reconstructing the information Processing and template preservation; microscopic image recognition includes microscopic magnification of the image to be recognized, digitization of the microscopic image, information extraction of the edge position of the digitized image, and comparison of the information with the stored feature template. Among them: the criterion of the maximum error limit is used to judge the authenticity of the image recognition. It has the characteristics of simple implementation, clear edge outline and reliable identification, and is especially suitable for the identification and anti-counterfeiting of the authenticity of valuable securities and documents.

Description

微观图像特征提取及识别的方法Methods of Feature Extraction and Recognition of Microscopic Image

技术领域technical field

本发明属于图像处理技术领域,特别涉及微观图像的特征提取及特征识别。The invention belongs to the technical field of image processing, in particular to feature extraction and feature recognition of microscopic images.

背景技术Background technique

微观图像在遥感、储层分形特征研究、光学元件表面微观轮廓特征研究、纳米硅薄膜界面结构的微观特征分析、材料检测等方面都有广泛的应用。针对不同的微观图像特征和应用目的,特征提取和识别的方法也不相同,没有统一的模式。以基于结构特征的一种指纹识别方法为例,说明图像特征的提取和识别。这种指纹识别方法的特征提取包括以下步骤:采集指纹图像并转换成数字图像输入计算机、基于边缘搜索的二值化、对二值化的图像进行平滑处理、细化、提取指纹特征(包括边、分叉、口型、刺、十字、桥型等特征)。指纹的匹配识别包括提取待测指纹的特征、与保存的特征数据进行比较、输出识别结果。在识别时要考虑角度旋转和畸变等的影响。Microscopic images are widely used in remote sensing, research on fractal characteristics of reservoirs, research on microscopic profile characteristics on the surface of optical components, microscopic characteristic analysis of nano-silicon thin film interface structure, and material detection. For different microscopic image features and application purposes, the methods of feature extraction and recognition are different, and there is no unified model. Taking a fingerprint recognition method based on structural features as an example, the extraction and recognition of image features are illustrated. The feature extraction of this fingerprint identification method includes the following steps: collecting fingerprint images and converting them into digital images for input into the computer, binarization based on edge search, smoothing the binarized images, thinning, extracting fingerprint features (including edge , bifurcation, mouth shape, thorn, cross, bridge and other characteristics). Fingerprint matching identification includes extracting the features of the fingerprint to be tested, comparing with the saved feature data, and outputting the identification results. The influence of angle rotation and distortion etc. should be considered in recognition.

有关图像边缘检测的常见方法有:微分算子法;样板匹配法;边界及曲线增强技术,如叠代法边界探测,松弛法边界增强,或利用参数空间,对边缘象素按照边界或曲线参数做聚合;连续小波边缘检测;边缘聚焦;纹理边缘检测;神经网络边缘检测等。Common methods for image edge detection include: differential operator method; template matching method; boundary and curve enhancement techniques, such as iterative boundary detection, relaxation method boundary enhancement, or using parameter space, edge pixels according to boundary or curve parameters Do aggregation; continuous wavelet edge detection; edge focusing; texture edge detection; neural network edge detection, etc.

微分算子法是利用不同形式的微分算子,计算各象素灰度的空间导数,给出微分锐化图像。如梯度算子:The differential operator method is to use different forms of differential operators to calculate the spatial derivative of the gray level of each pixel to give a differential sharpening image. Such as the gradient operator:

G(i,j)=Δxf(i,j)2yf(i,j)2                   (1)Laplacian算子:G(i, j) = Δ x f(i, j) 2 + Δ y f(i, j) 2 (1) Laplacian operator:

G(i,j)=Δ2 xf(i,j)+Δ2 yf(i,j)                     (2)G(i,j)=Δ 2 x f(i,j)+Δ 2 y f(i,j) (2)

       =f(i+1,j)+f(i-1,j)+f(i,j+1)-f(i,j-1)其中f(i,j)为点(i,j)处的灰度值。微分算子法主要是针对灰度图像,突出边缘特征,处理后的图像虽然边缘增强了,但是各边缘的灰度级仍不统一,背景的干扰仍然存在,难于自动识别边界。微分算子法难以确定边界的位置,虽然处理后的图像人眼看上去边界比较明显,但是计算机自动识别边界比较困难。= f(i+1, j)+f(i-1, j)+f(i, j+1)-f(i, j-1) where f(i, j) is point (i, j) gray value at . The differential operator method is mainly aimed at gray-scale images, highlighting the edge features. Although the edges of the processed image are enhanced, the gray levels of each edge are still not uniform, and the interference of the background still exists, making it difficult to automatically identify the boundary. It is difficult to determine the position of the boundary by the differential operator method. Although the processed image looks obvious to the human eye, it is difficult for the computer to automatically identify the boundary.

样板匹配法利用理想的微小边缘区域构成边缘样板,探测图像中各个象素与样板的匹配程度,给出边缘图像。如方向样板,可以检测出不同方向上的边缘。但对于具有随机特征的边缘图像,不可能预先制作样板。The template matching method uses the ideal small edge area to form an edge template, detects the matching degree of each pixel in the image and the template, and gives an edge image. For example, the direction template can detect edges in different directions. But for edge images with random features, it is impossible to make templates in advance.

边界及曲线增强技术在边缘探测的基础上利用象素的邻域信息对象素做增强,或利用参数空间对边缘象素按照边界或曲线参数做聚合,这样处理后的图像具有同微分算子处理结果相似的特征,边缘位置难于自动识别。连续小波边缘检测和边缘聚焦也具有类似的弱点。The boundary and curve enhancement technology uses the neighborhood information of the pixel to enhance the pixel on the basis of edge detection, or uses the parameter space to aggregate the edge pixels according to the boundary or curve parameters, so that the processed image has the same differential operator processing For similar features, the edge position is difficult to automatically identify. Continuous wavelet edge detection and edge focusing also have similar weaknesses.

纹理边缘检测法要求对象和背景具有不同的纹理,因此也不适合直接应用于随机图像。至于神经网络边缘检测法,虽然目前已有许多算法都可以转化为神经网络实现,但并未反应出神经网络系统的本质,真正构造模仿生物视觉系统的特征检测方法还有待进一步的研究,这方面至今也没有现成的有效的方法。Textured edge detection requires objects and backgrounds to have different textures, and thus is not suitable for direct application to random images. As for the neural network edge detection method, although there are many algorithms that can be converted into neural network implementations, they do not reflect the essence of the neural network system. Further research is needed to truly construct a feature detection method that imitates the biological visual system. So far there is no ready-made effective method.

发明内容Contents of the invention

本发明的目的是根据图像的微观随机特征特性,提出一种微观图像的特征提取及识别的方法,具有实现简单、边缘轮廓清晰和识别可靠的特点,适用于对微观图像的特征提取和识别。也可应用于通常的计算机图像识别,尤其适用于对有价证券和文件的真伪性的辨别及防伪。The purpose of the present invention is to propose a method for feature extraction and recognition of microscopic images according to the microscopic random characteristics of images, which has the characteristics of simple implementation, clear edge outline and reliable recognition, and is suitable for feature extraction and recognition of microscopic images. It can also be applied to common computer image recognition, especially for the identification and anti-counterfeiting of the authenticity of valuable securities and documents.

本发明提出一种微观图像的特征提取的方法,其特征在于:包括以下步骤;The present invention proposes a method for feature extraction of a microscopic image, which is characterized in that: comprising the following steps;

1)对特定的图像进行放大成为微观模拟图像,1) Enlarge a specific image to become a microscopic simulation image,

2)对该微观图像进行数字化处理成为数字化图像,2) digitize the microscopic image to become a digitized image,

3)将该数字化图像二值化成为二值化图像,3) Binarize the digitized image into a binary image,

4)对该二值化图像进行边缘位置的特征提取,4) Carry out the feature extraction of edge position to this binary image,

5)以及对该特征进行归一化处理并保存特征样板;5) and normalize the feature and save the feature template;

本发明提出一种微观图像的特征识别的方法,其特征在于:包括以下步骤:The present invention proposes a method for feature recognition of microscopic images, which is characterized in that: comprising the following steps:

1)将待识别的图像进行微观放大成为微观模拟图像,1) The image to be recognized is microscopically enlarged to become a microscopic simulation image,

2)对该微观图像进行数字化处理成为数字化图像,2) digitize the microscopic image to become a digitized image,

3)将该数字化图像二值化成为二值化图像,3) Binarize the digitized image into a binary image,

4)对该二值化图像进行边缘位置的特征提取,4) Carry out the feature extraction of edge position to this binary image,

5)对该特征进行归一化处理,5) Normalize the feature,

6)以及将该特征与存储的特征样板进行比较,判断该待识别图像的真伪。6) and comparing the feature with the stored feature template to judge the authenticity of the image to be recognized.

本发明的原理及特点:Principle and characteristic of the present invention:

本发明的主要贡献是发现了图像的微观随机特征特性,并以此特性作为本发明的特征提取和特征识别方法的基础,使其方法简单可靠。The main contribution of the present invention is to discover the microcosmic random feature characteristic of the image, and use this characteristic as the basis of the feature extraction and feature recognition method of the present invention, making the method simple and reliable.

本发明涉及的图像是指用复制或非复制手段形成在图像载体(例如纸)上的一切线条、点、文字和图像。经研究发现,图像的边缘或内部特征、尤其是图像微观上的边缘或内部特征呈现一种随机的性质。如图1所示,图1(a)是两条宽度为0.3mm的相同直线1、2的宏观图,图1(b)为两直线左端部11、21局部的微观放大图,可以看出,两图的端部轮廓形状在微观状态下完全不一样,且两者的边缘相关度很低。还可看出,图像边缘点的分布是随机的,没有规律性可言。另外,这些线条在宏观上是连续的,但是在微观上却不是,线条中有很多的不连续区域,其分布也是随机的。The image involved in the present invention refers to all lines, dots, characters and images formed on an image carrier (such as paper) by means of reproduction or non-replication. It is found through research that the edge or internal features of the image, especially the microscopic edge or internal features of the image present a random property. As shown in Figure 1, Figure 1(a) is a macroscopic view of two identical straight lines 1 and 2 with a width of 0.3 mm, and Figure 1(b) is a microscopic enlarged view of the left ends 11 and 21 of the two straight lines, as can be seen , the shapes of the end contours of the two graphs are completely different in the microscopic state, and the edge correlation between them is very low. It can also be seen that the distribution of image edge points is random and there is no regularity at all. In addition, these lines are continuous macroscopically, but not microscopically. There are many discontinuous areas in the lines, and their distribution is also random.

由于这些边缘点和内部不连续区域的分布都是随机的,任何两幅这样的图像,其边缘重合的可能性很低,内部区域相同的可能也很低。这种图像边缘点随机分布的规律是唯一的,任何两幅图像都不相同。微观图像边缘轮廓的这种随机性和唯一性可用作为图像的特征,本发明正是基于图像的这一特征用作为对图像识别的方法基础。Since the distribution of these edge points and internal discontinuous areas are random, any two such images have a low possibility of overlapping edges and a low probability of having the same internal areas. The law of random distribution of edge points of this image is unique, and any two images are different. The randomness and uniqueness of the edge profile of the microscopic image can be used as the feature of the image, and the present invention uses this feature of the image as the basis of the method for image recognition.

本发明的图像特征的提取方法主要包括对图像边缘轮廓的检测与特征提取以及特征样板的生成和保存,特征的识别则首先采用与特征提取过程相同的步骤来提取被识别图像的特征,然后将该特征与所保存的特征样板进行比较,给出识别结果。The image feature extraction method of the present invention mainly includes the detection and feature extraction of image edge contours and the generation and preservation of feature templates. The feature recognition then first adopts the same steps as the feature extraction process to extract the features of the recognized image, and then The feature is compared with the saved feature template, and the recognition result is given.

附图说明Description of drawings

图1为两条相同直线及其端点的微观图像;其中,(a)为宏观图,(b)为局部微观放大图。Figure 1 is a microscopic image of two identical straight lines and their endpoints; where (a) is a macroscopic image, and (b) is a local microscopic enlarged image.

图2为本发明的图像特征提取流程图。Fig. 2 is a flow chart of image feature extraction in the present invention.

图3为本发明的图像特征识别流程图。Fig. 3 is a flow chart of image feature recognition in the present invention.

图4为图1中的微观图像二值化处理的结果。Fig. 4 is the result of binarization processing of the microscopic image in Fig. 1 .

图5为边缘位置信息的提取方法及结果。Fig. 5 shows the extraction method and result of edge position information.

图6为旋转图像说明图。Fig. 6 is an explanatory diagram of a rotated image.

具体实施方式Detailed ways

以下通过本发明一个优选实施例并结合附图来详细说明本发明的内容及实现原理:The content and realization principle of the present invention are described in detail below through a preferred embodiment of the present invention in conjunction with the accompanying drawings:

本发明提出的一种微观图像的特征提取及识别的方法,它包括微观图像特征的提取和特征的识别两部分,如图3所示,其中,图像特征提取包括以下步骤:The method for the feature extraction and identification of a kind of microscopic image that the present invention proposes, it comprises the extraction of microscopic image feature and the identification two parts of feature, as shown in Figure 3, wherein, image feature extraction comprises the following steps:

1)对特定的图像进行放大成为微观模拟图像,1) Enlarge a specific image to become a microscopic simulation image,

2)对该微观图像进行数字化处理成为数字化图像,2) digitize the microscopic image to become a digitized image,

3)将该数字化图像二值化成为二值化图像,3) Binarize the digitized image into a binary image,

4)对该二值化图像进行边缘位置的特征提取,4) Carry out the feature extraction of edge position to this binary image,

5)以及对该特征进行归一化处理并保存特征样板;5) and normalize the feature and save the feature template;

图像特征识别包括以下步骤:Image feature recognition includes the following steps:

6)对待识别的图像进行微观放大成为微观模拟图像,6) The image to be recognized is microscopically enlarged to become a microscopic simulation image,

7)对该微观图像进行数字化处理成为数字化图像,7) digitize the microscopic image to become a digitized image,

8)将该数字化图像二值化成为二值化图像,8) Binarize the digitized image into a binary image,

9)对该二值化图像进行边缘位置的特征提取,9) Carry out the feature extraction of edge position to this binarized image,

10)读取样板数据;10) Read the sample data;

11)将待识别图像的位置信息与样板数据直接比较识别,识别结果为“真”则结束;11) directly compare and recognize the position information of the image to be recognized with the template data, and end if the recognition result is "true";

12)若识别结果为“伪”,则将待识别图像的位置信息与样板数据进行平移比较,识别结果为“真”则结束;12) If the recognition result is "false", the position information of the image to be recognized is compared with the template data, and the recognition result is "true" and then ends;

13)若识别结果为“伪”,则将待识别图像的位置信息与样板数据进行旋转比较,得到识别结果;13) If the recognition result is "false", the position information of the image to be recognized is rotated and compared with the template data to obtain the recognition result;

14)输出识别结果。14) Output the recognition result.

下面以对图1中的两条直线进行比较作为一种实施例对本发明的特征提取和特征识别的各步骤进行详细说明。The steps of feature extraction and feature recognition in the present invention will be described in detail below by comparing the two straight lines in FIG. 1 as an embodiment.

一、特征提取1. Feature extraction

将直线1通过光学系统放大成微观图像,用图像采集设备对该微观图像进行采集成为灰度数字图像11;将该灰度数字图像输入到计算机中,根据预先确定的一个阈值对其进行二值化处理,将该灰度数字图像变换为黑白二值(0和1)图像。The straight line 1 is enlarged into a microscopic image through the optical system, and the microscopic image is collected by an image acquisition device to become a grayscale digital image 11; the grayscale digital image is input into the computer, and it is binary valued according to a predetermined threshold Transform the grayscale digital image into a black and white binary (0 and 1) image.

本发明提出一种阈值选取方法,如式(3)所示,The present invention proposes a threshold selection method, as shown in formula (3),

pT=pmin+α(pmax-pmin)                     (3)其中pT为选取的阈值;pmin为图像中最小灰度值;pmax为最大灰度值;α为常数,可根据实验结果确定。α选取的原则是:二值化后的图像能将有用信息与背景分开,并不损失边缘信息。对某一类图像做实验,改变α的大小,根据二值化的结果选取一个合适的数值,使其达到上述要求。该法确定的阈值具有随光强变化而自动调节阈值大小的特点。p T =p min +α(p max -p min ) (3) where p T is the selected threshold; p min is the minimum gray value in the image; p max is the maximum gray value; α is a constant, which can be determined according to the experiment The result is OK. The principle of α selection is: the binarized image can separate the useful information from the background without losing edge information. Experiment with a certain type of image, change the size of α, and select an appropriate value according to the result of binarization to meet the above requirements. The threshold value determined by this method has the characteristic of automatically adjusting the threshold value with the change of light intensity.

图4是图1(b)利用式(3)二值化处理后的图像,可以看到,二值化后的两直线图像13、23的边缘信息明显,而且两者的边缘相关度很低。Fig. 4 is the image after binary processing of Fig. 1(b) using formula (3). It can be seen that the edge information of the two linear images 13 and 23 after binarization is obvious, and the edge correlation between the two is very low .

在对图像作过二值化处理后就可对该二值化图像进行边缘位置的随机特征信息提取。具体方法是:沿二值化图像的每行从左向右搜索,当遇到灰度值为0的点时停止搜索,并将这个点作为边缘点,记下其位置信息xi(图像左上角为坐标轴原点,x轴向右为正,y轴向下为正),作为提取的位置信息;这种方法实际上是将每行最左边的黑点当作是边缘点。After the image has been binarized, the random feature information of the edge position can be extracted from the binarized image. The specific method is: search from left to right along each line of the binarized image, stop searching when encountering a point with a gray value of 0, and use this point as an edge point, and record its position information x i (top left of the image The angle is the origin of the coordinate axis, the x-axis is positive to the right, and the y-axis is positive downward), as the extracted position information; this method actually regards the leftmost black point of each row as an edge point.

对不同的线条,由于其宽度不同,边缘点数也就不同,如果将左边缘的所有点的位置信息都提取保存,保存的数据数目就不相同,这样不便于比较和统一,而且寻找边缘的上下起始点比较困难。所以在本优选实施例中,截取左边缘中间一部分的信息加以保存,即提取纵坐标介于ya和yb之间的边缘信息。如图5(a)所示,直线A和B所在位置的纵坐标分别为ya和yb,从第ya行到第yb行,分别从左向右搜索,得到每行的边缘位置坐标xa,...,xi,...xb。图5(b)是根据坐标值xa,...,xi,…xb画出的边缘轮廓图形。For different lines, due to their different widths, the number of edge points is also different. If the position information of all points on the left edge is extracted and saved, the number of saved data will be different, which is not easy to compare and unify, and to find the upper and lower edges The starting point is more difficult. Therefore, in this preferred embodiment, the information in the middle part of the left edge is intercepted and saved, that is, the edge information whose ordinate is between y a and y b is extracted. As shown in Figure 5(a), the vertical coordinates of the positions of the straight lines A and B are y a and y b respectively, from the line y a to the line y b , search from left to right respectively, and obtain the edge position of each line Coordinates x a , . . . , x i , . . . x b . Fig. 5(b) is an edge contour graph drawn according to coordinate values x a , ..., x i , ... x b .

然后对上述坐标值进行归一化处理,方法是:比较这些边缘点位置坐标的大小,找出其中的最小值xn,将每个坐标值xi都减掉这个最小值,得到新的数据xa-xn,...,xi-xn,...xb-xn,保存这些新的数据作为识别时的特征样板。Then normalize the above coordinate values, the method is: compare the size of these edge point position coordinates, find out the minimum value x n among them, and subtract this minimum value from each coordinate value x i to get new data x a -x n , ..., x i -x n , ... x b -x n , save these new data as feature templates for recognition.

二、特征识别,Second, feature recognition,

识别时,首先用与上述特征提取相同的步骤提取待检验图像的随机特征信息,然后与事先保存的特征样板进行比较。When identifying, first use the same steps as the above feature extraction to extract the random feature information of the image to be tested, and then compare it with the feature template saved in advance.

比较识别实际上是比较当前图像和已保存的原始图像的边缘点位置是否一致,如果在误差允许范围内吻合,识别结果就为“真”,否则为“伪”。Comparison recognition is actually to compare whether the edge point positions of the current image and the saved original image are consistent. If they match within the allowable range of error, the recognition result is "true", otherwise it is "false".

在比较识别时,由于前后环境等的影响,所有的数据不可能完全重合,所以要根据具体的要求和实验结果,确定一个最大误差限。只要识别结果满足这个要求,就识别通过,否则识别失败。这个最大误差限应满足两个要求:一、不能出现误判,将假的图像识别为真;二、识别率高,即真的图像识别为伪的概率很低甚至为零。When comparing and recognizing, due to the influence of the front and rear environments, all data cannot be completely overlapped, so a maximum error limit should be determined according to specific requirements and experimental results. As long as the recognition result meets this requirement, the recognition is passed, otherwise the recognition fails. This maximum error limit should meet two requirements: first, no misjudgment can occur, and the false image is recognized as true; second, the recognition rate is high, that is, the probability of recognizing a true image as false is very low or even zero.

本实施例的识别过程详细说明如下:The identification process of this embodiment is described in detail as follows:

图5中,A和B的y轴坐标值分别为ya和yb,因此采集的边缘点的总数为(yb-ya+1)。In FIG. 5 , the y-axis coordinate values of A and B are y a and y b respectively, so the total number of collected edge points is (y b −y a +1).

在进行图像识别时,首先按照与图像特征提取相同的步骤提取待识别样本直线2的左边缘特征(yb-ya+1个特征数据),然后进行归一化坐标处理,这样可以避免样本左右移动带来的位置影响。接着读取已经保存的模板数据,然后按照最大误差限的准则(式(4)和式(5))进行比较识别。When performing image recognition, first follow the same steps as image feature extraction to extract the left edge features (y b -y a +1 feature data) of the sample line 2 to be recognized, and then perform normalized coordinate processing, which can avoid sample The position effect brought by the left and right movement. Then read the saved template data, and then compare and identify according to the maximum error limit criterion (Formula (4) and Formula (5)).

新得到的图像边缘虽然与原边缘形状类似,但由于采集条件等的影响,不可能与原来的边缘完全重合,因此在识别时,规定一个最大偏差值xi,每个边缘点只要满足式(4),就认为边缘是重合的。Although the shape of the newly obtained image edge is similar to the original edge, due to the influence of acquisition conditions, it is impossible to completely coincide with the original edge. Therefore, when identifying, a maximum deviation value x i is specified, and each edge point only needs to satisfy the formula ( 4), it is considered that the edges are coincident.

|xs-xm|≤xi                           (4)其中xs为保存的特征样板数据;xm为当前检测到的数据;xi为允许的最大偏差。xi选取的原则应能防止误判,又要能识别出真正的物体。在优选实施例中,xi的取值为3。根据图像的质量和大量的实验结果,xi可以作微小的波动,关键是在防止误判的前提下,尽量提高识别率。|x s -x m | ≤xi (4) where x s is the saved feature template data; x m is the currently detected data; x i is the maximum deviation allowed. The principle selected by xi should be able to prevent misjudgment, but also to be able to identify the real object. In a preferred embodiment, the value of x i is 3. According to the quality of the image and a large number of experimental results, xi can fluctuate slightly. The key is to improve the recognition rate as much as possible on the premise of preventing misjudgment.

只要最后的比较结果满足式(5),就认为其边缘是重合的,识别结果为“真”。As long as the final comparison result satisfies formula (5), the edges are considered to be coincident, and the recognition result is "true".

Nc≥Ni×p                              (5)其中Nc为满足式(4)的边缘点的总数;Ni为总的数据个数(yb-ya+1);p为需要满足的准确率,在优选实施例中,p的取值为90%。p的取值越大,误判率越低,但会降低识别率;p的取值越小,识别率越高,但有可能出现误判。应根据大量的实验,确定某一类样本的p值,在不出现误判的前提下,提高识别率。N c ≥N i ×p (5) where N c is the total number of edge points satisfying formula (4); N i is the total number of data (y b -y a +1); p is the accuracy rate that needs to be satisfied , in a preferred embodiment, the value of p is 90%. The larger the value of p, the lower the misjudgment rate, but it will reduce the recognition rate; the smaller the value of p, the higher the recognition rate, but there may be misjudgment. The p-value of a certain type of sample should be determined based on a large number of experiments, and the recognition rate should be improved without misjudgment.

图像特征提取和特征识别时,样本摆放的位置总会有上下左右和角度的偏差,因此要对图像作旋转和平移。During image feature extraction and feature recognition, there will always be up, down, left, right, and angle deviations in the position of the sample, so the image needs to be rotated and translated.

如果直接比较的结果为“真”,结束比较过程;如果直接比较的结果为“伪”,则进行平移比较。If the result of the direct comparison is "true", the comparison process ends; if the result of the direct comparison is "false", a translational comparison is performed.

检测得到y坐标从ya-n到yb+n、共yb-ya+2n+1个边缘点的位置信息xa-n,...,xa,...,xb...,xb+n,其中n为整数,是需要上下移动的量。在比较时,从中依次选取yb-ya+1个数值,与保存的特征样板进行比较。这样,共有2n+1组数据,他们分别是:xa-n~xb-n,xa-n+1~xb-n+1,...,xa~xb,...,xa+n-1~xb+n-1和xa+n~xb+n,每一组数据都看作y坐标是从ya到yb,与特征模板数据进行比较。只要其中有一组数据满足式(5),就认为边缘是重叠的,识别结果为“真”。平移比较实际上包含了直接比较的过程。The position information of y coordinates from y an to y b+n , a total of y b -y a +2n+1 edge points is detected x an ,..., x a ,..., x b ..., x b+n , where n is an integer, is the amount to move up or down. When comparing, select y b -y a +1 values in turn from them, and compare them with the saved feature template. In this way, there are 2n+1 sets of data in total, and they are: x an ~x bn , x a-n+1 ~x b-n+1 , ..., x a ~x b , ..., x a+ n-1 ~x b+n-1 and x a+n ~x b+n , each set of data is regarded as y-coordinates from y a to y b , and compared with the characteristic template data. As long as one group of data satisfies formula (5), the edges are considered to be overlapped, and the recognition result is "true". Translational comparison actually includes the process of direct comparison.

如果平移比较的结果为“真”,结束比较过程;否则进行旋转比较。If the result of the translation comparison is "true", the comparison process ends; otherwise, the rotation comparison is performed.

旋转比较是先将整个图像旋转一个角度,然后再进行平移比较。Rotation comparison is to first rotate the whole image by an angle, and then perform translation comparison.

如图6所示,A点和B点在同一坐标系中的坐标分别为(x,y)和(x0,y0),OA相对于OB旋转一个角度θ,则二者的坐标有如下关系式:As shown in Figure 6, the coordinates of point A and point B in the same coordinate system are (x, y) and (x 0 , y 0 ) respectively, and OA rotates an angle θ relative to OB, then the coordinates of the two are as follows Relational formula:

x=x0cosθ-y0sinθ                            (6)x=x 0 cosθ-y 0 sinθ (6)

y=x0sinθ+y0cosθy=x 0 sinθ+y 0 cosθ

在旋转图像时,首先确定一个角度步长α,然后将整个图像根据式(6)旋转角度α或-α,接下来进行平移比较,如果比较结果为“真”,结束比较;如果识别结果为“伪”,再将原图像旋状2α和-2α,进行平移比较。若比较结果为“真”,结束比较;若识别结果为“伪”,再将原图像旋转3α和-3α、......nα和-nα,并分别进行平移比较。如果到旋转角度为nα和-nα时,仍没有识别成功,输出识别结果“伪”,结束识别过程。When rotating the image, first determine an angle step size α, then rotate the entire image by the angle α or -α according to formula (6), and then perform a translation comparison. If the comparison result is "true", the comparison ends; if the recognition result is "Pseudo", and then rotate the original image to 2α and -2α for translation comparison. If the comparison result is "true", end the comparison; if the recognition result is "false", then rotate the original image by 3α and -3α,...nα and -nα, and perform translation comparison respectively. If the recognition is still not successful when the rotation angles are nα and -nα, the recognition result "false" is output, and the recognition process ends.

Claims (7)

1、一种微观图像的特征提取的方法,其特征在于:包括以下步骤;1. A method for feature extraction of a microscopic image, characterized in that: comprising the following steps; 1)对特定的图像进行放大成为微观模拟图像,1) Enlarge a specific image to become a microscopic simulation image, 2)对该微观图像进行数字化处理成为数字化图像,2) digitize the microscopic image to become a digitized image, 3)将该数字化图像二值化成为二值化图像,3) Binarize the digitized image into a binary image, 4)对该二值化图像进行边缘位置的特征提取,4) Carry out the feature extraction of edge position to this binary image, 5)以及对该特征进行归一化处理并保存特征样板。5) and normalize the feature and save the feature template. 2、如权利要求1所述的微观图像特征提取的方法,其特征在于:所说的边缘位置的特征提取的方法,具体包括:沿二值化图像的每行从左向右搜索,当遇到灰度值为0的点时停止搜索,并将这个点作为边缘点,记下其位置的坐标信息xi,作为提取的位置信息;选取设定行数的位置信息作为特定图像的特征样板,其中,图像左上角为坐标轴原点,x轴向右为正,y轴向下为正。2. The method for extracting microscopic image features as claimed in claim 1, characterized in that: the method for feature extraction of said edge position specifically comprises: searching from left to right along each line of the binarized image, when encountering Stop searching when it reaches a point with a gray value of 0, and use this point as an edge point, and record the coordinate information x i of its position as the extracted position information; select the position information of the set number of lines as the feature template of a specific image , where the upper left corner of the image is the origin of the coordinate axes, the x-axis is positive to the right, and the y-axis is positive to the downward. 3、如权利要求1所述的微观图像特征提取的方法,其特征在于:所说的归一化处理方法为:提取设定行数的特定图像的位置坐标信息xi,比较所有的坐标信息xi的大小,找出其中的最小值xn,将每个坐标值xi都减掉这个最小值,得到新的数据xi-xn并保存这些新的数据作为识别时的特定图像的特征样板。3. The method for extracting microscopic image features as claimed in claim 1, characterized in that: said normalization processing method is: extracting position coordinate information x i of a specific image with a set number of rows, and comparing all coordinate information The size of x i , find the minimum value x n , subtract this minimum value from each coordinate value x i , get new data x i -x n and save these new data as the specific image during recognition Feature boilerplate. 4、一种微观图像的特征识别的方法,其特征在于:包括以下步骤:4. A method for feature recognition of microscopic images, characterized in that: comprising the following steps: 1)将待识别的图像进行微观放大成为微观模拟图像,1) The image to be recognized is microscopically enlarged to become a microscopic simulation image, 2)对该微观图像进行数字化处理成为数字化图像,2) digitize the microscopic image to become a digitized image, 3)将该数字化图像二值化成为二值化图像,3) Binarize the digitized image into a binary image, 4)对该二值化图像进行边缘位置的特征提取,4) Carry out the feature extraction of edge position to this binary image, 5)对该特征进行归一化处理,5) Normalize the feature, 6)以及将该特征与存储的特征样板进行比较,判断该待识别图像的真伪。6) and comparing the feature with the stored feature template to judge the authenticity of the image to be recognized. 5、如权利要求4所述的微观图像的特征识别的方法,其特征在于:所说的边缘位置的特征提取的方法,具体包括:沿二值化图像的每行从左向右搜索,当遇到灰度值为0的点时停止搜索,并将这个点作为边缘点,记下其位置的坐标信息xi,作为提取的位置信息;选取设定行数的位置信息作为待识别图像的特征,其中,图像左上角为坐标轴原点,x轴向右为正,y轴向下为正。5. The method for feature recognition of microscopic images as claimed in claim 4, characterized in that: the method for feature extraction of said edge position specifically comprises: searching from left to right along each line of the binarized image, when Stop searching when encountering a point with a gray value of 0, and use this point as an edge point, record the coordinate information x i of its position as the extracted position information; select the position information of the set number of lines as the image to be recognized Features, where the upper left corner of the image is the origin of the coordinate axis, the x-axis is positive to the right, and the y-axis is positive to the downward. 6、如权利要求4所述的微观图像的特征识别的方法,其特征在于:所说的归一化处理方法为:提取设定行数的待识别的图像的位置坐标信息xi,比较所有的坐标信息xi的大小,找出其中的最小值xn,将每个坐标值xi都减掉这个最小值,得到新的数据xi-xn并保存这些新的数据作为待识别图像的特征。6. The method for feature recognition of microscopic images as claimed in claim 4, characterized in that: said normalization processing method is: extract the position coordinate information x i of the image to be recognized with a set number of rows, and compare all The size of the coordinate information x i , find the minimum value x n , subtract this minimum value from each coordinate value x i , get new data x i -x n and save these new data as the image to be recognized Characteristics. 7、如权利要求4所述的微观图像特征识别的方法,其特征在于:所说的将待识别图像的特征与存储的特征样板进行比较的方法,包括以下步骤:7. The method for identifying microscopic image features as claimed in claim 4, wherein said method of comparing the features of the image to be identified with the stored feature templates comprises the following steps: 1)确定最大误差限准则;1) determine the maximum error limit criterion; 2)首先将待识别图像的特征与存储的特征样板进行直接比较,若其满足所说的最大误差限准则,识别结果为“真”则结束;2) First, directly compare the feature of the image to be recognized with the stored feature template, if it satisfies the maximum error limit criterion, and the recognition result is "true", then end; 3)若识别结果为“伪”,则使待识别图像的特征相对平移,再进行比较,识别结果为“真”则结束;3) If the recognition result is "false", the features of the image to be recognized are relatively translated, and then compared, and the recognition result is "true", then the end; 4)若识别结果为“伪”,则使待识别图像的特征相对旋转,再进行步骤3)的平移比较,得到识别结果。4) If the recognition result is "false", the features of the image to be recognized are relatively rotated, and then the translation comparison in step 3) is performed to obtain the recognition result.
CNB021208867A 2002-06-07 2002-06-07 Methods of Feature Extraction and Recognition of Microscopic Image Expired - Fee Related CN1141665C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021208867A CN1141665C (en) 2002-06-07 2002-06-07 Methods of Feature Extraction and Recognition of Microscopic Image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021208867A CN1141665C (en) 2002-06-07 2002-06-07 Methods of Feature Extraction and Recognition of Microscopic Image

Publications (2)

Publication Number Publication Date
CN1384467A CN1384467A (en) 2002-12-11
CN1141665C true CN1141665C (en) 2004-03-10

Family

ID=4744838

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021208867A Expired - Fee Related CN1141665C (en) 2002-06-07 2002-06-07 Methods of Feature Extraction and Recognition of Microscopic Image

Country Status (1)

Country Link
CN (1) CN1141665C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100562982C (en) * 2006-02-21 2009-11-25 台湾积体电路制造股份有限公司 Identification method and identification system

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405405C (en) * 2005-12-29 2008-07-23 兆日科技(深圳)有限公司 A fiber image anti-counterfeiting method
CN101976336A (en) * 2010-10-21 2011-02-16 西北工业大学 Fuzzy enhancement and surface fitting-based image edge characteristic extraction method
CN102034108B (en) * 2010-12-06 2012-06-27 哈尔滨工业大学 Multi-resolution network characteristic registration-based method for sorting face values and face directions of notes in sorter
CN102214305A (en) * 2011-04-08 2011-10-12 大连理工大学 Method for taking evidence for source of printing paper sheet by using grain characteristic
KR102019124B1 (en) * 2013-01-04 2019-09-06 엘지전자 주식회사 Head mounted display and method for controlling the same
CN103676328B (en) * 2013-12-20 2016-08-17 深圳市华星光电技术有限公司 The border acquisition methods of alignment film and detection method
WO2016177301A1 (en) * 2015-05-01 2016-11-10 励元科技(上海)有限公司 Micro-texture anti-counterfeit method
CN104809622A (en) * 2015-05-01 2015-07-29 海南亚元防伪技术研究所 Ultra-limit texture anti-counterfeiting method
CN106250932A (en) * 2016-08-04 2016-12-21 上海华虹宏力半导体制造有限公司 A kind of method and device of scanogram identification
CN109409158B (en) * 2018-09-29 2021-08-31 武汉保诚信网络科技有限公司 Anti-counterfeiting method based on two-dimensional code edge roughness
CN111504608B (en) * 2019-01-31 2022-10-04 中强光电股份有限公司 Brightness uniformity detection system and brightness uniformity detection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100562982C (en) * 2006-02-21 2009-11-25 台湾积体电路制造股份有限公司 Identification method and identification system

Also Published As

Publication number Publication date
CN1384467A (en) 2002-12-11

Similar Documents

Publication Publication Date Title
CN101561866B (en) Character recognition method based on SIFT feature and gray scale difference value histogram feature
CN107247950A (en) A kind of ID Card Image text recognition method based on machine learning
CN103258201B (en) A kind of form lines extracting method of amalgamation of global and local message
CN1141665C (en) Methods of Feature Extraction and Recognition of Microscopic Image
CN108960088A (en) The detection of facial living body characteristics, the recognition methods of specific environment
CN1421815A (en) Fingerprint image enhancement method based on knowledge
CN106296670A (en) A kind of Edge detection of infrared image based on Retinex watershed Canny operator
CN113139535A (en) OCR document recognition method
CN106936964A (en) A kind of mobile phone screen angular-point detection method based on Hough transformation template matches
CN109271882B (en) A color-distinguishing method for extracting handwritten Chinese characters
CN100342391C (en) Automatic fingerprint classification system and method
Yang et al. Residual shape adaptive dense-nested Unet: Redesign the long lateral skip connections for metal surface tiny defect inspection
CN1227373A (en) Handwriting verification device
CN104834891A (en) Method and system for filtering Chinese character image type spam
CN1794262A (en) Method of fast and effective cutting apart vivi iris
CN1664847A (en) Fingerprint Identification and Matching Method for Embedded System
CN108764230A (en) A kind of bank's card number automatic identifying method based on convolutional neural networks
CN1790374A (en) Face recognition method based on template matching
CN114529771B (en) Shale Large View Image Classification Method Based on Machine Learning
CN107609482B (en) Chinese text image inversion discrimination method based on Chinese character stroke characteristics
CN1912889A (en) Deformed fingerprint identification method based on local triangle structure characteristic collection
CN101051348A (en) Signature identifying method
Wang et al. Hand vein recognition based on multi-scale LBP and wavelet
CN1229755C (en) Automatic fingerprint identifying technology under verification mode
CN105721738B (en) A kind of chromoscan file and picture preprocess method

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee