CN111382794B - Curve similarity calculation method - Google Patents

Curve similarity calculation method Download PDF

Info

Publication number
CN111382794B
CN111382794B CN202010155640.5A CN202010155640A CN111382794B CN 111382794 B CN111382794 B CN 111382794B CN 202010155640 A CN202010155640 A CN 202010155640A CN 111382794 B CN111382794 B CN 111382794B
Authority
CN
China
Prior art keywords
curves
distance
eigenvalue
adjacency matrix
matrix
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.)
Active
Application number
CN202010155640.5A
Other languages
Chinese (zh)
Other versions
CN111382794A (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.)
Zhejiang Gongshang University
Original Assignee
Zhejiang Gongshang 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 Zhejiang Gongshang University filed Critical Zhejiang Gongshang University
Priority to CN202010155640.5A priority Critical patent/CN111382794B/en
Publication of CN111382794A publication Critical patent/CN111382794A/en
Application granted granted Critical
Publication of CN111382794B publication Critical patent/CN111382794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Complex Calculations (AREA)

Abstract

The invention discloses a curve similarity calculation method. The existing two-dimensional curve similarity calculation method is not stable enough under the transformation of curve scaling, resampling and the like. The invention firstly calculates the distance adjacency matrix and the angle adjacency matrix of the two curves respectively, then calculates the characteristic value sequence of the two curves, and calculates the weighted distance between the two curves based on the characteristic value sequence, wherein the smaller the distance is, the more similar the two curves are. The invention relates to a two-dimensional curve similarity calculation method without calibration, which is free from global scaling and rotation translation transformation.

Description

Curve similarity calculation method
Technical Field
The invention belongs to the fields of image graph retrieval and machine vision, and provides a similarity calculation method for calculating two curves, which can be used for retrieving two-dimensional contours or curves.
Background
The curve similarity calculation refers to calculating the similarity degree or distance between two curves through a certain measurement criterion, wherein the curves can be unsealed or sealed. It is a fundamental problem for computer vision and pattern recognition, and is also a fundamental problem in many scientific fields.
Disclosure of Invention
The invention aims to provide a method for calculating the similarity between two curves, and the process of the method does not need to establish a point-to-point corresponding relation between the two curves.
The invention adopts a distance adjacency matrix and an angle adjacency matrix which are unchanged by rotation scaling transformation as characteristics, compares the similarity of two curves, and specifically comprises the following steps:
input: the two-dimensional curves are respectively A and B, and are uniformly discretized and represented by corresponding point sequences: a= (a) 1 ,a 2 ,a 3 ,…,a n ),B=(b 1 ,b 2 ,…,b m )。
And (3) outputting: the distance ρ (a, B) between the two curves. The smaller the distance, the more similar the two curves are.
The method comprises the following specific steps:
step (1) calculating a distance adjacency matrix of the curve A and the curve B, and performing normalization processing to obtain D A 、D B
Step (2) calculating an angle adjacency matrix omega of the curve A and the curve B A 、Ω B
Step (3) calculating matrix D A 、D B 、Ω A And omega B And normalized.
And (4) calculating the distance between the two curves.
Further, the ith row and jth column elements in the distance adjacency matrix in step (1)
Figure BDA0002403928870000011
The calculation is as follows:
d ij =‖k i -k j2
where k.epsilon.A or B.
The normalization in step (1) refers to dividing all elements in the distance adjacency matrix by the median of the matrix.
Further, the ith row and jth column elements in the angle adjacency matrix are points k i And point k j The included angle between the connecting line and the X axis of the coordinate axis is in the range of [0, pi/2 ]]。
Further, the characteristic values in the characteristic value sequence are arranged in a descending order.
Further, the normalization of the characteristic value sequence is to perform a difference operation on each item in the characteristic value sequence and the first item.
Further, the distance between the two curves is calculated as follows:
Figure BDA0002403928870000021
wherein w is λ And w ξ For the weighting coefficients, k=min (n, m), n is the number of eigenvalues of the distance adjacency matrix, m is the number of eigenvalues of the angle adjacency matrix,
Figure BDA0002403928870000022
for D A I-th eigenvalue in the eigenvalue sequence of (a) and +.>
Figure BDA0002403928870000023
For D B I-th eigenvalue in the eigenvalue sequence of (a) and +.>
Figure BDA0002403928870000024
Is omega A I-th eigenvalue in the eigenvalue sequence of (a) and +.>
Figure BDA0002403928870000025
Is omega B I-th eigenvalue in the eigenvalue sequence of (a).
The invention has the beneficial effects that: the invention relates to a two-dimensional curve similarity calculation method without calibration, which is free from global scaling and rotation translation transformation.
Detailed Description
The input and output of the method of the invention are:
input: the two-dimensional curves are respectively A and B, and are uniformly discretized and represented by corresponding point sequences: a= (a) 1 ,a 2 ,a 3 ,…,a n ),B=(b 1 ,b 2 ,…,b m )。
And (3) outputting: the distance ρ (a, B) between the two curves. The smaller the distance, the more similar the two curves are.
The method comprises the following specific steps:
step (1) calculating a distance adjacency matrix of the curve:
taking curve A as an example, calculate its distance adjacency matrix D A Its ith row and jth column element
Figure BDA0002403928870000031
Figure BDA0002403928870000032
Identical squareThe method also calculates a distance adjacency matrix D of curve B B
Step (2) calculating a normalized distance matrix:
D A =D A /median(D A );D B =D B /median(D B )
where media represents a median taking operation. The normalized result is still recorded as D A And D B
Step (3) calculating an angle adjacency matrix:
taking curve A as an example, its angular adjacency matrix Ω is calculated A Its ith row and jth column element
Figure BDA0002403928870000033
For point a i And point a j The included angle between the connecting line and the X axis of the coordinate axis is in the range of [0, pi/2 ]]. The same method also calculates the angular adjacency matrix Ω of curve B B
Calculating the eigenvalue sequence of each adjacent matrix and normalizing the eigenvalue sequence:
calculation D A Is marked as the characteristic value sequence from small to large
Figure BDA0002403928870000034
And performs the following normalization operation, the calculation result is still recorded as lambda A
Figure BDA0002403928870000035
Calculation of D by the same method B 、Ω A And omega B Normalized eigenvalue sequences of (a), respectively denoted as lambda B 、ξ A And xi B
Step (5) calculating the distance between the two curves: taking k=min (n, m), the distance between the calculation curves a and B is calculated:
Figure BDA0002403928870000036
wherein w is λ And w ξ Is the weighting coefficient that needs to be set.

