CN101604395A - A Moment-Invariant Classification Method for Similar Objects Using Multiscale Mathematical Morphology - Google Patents

A Moment-Invariant Classification Method for Similar Objects Using Multiscale Mathematical Morphology Download PDF

Info

Publication number
CN101604395A
CN101604395A CNA2009100893373A CN200910089337A CN101604395A CN 101604395 A CN101604395 A CN 101604395A CN A2009100893373 A CNA2009100893373 A CN A2009100893373A CN 200910089337 A CN200910089337 A CN 200910089337A CN 101604395 A CN101604395 A CN 101604395A
Authority
CN
China
Prior art keywords
invariant
scale
similar objects
moment
moments
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.)
Granted
Application number
CNA2009100893373A
Other languages
Chinese (zh)
Other versions
CN101604395B (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.)
Beihang University
Original Assignee
Beihang 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 Beihang University filed Critical Beihang University
Priority to CN2009100893373A priority Critical patent/CN101604395B/en
Publication of CN101604395A publication Critical patent/CN101604395A/en
Application granted granted Critical
Publication of CN101604395B publication Critical patent/CN101604395B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

一种利用多尺度数学形态学的相似物体不变矩分类方法,其基本流程是首先利用多尺度数学形态学提取物体训练图像的细节特征,并将物体的多尺度细节特征进行各种合并形成不同类相似物体在多个尺度上的真正不同部分。然后,任选一种不变矩方法计算这些真正不同部分的不变矩的值。随后,通过一种测度对真正不同部分的不变矩的值进行评测,自动选择能够有效区分相似物体的真正不同部分及其对应的不变矩。最后,利用选择的真正不同部分及其对应的不变矩对相似物体进行分类。实现相似物体的有效分类。本发明可广泛应用于各类目标识别和分类系统,在数字图像处理和模式识别领域具有广阔的市场前景与应用价值。

Figure 200910089337

A method of invariant moment classification of similar objects using multi-scale mathematical morphology. The basic process is to firstly use multi-scale mathematical morphology to extract the detailed features of the object training image, and combine the multi-scale detailed features of the object to form different Truly distinct parts of similar objects at multiple scales. Then, choose one of the invariant moment methods to calculate the values of the invariant moments for these truly different parts. Subsequently, the value of the invariant moments of the truly different parts is evaluated by a measure, and the truly different parts and their corresponding invariant moments that can effectively distinguish similar objects are automatically selected. Finally, similar objects are classified using the selected truly distinct parts and their corresponding invariant moments. Achieving efficient classification of similar objects. The invention can be widely used in various object recognition and classification systems, and has broad market prospects and application value in the fields of digital image processing and pattern recognition.

Figure 200910089337

Description

一种利用多尺度数学形态学的相似物体不变矩分类方法 A Moment-Invariant Classification Method for Similar Objects Using Multiscale Mathematical Morphology

(一)技术领域 (1) Technical field

本发明涉及一种利用多尺度数学形态学的相似物体不变矩分类方法,属于数字图像处理和模式识别技术领域。它主要涉及数学形态学、不变矩和目标识别技术,能广泛应用于目标识别和目标分类。The invention relates to a method for classifying invariant moments of similar objects using multi-scale mathematical morphology, and belongs to the technical fields of digital image processing and pattern recognition. It mainly involves mathematical morphology, invariant moments and target recognition technology, and can be widely used in target recognition and target classification.

(二)背景技术 (2) Background technology

不变矩是目标识别和分类的重要数学工具,良好的不变矩分类能力可以有效提高目标识别和分类的有效性。为了达到更好的识别和分类效果,各种不变矩被提出,包括:Hu矩、Z矩、小波矩等。虽然这些不变矩方法在区分不同类物体时效果较好,但当不同类物体的外形非常相似时这些不变矩方法的效果较差。Invariant moment is an important mathematical tool for target recognition and classification, and good invariant moment classification ability can effectively improve the effectiveness of target recognition and classification. In order to achieve better recognition and classification results, various invariant moments are proposed, including: Hu moment, Z moment, wavelet moment, etc. Although these moment invariant methods are good at distinguishing objects of different classes, they are less effective when the shapes of objects of different classes are very similar.

Hu在1961年首先提出具有平移、旋转、缩放不变性的七个不变矩,其中的低阶矩主要用于描述物体的整体特征,高阶矩主要用于描述物体的细节特征。随后,Hu矩被广泛应用于各种应用中,但在各种应用中Hu矩也表现出各种缺点,如不能有效识别外形很相似的不同类物体。Z矩作为一种有效的正交矩不仅具有良好的正交性,而且能够被有效应用于图像重建。Z矩的正交特性使其物体识别能力好于Hu矩和其他的一些常用正交矩,能够更好地描述图像的不变特征。但由于Z矩也是通过物体的整体形状计算不变矩特征,因此Z矩同样不能有效区分外形很相似的不同类物体。小波变换能够在不同尺度上分解图像,可以提取图像在不同尺度上的细节。Sheng等以小波变换为工具通过Z矩构造了一系列小波不变矩。小波不变矩可以构造能够反映物体不同尺度特征的任意阶不变矩,由于小波变换能够提取物体不同尺度上的特征,因此小波不变矩能够较为有效地区分相似物体。但在区分外形很相似的不同类物体时小波不变矩的效果受到一定抑制。Hu first proposed seven invariant moments with translation, rotation, and scaling invariance in 1961. The low-order moments are mainly used to describe the overall characteristics of the object, and the high-order moments are mainly used to describe the detailed characteristics of the object. Subsequently, the Hu moment is widely used in various applications, but the Hu moment also shows various shortcomings in various applications, such as not being able to effectively identify different types of objects with very similar shapes. As an effective orthogonal moment, Z moment not only has good orthogonality, but also can be effectively applied to image reconstruction. The orthogonality of the Z moment makes its object recognition ability better than the Hu moment and some other commonly used orthogonal moments, and can better describe the invariant characteristics of the image. However, since the Z moment is also calculated through the overall shape of the object, the Z moment cannot effectively distinguish different types of objects with very similar shapes. Wavelet transform can decompose images on different scales, and can extract the details of images on different scales. Sheng et al. used wavelet transform as a tool to construct a series of wavelet invariant moments through Z moments. Wavelet invariant moments can construct arbitrary order invariant moments that can reflect the characteristics of different scales of objects. Since wavelet transform can extract the characteristics of objects at different scales, wavelet invariant moments can effectively distinguish similar objects. However, the effect of wavelet invariant moments is restrained to a certain extent when distinguishing different types of objects with very similar shapes.

实际上,即使两类物体非常相似,两类物体在某些细节上也会有较大差异。因此,如果这些细节差异能够被有效提取并被用于计算不变矩,这些不变矩方法的分类能力将会被大大提高。由此可见,有效区分外形相似物体的关键是找到能够有效提取相似物体中真正不同的细节特征的方法,然后利用这些特征进行不变矩计算,以此提高不变矩的分类能力,达到区分相似物体的目的。数学形态学在图像处理中得到了广泛应用,可以有效平滑图像的细节,这就是说数学形态学可以提取图像中的细节。更为重要的是,多尺度数学形态学可以提取图像不同尺度上的细节,这会更加有利于图像细节的利用。In fact, even if the two types of objects are very similar, there will be large differences in some details between the two types of objects. Therefore, if these detailed differences can be effectively extracted and used to calculate invariant moments, the classification ability of these invariant moment methods will be greatly improved. It can be seen that the key to effectively distinguishing similar objects is to find a method that can effectively extract the truly different detailed features of similar objects, and then use these features to calculate invariant moments, so as to improve the classification ability of invariant moments and achieve the goal of distinguishing similar objects. object's purpose. Mathematical morphology has been widely used in image processing, which can effectively smooth the details of the image, which means that mathematical morphology can extract the details in the image. More importantly, multi-scale mathematical morphology can extract the details of images at different scales, which will be more conducive to the utilization of image details.

(三)发明内容 (3) Contents of the invention

1、目的:为了有效区分相似物体并弥补传统方法的不足,本发明提供了一种利用多尺度数学形态学的相似物体不变矩分类方法,该方法通过多尺度数学形态学提取相似物体在不同尺度上的细节特征,并定义一种选择测度自动选择能够提高不变矩分类效果的细节特征和对应不变矩,解决相似物体的有效分类问题,为各种实际应用提供有效工具。1. Purpose: In order to effectively distinguish similar objects and make up for the shortcomings of traditional methods, the present invention provides a similar object invariant moment classification method using multi-scale mathematical morphology. This method extracts similar objects in different The detailed features on the scale, and define a selection measure to automatically select the detailed features and corresponding invariant moments that can improve the classification effect of invariant moments, solve the problem of effective classification of similar objects, and provide effective tools for various practical applications.

2、技术方案:为了实现这个目的,本发明的技术方案中,其流程是首先利用多尺度数学形态学提取物体训练图像的细节特征,并将物体的多尺度细节特征进行各种合并形成不同类相似物体在多个尺度上的真正不同部分。然后,任选一种不变矩方法计算这些真正不同部分的不变矩的值。随后,通过一种测度对真正不同部分的不变矩的值进行评测,自动选择能够有效区分相似物体的真正不同部分及其对应的不变矩。最后,利用选择的真正不同部分及其对应的不变矩对相似物体进行分类。实现相似物体的有效分类。2. Technical solution: In order to achieve this goal, in the technical solution of the present invention, the process is to firstly use multi-scale mathematical morphology to extract the detailed features of the object training image, and variously combine the multi-scale detailed features of the object to form different types Truly distinct parts of similar objects at multiple scales. Then, choose one of the invariant moment methods to calculate the values of the invariant moments for these truly different parts. Subsequently, the value of the invariant moments of the truly different parts is evaluated by a measure, and the truly different parts and their corresponding invariant moments that can effectively distinguish similar objects are automatically selected. Finally, similar objects are classified using the selected truly distinct parts and their corresponding invariant moments. Achieving efficient classification of similar objects.