Claims (4)

1. A method for retrieving curves in images is characterized in that: the similarity of two curves in the image is compared by adopting a distance adjacency matrix and an angle adjacency matrix which are unchanged by rotation scaling transformation as characteristics, and the method specifically comprises the following steps:
input: two-dimensional curves in the two images are respectively A and B, and the two curves are uniformly discretized and expressed by corresponding point sequences: a= (a) 1 ,a 2 ,a 3 ,…,a n ),B=(b 1 ,b 2 ,…,b m );
And (3) outputting: the distance ρ (a, B) between the curves in the two images; the smaller the distance, the more similar the two curves are;
the method comprises the following specific steps:
step (1) calculating a distance adjacency matrix of the curve A and the curve B, and performing normalization processing to obtain D A 、D B
Step (2) calculating an angle adjacency matrix omega of the curve A and the curve B A 、Ω B
Step (3) calculating matrix D A 、D B 、Ω A And omega B Is normalized;
step (4) calculating the distance between the two curves:
Figure FDA0004135305060000011
wherein w is λ And w x As the weighting coefficient, k=min (n, m), n is the number of eigenvalues of the distance adjacency matrix, m is the number of eigenvalues of the angle adjacency matrix, λ i A For D A The ith eigenvalue, lambda, in the eigenvalue sequence of (a) i B For D B I-th eigenvalue, ζ in the eigenvalue sequence of (a) i A Is omega A I-th eigenvalue, ζ in the eigenvalue sequence of (a) i B Is omega B Characteristic value sequence of (2)The i-th eigenvalue of (a);
the j-th column element d of the i-th row in the distance adjacent matrix ij The calculation is as follows:
d ij =‖k i -k j2
the j-th column element of the i-th row in the angle adjacent matrix is a point k i And point k j The included angle between the connecting line and the X axis of the coordinate axis is in the range of [0, pi/2 ]]The method comprises the steps of carrying out a first treatment on the surface of the Where k.epsilon.a or b.
2. The method for retrieving curves in an image according to claim 1, wherein: the normalization in step (1) refers to dividing all elements in the distance adjacency matrix by the median of the matrix.
3. The method for retrieving curves in an image according to claim 1, wherein: the characteristic values in the characteristic value sequence are arranged in a descending order.
4. A method of retrieving curves in an image according to claim 3, wherein: the normalization processing of the characteristic value sequence is to perform a difference operation on each item in the characteristic value sequence and the first item.
CN202010155640.5A 2020-03-09 2020-03-09 Curve similarity calculation method Active CN111382794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010155640.5A CN111382794B (en) 2020-03-09 2020-03-09 Curve similarity calculation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010155640.5A CN111382794B (en) 2020-03-09 2020-03-09 Curve similarity calculation method