本发明一种利用多尺度数学形态学的相似物体不变矩分类方法,其具体步骤如下:The present invention utilizes the similar object invariant moment classification method of multi-scale mathematical morphology, and its specific steps are as follows:

设有n个某种类型的不变矩且需要计算a个尺度的形态学运算;There are n invariant moments of a certain type and morphological operations that need to calculate a scale;

步骤一:取需要区分的两类物体f1和f2的训练图像;Step 1: Take the training images of the two types of objects f 1 and f 2 that need to be distinguished;

步骤二:设i=1,    i表示不变矩的序号,其范围为1≤i≤n;Step 2: Set i=1, i represents the serial number of the invariant moment, and its range is 1≤i≤n;

步骤三:设q=0,    q表示需要计算的尺度的序号;Step 3: Set q=0, where q represents the serial number of the scale to be calculated;

步骤四:设p=q+1,  p表示需要计算的与q相关的另一尺度的序号;Step 4: Let p=q+1, p represents the serial number of another scale related to q that needs to be calculated;

步骤五:针对物体f1,计算f1从尺度p到尺度q的合并的多尺度形态学细节特征:Step 5: For object f 1 , calculate the merged multi-scale morphological detail features of f 1 from scale p to scale q:

Figure G2009100893373D00021
p>q,1≤p≤a,1≤q≤a;f1 pq表示计算得到的f1从尺度p到尺度q的合并的多尺度形态学细节特征;
Figure G2009100893373D00021
p>q, 1≤p≤a, 1≤q≤a; f 1 pq represents the merged multi-scale morphological detail features of calculated f 1 from scale p to scale q;

计算f1 pq的第i个不变矩: MM i pq = IM ( f 1 pq ) ; 计算f1对应的所有训练图像的MMi pq,并将所有的MMi pq形成一个向量VMi pq,针对另一类物体f2用同样方法形成另一个向量VMi pqCompute the ith invariant moment of f 1 pq : MM i pq = IM ( f 1 pq ) ; Calculate MM i pq of all training images corresponding to f 1 , and form all MM i pq into a vector VM i pq , and form another vector VM i pq in the same way for another type of object f 2 ;

步骤六:  按下式计算两向量的测度Qi pqStep 6: Calculate the measure Q i pq of the two vectors according to the following formula:

QQ ii pqpq (( ff 11 ,, ff 22 )) == || σσ (( ff 11 ,, MMMM ii pqpq )) ++ σσ (( ff 22 ,, MMMM ii pqpq )) mm (( ff 11 ,, MMMM ii pqpq )) -- mm (( ff 22 ,, MMMM ii pqpq )) || ,,

并将Qi pq放入测度向量Q。其中:σ和m是f1和f2的不同训练图像对应的所有不变矩值的方差和均值;And put Q i pq into the measure vector Q. where: σ and m are the variance and mean of all invariant moment values corresponding to different training images of f1 and f2 ;

步骤七:p=p+1,如果p>a,进入步骤八;否则进入步骤五;Step seven: p=p+1, if p>a, go to step eight; otherwise go to step five;

步骤八:q=q+1,如果q>a,进入步骤九;否则进入步骤四;Step 8: q=q+1, if q>a, go to step 9; otherwise go to step 4;

步骤九:i=i+1,如果i>n,进入步骤十;否则进入步骤三;Step nine: i=i+1, if i>n, go to step ten; otherwise go to step three;

步骤十:找到Q中前r个最小的值及其对应的不变矩MMi pqStep 10: Find the first r smallest values in Q and their corresponding invariant moments MM i pq ;

步骤十一:利用r个MMi pq和对应的真正不同部分通过近邻方法对两类相似物体进行分类。Step 11: Use the r MM i pq and the corresponding real different parts to classify two types of similar objects through the nearest neighbor method.

本发明利用多尺度数学形态学提取物体训练图像的细节特征,并将物体的多尺度细节特征进行合并形成不同类相似物体在多个尺度上的多个真正不同部分,使这些真正不同部分的区别大于原始物体整体形状上的区别;此时,可用任一种不变矩方法计算这些真正不同部分的不变矩的值,由于不变矩的值是在真正不同部分上计算得到的,因此不同类物体之间不变矩的值有明显差异;通过一种测度对这些真正不同部分的不变矩的值进行评测,自动选择能够更加有效区分相似物体的真正不同部分及其对应的不变矩;利用选择的真正不同部分及其对应的不变矩对相似物体进行分类,实现相似物体的有效分类。The present invention uses multi-scale mathematical morphology to extract the detailed features of object training images, and combines the multi-scale detailed features of objects to form multiple real different parts of different types of similar objects on multiple scales, so that the difference between these real different parts is greater than the difference in the overall shape of the original object; at this time, any method of invariant moments can be used to calculate the values of invariant moments of these really different parts, because the values of invariant moments are calculated on really different parts, so they are different The values of the invariant moments between similar objects are significantly different; by evaluating the values of the invariant moments of these truly different parts through a measure, automatic selection can more effectively distinguish the real different parts of similar objects and their corresponding invariant moments ; classify similar objects using the selected truly distinct parts and their corresponding invariant moments, enabling efficient classification of similar objects.

3、优点及功效:本发明充分利用相似物体在外形细节上的可能不同部分,能够自动选择相似物体的真正不同部分,通过利用相似物体的局部真正不同部分计算得到的不变矩的值来代替利用相似物体的整体计算得到的不变矩的值,达到有效分类相似物体的目的,可广泛应用于各类目标识别和分类系统,具有广阔的市场前景与应用价值。3. Advantages and effects: the present invention makes full use of the possible different parts of similar objects in the shape details, can automatically select the real different parts of similar objects, and replace them with the value of invariant moments calculated by using the local real different parts of similar objects The value of invariant moments obtained by the overall calculation of similar objects is used to achieve the purpose of effectively classifying similar objects, which can be widely used in various target recognition and classification systems, and has broad market prospects and application value.

(四)附图说明 (4) Description of drawings

图1为本发明利用多尺度数学形态学的相似物体不变矩分类方法的原理框图。Fig. 1 is a schematic block diagram of the method for classifying invariant moments of similar objects using multi-scale mathematical morphology in the present invention.

图2为展示本发明相似物体分类效果的示例图像“1”和“I”。Fig. 2 is example images "1" and "I" showing the effect of the present invention on similar object classification.

图3为多尺度数学形态学提取的“1”和“I”中的一种真正不同部分。Figure 3 is a truly different part of "1" and "I" extracted by multi-scale mathematical morphology.

图4为本发明的分类效果和Hu矩的分类效果的对比。其中(a)图是本发明选择的两个不变矩的分类效果,(b)图是Hu矩的分类效果。Fig. 4 is a comparison between the classification effect of the present invention and the classification effect of Hu moment. Wherein (a) figure is the classification effect of two invariant moments selected by the present invention, (b) figure is the classification effect of Hu moment.

图5为本发明的分类效果和小波不变矩的分类效果的对比。其中(a)图是本发明选择的两个不变矩的分类效果,(b)图是小波不变矩的分类效果。Fig. 5 is a comparison between the classification effect of the present invention and the classification effect of wavelet invariant moments. Wherein (a) figure is the classification effect of two invariant moments selected by the present invention, and (b) figure is the classification effect of wavelet invariant moments.

图中符号说明如下:图4(a)中的M1和M2分别表示Hu矩的第一和第二阶矩;图4(b)中的MIM1 51和MIM2 51是利用本发明在Hu矩的第一和第二阶矩基础上得到的性能更好的两个不变矩,分别表示在第五到第一尺度上的第一和第二阶矩;图5(a)中的‖F2,6,0 wavelet‖和‖F2,4,0 wavelet‖是能够有效区分相似物体的两个小波矩;图5(b)中的MIM3 41和MIM4 41是利用本发明在Hu矩的第一、第二、第三和第四阶矩基础上得到的性能更好的两个不变矩,分别表示在第四到第一尺度上的第三和第四阶矩。The symbols in the figure are explained as follows: M1 and M2 in Fig. 4(a) represent the first and second order moments of Hu moment respectively; MIM 1 51 and MIM 2 51 in Fig. 4(b) are the Hu moment The two invariant moments with better performance obtained on the basis of the first and second order moments of , denote the first and second order moments on the fifth to first scale respectively; 2,6,0 wavelet ‖ and ‖F 2,4,0 wavelet ‖ are two wavelet moments that can effectively distinguish similar objects; MIM 3 41 and MIM 4 41 in Fig. Two invariant moments with better performance obtained on the basis of the first, second, third and fourth order moments of , represent the third and fourth order moments on the fourth to first scale, respectively.

(五)具体实施方式 (5) Specific implementation methods

实施本发明的先决条件是:必须提供待分类目标的训练图像。The prerequisite for implementing the present invention is: training images of objects to be classified must be provided.

利用本发明进行分类的条件是:需要获得待分类目标的图像。The condition for classifying by using the present invention is: the image of the object to be classified needs to be obtained.

为了更好地理解本发明的技术方案,以下结合附图对本发明的实施方式作进一步描述。In order to better understand the technical solutions of the present invention, the implementation manners of the present invention will be further described below in conjunction with the accompanying drawings.

本发明一种利用多尺度数学形态学的相似物体不变矩分类方法,其工作的流程如图1所示,各部分具体实施细节步骤如下:A method for classifying similar objects using multi-scale mathematical morphology invariant moments of the present invention, its working process is shown in Figure 1, and the specific implementation details of each part are as follows:

步骤一:取需要区分的两类物体f1和f2的训练图像;Step 1: Take the training images of the two types of objects f 1 and f 2 that need to be distinguished;

步骤二:设i=1(1≤i≤n),取第i个不变矩。在对相似物体进行分类时,Hu矩的效果较差,为了展示本发明的有效性,本发明选用Hu矩作为方法中用到的不变矩。当然也可选用Z矩、小波矩等。常用的7个Hu矩的基本定义如下:Step 2: Set i=1 (1≤i≤n), and take the i-th invariant moment. When classifying similar objects, the effect of Hu moment is poor. In order to demonstrate the effectiveness of the present invention, the present invention selects Hu moment as the invariant moment used in the method. Of course, Z moment, wavelet moment, etc. can also be used. The basic definitions of the seven commonly used Hu moments are as follows:

M1=η2002M1=η 2002 ,

Mm 22 == (( ηη 2020 ++ ηη 0202 )) 22 -- 44 ηη 1111 22 ,,

Mm 33 == (( ηη 3030 ++ 33 ηη 1212 )) 22 -- (( 33 ηη 1111 22 -- ηη 0303 )) 22 ,,

Mm 44 == (( ηη 3030 ++ ηη 1212 )) 22 -- (( ηη 21twenty one 22 -- ηη 0303 )) 22 ,,

M5=(η30-3η12)(η3012)[(η3012)2-3(η2103)2]+(3η2103)(η2103)[3(η3012)2-(η2103)2],M5=(η 30 -3η 12 )(η 3012 )[(η 3012 ) 2 -3(η 2103 ) 2 ]+(3η 2103 )(η 2103 )[3(η 3012 ) 2 -(η 2103 ) 2 ],

M6=(η2002)[(η3012)2-(η2103)2]+4η113012)(η2103),M6=(η 2002 )[(η 3012 ) 2 -(η 2103 ) 2 ]+4η 113012 )(η 2103 ),

M7=(3η2130)(η3012)[(η3012)2-3(η2103)2]+(3η1230)(η2103)[3(η0312)2-(η2103)2]。M7=(3η 2130 )(η 3012 )[(η 3012 ) 2 -3(η 2103 ) 2 ]+(3η 1230 )(η 2103 )[3(η 0312 ) 2 -(η 2103 ) 2 ].

其中, η pq = μ pq μ 00 , in, η pq = μ pq μ 00 ,

μμ pqpq == ΣΣ ii == 00 uu -- 11 ΣΣ jj == 00 vv -- 11 (( xx ii -- xx ‾‾ )) pp (( ythe y ii -- ythe y ‾‾ )) qq ff (( xx ,, ythe y )) ,,

xx ‾‾ == sthe s 1010 sthe s 0000 ,, ythe y ‾‾ == sthe s 0101 sthe s 0000 ,,

sthe s pqpq == ΣΣ ii == 00 uu -- 11 ΣΣ jj == 00 vv -- 11 xx ii pp ythe y jj qq ff (( xx ,, ythe y )) ,,

u,v为图像的长宽。u, v are the length and width of the image.

由于本发明能够通过相似物体的细节有效提取相似物体的真正不同部分,因此n可选用计算量较小的低阶不变矩,如Hu矩的前两阶不变矩(M1,M2,此时n=2)或前四阶不变矩(M1,M2,M3,M4,此时n=4)。Since the present invention can effectively extract the real different parts of similar objects through the details of similar objects, n can choose low-order invariant moments with a small amount of calculation, such as the first two order invariant moments of Hu moments (M1, M2, at this time n=2) or the first four order invariant moments (M1, M2, M3, M4, n=4 at this time).

步骤三:设q=0,启动针对q的循环。Step 3: Set q=0, start the loop for q.

步骤四:设p=q+1,启动针对p的循环。Step 4: Set p=q+1, start the cycle for p.

步骤五:针对物体f1,按下式计算f1的多尺度形态学特征。Step 5: For the object f 1 , calculate the multi-scale morphological features of f 1 according to the following formula.

图像在第p尺度上的多尺度特征为The multi-scale features of the image on the p-th scale are

Figure G2009100893373D00054
Figure G2009100893373D00054

合并的图像从尺度p到尺度q的细节特征如下:The detailed features of the merged image from scale p to scale q are as follows:

Figure G2009100893373D00055
Figure G2009100893373D00055

其中,in,

Figure G2009100893373D00056
Figure G2009100893373D00056

Figure G2009100893373D00057
Figure G2009100893373D00057

ff 11 ⊕⊕ BB == maxmax uu ,, vv (( ff 11 (( xx -- uu ,, ythe y -- vv )) ))

Figure G2009100893373D00059
Figure G2009100893373D00059

○,●,

Figure G2009100893373D000510
Figure G2009100893373D000511
分别为数学形态学开、闭、膨胀和腐蚀运算符号。 qB = B ⊕ B ⊕ . . . ⊕ B , 共对B膨胀q次。○, ●,
Figure G2009100893373D000510
and
Figure G2009100893373D000511
They are the opening, closing, dilating and eroding operation symbols of mathematical morphology, respectively. wxya = B ⊕ B ⊕ . . . ⊕ B , B is expanded q times in total.

计算合并的多尺度特征f1 pq的第i个不变矩: MM i pq = IM ( f 1 pq ) . 计算该物体所有训练图像对应的第i个不变矩的值MMi pq,并将所有的MMi pq形成一个向量VMi pqCompute the i-th invariant moment of the merged multiscale feature f 1 pq : MM i pq = IM ( f 1 pq ) . Calculate the value MM i pq of the i-th invariant moment corresponding to all training images of the object, and form all MM i pq into a vector VM i pq .

针对另一类物体f2形成另一个向量VMi pqAnother vector VM i pq is formed for another type of object f 2 .

步骤六:按下式计算两向量的测度Qi pqStep 6: Calculate the measure Q i pq of the two vectors according to the following formula:

QQ ii pqpq (( ff 11 ,, ff 22 )) == || σσ (( ff 11 ,, MMMM ii pqpq )) ++ σσ (( ff 22 ,, MMMM ii pqpq )) mm (( ff 11 ,, MMMM ii pqpq )) -- mm (( ff 22 ,, MMMM ii pqpq )) || ,,

其中,σ和m是不同训练图像对应的不变矩值的方差和均值;并将Qi pq放入测度向量Q。从Qi pq的定义可以看出,Qi pq越小说明不变矩MMi pq的分类能力更强,对应的真正不同部分更能体现两类不同物体之间的不同。Among them, σ and m are the variance and mean of the invariant moment values corresponding to different training images; and Q i pq is put into the measure vector Q. From the definition of Q i pq , it can be seen that the smaller the Q i pq is, the stronger the classification ability of the invariant moment MM i pq is , and the corresponding truly different parts can better reflect the difference between two different objects.

步骤七:循环p,设p=p+1,如果p>a,进入步骤八;否则进入步骤五。a为多尺度形态学运算的尺度数,可根据实际应用选取,一般可取a<10.Step 7: loop p, set p=p+1, if p>a, go to step 8; otherwise go to step 5. a is the number of scales for multi-scale morphological operations, which can be selected according to practical applications, generally a < 10.

步骤八:循环q,设q=q+1,如果q>a,进入步骤九;否则进入步骤四。Step 8: Cycle q, set q=q+1, if q>a, go to step 9; otherwise go to step 4.

步骤九:循环i,设i=i+1,如果i>n,进入步骤十;否则进入步骤三。Step nine: loop i, set i=i+1, if i>n, go to step ten; otherwise go to step three.

步骤十:挑选分类能力良好的不变矩Step 10: Select invariant moments with good classification ability

从Qi pq的定义可知,Qi pq值越小,对应的不变矩区分当前不同类物体的能力越好,因此只需找到Q中前r个最小的值对应的不变矩MMi pq及其对应的真正不同部分fpq,用于区分两类相似物体。r可根据具体应用选取,为了兼顾有效性和鲁棒性,通常可取r=2。From the definition of Q i pq , we can see that the smaller the value of Q i pq , the better the ability of the corresponding invariant moment to distinguish different types of objects, so it is only necessary to find the invariant moment MM i pq corresponding to the first r smallest values in Q and its corresponding truly different part f pq , which are used to distinguish two types of similar objects. r can be selected according to specific applications, in order to take into account the effectiveness and robustness, usually r = 2 is desirable.

步骤十一:对相似物体进行分类Step Eleven: Classify Similar Objects

首先利用fpq计算两类相似物体图像的真正不同部分,然后利用对应的r个MMi pq在真正不同部分上计算两类相似物体的不变矩,最后利用常用的近邻法(参见:边肇祺,张学工等.模式识别.清华大学出版社,北京,1999,第六章.)分类两类物体的不变矩,达到区分两类物体的目的。First use f pq to calculate the real different parts of the images of two similar objects, then use the corresponding r MM i pq to calculate the invariant moments of the two similar objects on the real different parts, and finally use the commonly used nearest neighbor method (see: Bian Zhao Qi, Zhang Xuegong, etc. Pattern Recognition. Tsinghua University Press, Beijing, 1999, Chapter 6.) Classify the invariant moments of two types of objects to achieve the purpose of distinguishing between two types of objects.

为了展示本发明的效果,采用外形相似的“1”和“I”作为实验图像,部分图像如图2所示。从图2中可以看出,“1”和“I”极其相似,仅在顶部存在较小差异。利用多尺度数学形态学提取“1”和“I”的真正不同部分,图3为其中的一种真正不同部分。从图3中可以看出,与图2相比,图3中提取出的部分确实存在较大不同。为了更好地展示本发明的效果,选用了分类能力相对较差的Hu矩作为本发明中需要用到的不变矩MM,将其标记为MIM,并与Hu矩和能够有效区分相似物体的小波不变矩进行对比。将稳定性较好的第一阶和第二阶两个低阶不变矩用于本发明提出的方法(n=2),图4是本发明和Hu矩的分类效果,虽然Hu矩的第一和第二阶矩不能区分“1”和“I”(图(a)),而利用了多尺度数学形态学的本发明却能够有效区分“1”和“I”(图(b))。为了更好地展示本发明的效果,将本发明与小波不变矩进行对比,图5是分类效果。图5(a)中虽然小波不变矩可以区分“1”和“I”,但也只是刚好能够区分。但利用了4个低阶Hu矩的本发明(n=4)(图5(b))却能够很好地区分“1”和“I”。这说明本发明可以有效区分相似物体,且比传统方法的效果好。另外,任何一种不变矩方法都可以取代Hu矩用于本发明所需要的不变矩MM,且不变矩MM的分类能力越好,本发明区分相似物体的能力越好。因此,本发明不仅可以用于相似物体分类,也可以被广泛用于不变矩区分相似物体时不变矩分类能力的提高,在各类应用中有广泛的应用前景。In order to demonstrate the effect of the present invention, "1" and "I" with similar shapes are used as experimental images, some of which are shown in FIG. 2 . As can be seen from Figure 2, "1" and "I" are very similar, with only a small difference at the top. Using multi-scale mathematical morphology to extract the real different parts of "1" and "I", one of which is shown in Figure 3. It can be seen from Figure 3 that compared with Figure 2, the extracted part in Figure 3 is indeed quite different. In order to better demonstrate the effect of the present invention, the Hu moment with relatively poor classification ability is selected as the invariant moment MM that needs to be used in the present invention, and it is marked as MIM, and compared with the Hu moment and the MM that can effectively distinguish similar objects Wavelet invariant moments for comparison. The better first order and second order two low-order invariant moments of stability are used in the method (n=2) that the present invention proposes, and Fig. 4 is the classification effect of the present invention and Hu moment, although the Hu moment's first order The first and second moments cannot distinguish between "1" and "I" (figure (a)), but the invention using multi-scale mathematical morphology can effectively distinguish "1" and "I" (figure (b)) . In order to better demonstrate the effect of the present invention, the present invention is compared with the wavelet invariant moment, and Fig. 5 is the classification effect. In Fig. 5(a), although the wavelet invariant moment can distinguish "1" and "I", it is only just able to distinguish. But the present invention (n=4) (FIG. 5(b)) utilizing 4 low-order Hu moments can distinguish "1" and "I" very well. This shows that the present invention can effectively distinguish similar objects, and the effect is better than the traditional method. In addition, any invariant moment method can replace the Hu moment for the invariant moment MM required by the present invention, and the better the classification ability of the invariant moment MM, the better the ability of the present invention to distinguish similar objects. Therefore, the present invention can not only be used for classifying similar objects, but also can be widely used for improving moment-invariant classification ability when distinguishing similar objects with invariant moments, and has broad application prospects in various applications.

Claims (1)

1、一种利用多尺度数学形态学的相似物体不变矩分类方法,设有n个所选定类型的不变矩且需要计算a个尺度的形态学运算,其特征在于:该方法具体步骤如下:1. A method for classifying invariant moments of similar objects using multi-scale mathematical morphology, which is provided with n selected types of invariant moments and needs to calculate a scale of morphological operations, characterized in that: the specific steps of the method as follows: 步骤一:取需要区分的两类物体f1和f2的训练图像;Step 1: Take the training images of the two types of objects f 1 and f 2 that need to be distinguished; 步骤二:设i=1,i表示不变矩的序号,其范围为1≤i≤n;Step 2: set i=1, i represents the serial number of the invariant moment, and its range is 1≤i≤n; 步骤三:设q=0,q表示需要计算的尺度的序号;Step 3: Set q=0, where q represents the serial number of the scale to be calculated; 步骤四:设p=q+1,p表示需要计算的与q相关的另一尺度的序号;Step 4: Set p=q+1, where p represents the serial number of another scale related to q that needs to be calculated; 步骤五:针对物体f1,计算f1从尺度p到尺度q的合并的多尺度形态学细节特征:Step 5: For object f 1 , calculate the merged multi-scale morphological detail features of f 1 from scale p to scale q:
Figure A2009100893370002C1
p>q,1≤p≤a,1≤q≤a;f1 pq表示计算得到的f1从尺度p到尺度q的合并的多尺度形态学细节特征;
Figure A2009100893370002C1
p>q, 1≤p≤a, 1≤q≤a; f 1 pq represents the merged multi-scale morphological detail features of calculated f 1 from scale p to scale q;
计算f1 pq的第i个不变矩: MM i pq = IM ( f 1 pq ) ; 计算f1对应的所有训练图像的MMi pq,并将所有的MMi pq形成一个向量VMi pq,针对另一类物体f2用同样方法形成另一个向量VMi pqCompute the ith invariant moment of f 1 pq : MM i pq = IM ( f 1 pq ) ; Calculate MM i pq of all training images corresponding to f 1 , and form all MM i pq into a vector VM i pq , and form another vector VM i pq in the same way for another type of object f 2 ; 步骤六:按下式计算两向量的测度Qi pqStep 6: Calculate the measure Q i pq of the two vectors according to the following formula: QQ ii pqpq (( ff 11 ,, ff 22 )) == || &sigma;&sigma; (( ff 11 ,, MMMM ii pqpq )) ++ &sigma;&sigma; (( ff 22 ,, MMMM ii pqpq )) mm (( ff 11 ,, MMMM ii pqpq )) -- mm (( ff 22 ,, MMMM ii pqpq )) || ,, 并将Qi pq放入测度向量Q,其中:σ和m是f1和f2的不同训练图像对应的所有不变矩值的方差和均值;And put Q i pq into the measure vector Q, where: σ and m are the variance and mean of all invariant moment values corresponding to different training images of f 1 and f 2 ; 步骤七:p=p+1,如果p>a,进入步骤八;否则进入步骤五;Step seven: p=p+1, if p>a, go to step eight; otherwise go to step five; 步骤八:q=q+1,如果q>a,进入步骤九;否则进入步骤四;Step 8: q=q+1, if q>a, go to step 9; otherwise go to step 4; 步骤九:i=i+1,如果i>n,进入步骤十;否则进入步骤三;Step nine: i=i+1, if i>n, go to step ten; otherwise go to step three; 步骤十:找到Q中前r个最小的值及其对应的不变矩MMi pqStep 10: Find the first r smallest values in Q and their corresponding invariant moments MM i pq ; 步骤十一:利用r个MMi pq和对应的真正不同部分通过近邻方法对两类相似物体进行分类。Step 11: Use the r MM i pq and the corresponding real different parts to classify two types of similar objects through the nearest neighbor method.
CN2009100893373A 2009-07-16 2009-07-16 Method for classifying invariant moment of similar objects by multi-scale mathematical morphology Expired - Fee Related CN101604395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100893373A CN101604395B (en) 2009-07-16 2009-07-16 Method for classifying invariant moment of similar objects by multi-scale mathematical morphology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100893373A CN101604395B (en) 2009-07-16 2009-07-16 Method for classifying invariant moment of similar objects by multi-scale mathematical morphology

Publications (2)

Publication Number Publication Date
CN101604395A true CN101604395A (en) 2009-12-16
CN101604395B CN101604395B (en) 2011-12-14

Family

ID=41470115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100893373A Expired - Fee Related CN101604395B (en) 2009-07-16 2009-07-16 Method for classifying invariant moment of similar objects by multi-scale mathematical morphology

Country Status (1)

Country Link
CN (1) CN101604395B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679664A (en) * 2013-12-30 2014-03-26 北京航空航天大学 Enhancing method capable of preserving image details by using alternative filter based on mathematical morphology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679664A (en) * 2013-12-30 2014-03-26 北京航空航天大学 Enhancing method capable of preserving image details by using alternative filter based on mathematical morphology
CN103679664B (en) * 2013-12-30 2016-07-06 北京航空航天大学 A kind of Enhancement Method that can retain image detail utilizing mathematical morphology alternative filter

Also Published As

Publication number Publication date
CN101604395B (en) 2011-12-14

Similar Documents

Publication Publication Date Title
CN101807294B (en) An Image Enhancement Method Using Mathematical Morphology of Multi-Scale and Multi-Structural Elements
CN101989302A (en) Multilayer bitmap color feature-based image retrieval method
CN104408479B (en) A kind of large nuber of images sorting technique based on depth local feature description symbol
CN107292259A (en) The integrated approach of depth characteristic and traditional characteristic based on AdaRank
CN106600605A (en) Unsupervised fast image segmentation algorithm
CN104361096B (en) The image search method of a kind of feature based rich region set
CN102915448A (en) AdaBoost-based 3D (three-dimensional) model automatic classification method
CN104899280B (en) The asynchronous image search method of fuzzy correlation based on color histogram and NSCT
CN110175248A (en) A kind of Research on face image retrieval and device encoded based on deep learning and Hash
CN106777980A (en) A kind of Time Series Similarity Forecasting Methodology based on DTW
CN109919921B (en) Environmental impact degree modeling method based on generation countermeasure network
CN103177265A (en) High-definition image classification method based on kernel function and sparse coding
CN107027051A (en) A kind of video key frame extracting method based on linear dynamic system
Gao et al. Cassava disease detection method based on EfficientNet
CN104463822B (en) Multi-focus image fusing method and its device based on multiple dimensioned global filtering
CN102184412A (en) Licence plate number and letter identification method based on minimum-error-rate Bayes classifier
CN104463091B (en) A kind of facial image recognition method based on image LGBP feature subvectors
CN101604395B (en) Method for classifying invariant moment of similar objects by multi-scale mathematical morphology
Hu et al. Age estimation and gender classification of facial images based on Local Directional Pattern
CN109345055B (en) Large power grid static stability boundary feature extraction method and system based on space-time sequence
CN113780092B (en) Crowd Counting Method Based on Weak Labeling of Blocks
Wang et al. Learning visual symbols for parsing human poses in images
CN102043910A (en) Remote protein homology detection and fold recognition method based on Top-n-gram
Yong et al. A real-time detection algorithm based on nanodet for pavement cracks by incorporating attention mechanism
CN111122155A (en) A Gear Fault Diagnosis Method Based on Telescopic Displacement Hyperdisc

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

Granted publication date: 20111214

Termination date: 20150716

EXPY Termination of patent right or utility model