Publications (2)

Publication Number Publication Date
CN111382794A CN111382794A (en) 2020-07-07
CN111382794B true CN111382794B (en) 2023-04-25

Family

ID=71219953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010155640.5A Active CN111382794B (en) 2020-03-09 2020-03-09 Curve similarity calculation method

Country Status (1)

Country Link
CN (1) CN111382794B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001319238A (en) * 2000-05-10 2001-11-16 Nippon Telegr & Teleph Corp <Ntt> Method and device for calculating feature amount of angle, method and device for retrieving similar angle, and program recording medium
WO2017185963A1 (en) * 2016-04-26 2017-11-02 深圳前海云汉金融科技有限公司 Big data-based method and terminal for matching trend curve local characteristics
CN107392945A (en) * 2017-06-11 2017-11-24 杭州巨实科技有限公司 A kind of two-dimensional silhouette matching process
CN107657266A (en) * 2017-08-03 2018-02-02 华北电力大学(保定) A kind of load curve clustering method based on improvement spectrum multiple manifold cluster
CN110516756A (en) * 2019-08-29 2019-11-29 南京邮电大学 Cmaes based on covariance matrix eigenvalue graph similarity clusters optimization method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001319238A (en) * 2000-05-10 2001-11-16 Nippon Telegr & Teleph Corp <Ntt> Method and device for calculating feature amount of angle, method and device for retrieving similar angle, and program recording medium
WO2017185963A1 (en) * 2016-04-26 2017-11-02 深圳前海云汉金融科技有限公司 Big data-based method and terminal for matching trend curve local characteristics
CN107392945A (en) * 2017-06-11 2017-11-24 杭州巨实科技有限公司 A kind of two-dimensional silhouette matching process
CN107657266A (en) * 2017-08-03 2018-02-02 华北电力大学(保定) A kind of load curve clustering method based on improvement spectrum multiple manifold cluster
CN110516756A (en) * 2019-08-29 2019-11-29 南京邮电大学 Cmaes based on covariance matrix eigenvalue graph similarity clusters optimization method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Alcázar, Juan Gerardo等.Similarity detection of rational space curves.Journal of Symbolic Computation.2018,第4-24页. *
朱文博 ; 耿国庆 ; 刘阳阳 ; 张祥 ; 阳鼎 ; .基于骨架树的机械零件三维模型检索方法.机械工程学报.2016,(第13期),第204-212页. *

Also Published As

Publication number Publication date
CN111382794A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
Li et al. Hand gesture recognition based on convolution neural network
CN108664911B (en) Robust face recognition method based on image sparse representation
CN107832704B (en) Fingerprint identification method using non-rigid registration based on image field
CN112150523B (en) Three-dimensional point cloud registration method with low overlapping rate
Amakdouf et al. Artificial intelligent classification of biomedical color image using quaternion discrete radial Tchebichef moments
CN113516695A (en) Point cloud registration strategy in laser profilometer flatness measurement
CN109300148B (en) Multi-source image registration method based on method cooperation
CN111382794B (en) Curve similarity calculation method
CN109934283B (en) Self-adaptive moving object detection method integrating CNN and SIFT optical flows
CN111858997A (en) Clothing pattern generation method based on cross-domain matching
CN113902779A (en) Point cloud registration method based on tensor voting method
Lee et al. Comparison of artificial intelligence methods for prediction of mechanical properties
CN113888440A (en) FPGA-based infrared image noise reduction method and system
CN109829502B (en) Image pair efficient dense matching method facing repeated textures and non-rigid deformation
CN112465062A (en) Clustering method based on manifold learning and rank constraint
Zou et al. Shape-based retrieval and analysis of 3D models using fuzzy weighted symmetrical depth images
CN109214269B (en) Human face posture alignment method based on manifold alignment and multi-image embedding
Yu et al. Machine vision problem for fast recognition of surface defects of thermoelectric cooler components based on deep learning method
Balslev et al. Weighted central moments in pattern recognition
CN112396089B (en) Image matching method based on LFGC network and compression excitation module
Sun et al. A robust point set registration approach with multiple effective constraints
CN110399885B (en) Image target classification method based on local geometric perception
Kang et al. Two Dimensional Spectral Representation
CN113707213A (en) Protein-ligand binding site prediction method based on deep learning
CN112529081A (en) Real-time semantic segmentation method based on efficient attention calibration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant