CN104899607A - Automatic classification method for traditional moire patterns - Google Patents

Automatic classification method for traditional moire patterns Download PDF

Info

Publication number
CN104899607A
CN104899607A CN201510342071.4A CN201510342071A CN104899607A CN 104899607 A CN104899607 A CN 104899607A CN 201510342071 A CN201510342071 A CN 201510342071A CN 104899607 A CN104899607 A CN 104899607A
Authority
CN
China
Prior art keywords
moire
topography
matrix
moire topography
shape context
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
CN201510342071.4A
Other languages
Chinese (zh)
Other versions
CN104899607B (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.)
Huzhou You Yan Intellectual Property Service Co.,Ltd.
Original Assignee
Jiangnan 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 Jiangnan University filed Critical Jiangnan University
Priority to CN201510342071.4A priority Critical patent/CN104899607B/en
Publication of CN104899607A publication Critical patent/CN104899607A/en
Application granted granted Critical
Publication of CN104899607B publication Critical patent/CN104899607B/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/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
    • G06F18/24133Distances to prototypes
    • G06F18/24137Distances to cluster centroïds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides an automatic classification method for traditional moire patterns, mainly solves the problem of low manual classification efficiency of moire patterns, and realizes automatic classification of the moire patterns through moire pattern preprocessing, feature extraction and clustering processing. An implementation process includes the steps of: (1) preprocessing moire images, including three steps of unifying an image size, removing background noise and thinning moire image lines; (2) for shapes between moire images, main features of which are lines, adopting a shape context descriptor (SC) algorithm to extract features of the moire images, and obtaining initial similarity of the moire images through shape context distance; (3) optimizing a similarity matrix through an improved neighbor relation transfer algorithm; and (4) using the optimized similarity matrix as an input matrix of an MEAP algorithm to perform MEAP clustering processing, thereby realizing automatic classification. A clustering result shows that compared with SIFT-MEAP and ED-MEAP algorithms, the automatic classification method provided by the invention is higher in clustering accuracy, and a clustering effect is more ideal. At the same time, the automatic classification algorithm for the moire patterns proposed by the invention has very good reference significance for clustering analysis of other traditional art patterns.

Description

A kind of automatic classification method of traditional moire pattern
Technical field
The invention belongs to cluster analysis, Image Classfication Technology field, relate to moire topography pre-service, Shape context feature extraction, similarity matrix is optimized in neighbor relationships transmission.Specifically a kind of in conjunction with the automatic classification method of neighbor relationships transmission with many subclasses center neighbour's propagation algorithm cluster moire topography of Shape context feature.
Background technology
In Chinese tradition decorative patterns, moire is that long history, sculpture style are extremely abundant, a large class of unique oriental art glamour.Moire stream becomes lively, implied meaning is lucky, the form of expression is various, the change of existing different monomers, there are again all kinds of grafting, continuous print unitized construction, be exactly decorative element important among all kinds of plane and stereo modelling since ancient times, even if to today, with creation, very large reference value still had to contemporary art design.Such as everybody the 2008 Beijing Olympic Games torch be familiar with just have employed auspicious cloud grain pattern as decorative pattern, its moulding derives from the list that Qin period just occurs and hooks cirrus line.Praising highly the today of carrying forward outstanding traditional national culture, the research of traditional art form is being seemed still for important.Wherein, searching tradition design pattern, gather, sort out, analyze, find the national wisdom wherein contained, the artistic speech that meets east aesthetic standards, is for academic research or to enrich Modern Art Design vocabulary all valuable.
The starting point of development of Chinese tradition moire can trace back to the original lira in ancient painted pottery decorative pattern at the Neolithic Age.And the Yun Leiwen on the Spring and Autumn and the Warring States Periods bronze ware is considered to comparatively clear and definite shaping moire the earliest, after experienced by again the procreation transition of the patterns such as cirrus line, thin clouds line, stream moire, cloudlet line, the moire that complies with one's wishes, group's moire, folded moire, shape and freehand brushwork is intended from initial abstract merely developing into, pattern extremely enriches changeable, even the moire of same large class, with the difference of epoch, region, creator, also variform change.Because moire art form is extremely abundant, all kinds of patterns data is vast as the open sea, carry out this research housekeeping only to rely on and manually search, arrange classification, its efficiency is very low, therefore by introducing non-supervisory clustering method, the automatic classification that the basis of research pattern characteristics realizes moire pattern is significant undoubtedly.
The people such as Frey in 2007 propose a kind of clustering algorithm based on Cu Lei center completely newly on science, i.e. AP clustering algorithm (Frey B J: " Clustering by passing messages between data points " [J] .science, 2007,315 (5814): 972-976.), and this algorithm has been carried out cluster research in conjunction with the Euclidean distance between different images pixel to facial image, achieve Clustering Effect more better than k-centers.AP clustering algorithm is used for Caltech101 image in conjunction with SIFT feature cluster analysis by the people such as Frey afterwards, demonstrate and adopt SIFT algorithm to extract feature combinations AP algorithm to carry out image clustering there is certain superiority (Dueck, Frey B J. " Non-metric Affinity Propagation for Unsupervised Image Categorization " [C] //Proc of 11th International Conference on IEEE Computer Vision.Toronto, Canada, 2007:1-8).The people such as Wang Changdong proposed MEAP clustering algorithm in 2013 on PAMI, by the Clustering Model that the Model Extension at AP algorithm Dan Culei center is many subclasses center, and in conjunction with SIFT feature to facial image, the cluster of Aaltech101 image and SceneClass13 is studied, improve clustering precision (Wang C D: " Multi-exemplar affinity propagation " [J] .IEEE Transactions on Pattern Analysis & Machine Intelligence of algorithm process many subclasses image, 2013, 35 (9): 2223-2237).At present, blank is still to the research that the traditional moire pattern of China carries out automatic classification.
Summary of the invention
The present invention uses for reference the achievement in research of the people such as Frey and Wang Changdong, a kind of many subclasses center neighbour's propagation clustering algorithm (neighbor propagation based multi-exemplar affinity propagation transmitted based on neighbor relationships is proposed, NP-MEAP), the automatic classification of moire pattern is realized in conjunction with SC feature extraction algorithm.The object of the invention is to overcome the shortcoming of the unusual poor efficiency of moire topography manual sort, design a kind of unsupervised moire topography automatic classification technology.
Realizing key problem in technology of the present invention is: moire topography pre-service, extract moire topography SC similarity matrix, carry out automatic classification by NP algorithm optimization similarity matrix, finally the employing MEAP propagation clustering algorithm improved.Specific implementation step comprises as follows:
(1) moire topography pre-service, normalization moire topography size, removal ground unrest, the refinement of moire topography lines.
(1a) normalization moire topography size, so both facilitates the unified process of successive image can not change image lines distribution situation simultaneously
(1b) remove ground unrest, also the convenient Mathematical Morphology Method that adopts carries out refinement to image simultaneously.
(1c) moire topography lines refinement, because the stripe shape of inhomogeneity moire topography is different, and the stripe shape basic simlarity of similar moire topography, therefore mainly pay close attention to moire topography stripe shape.
(2) the Shape context similarity matrix of moire topography is extracted
(2a) Shape context algorithm thinks that the object in each image can carry out approximate description with a limited number of discrete point equally distributed in graphic limit, so need extract the borderline discrete point of moire topography.
(2b) its Shape context is calculated for each discrete point.
(2c) the Shape context difference between any two points in two width moire topographies is calculated.
(2d) the tangent angle difference between any two points in two width moire topographies is calculated.
(2e) the Shape context difference in two width moire topographies between any two points and tangent angle difference are organically combined.
(2f) the Shape context distance value between any two width moire topographies is calculated.
(3) the neighbour's pass-algorithm (NP) improved optimizes S scmatrix
(3a) Shape context Distance matrix D is calculated.
(3b) calculate neighbor relationships and transmit threshold epsilon.
(3c) the similarity matrix S between moire topography is calculated.
(3d) neighbor relationships matrix N is calculated.
(3e) neighbor relationships pass-algorithm optimizes similarity matrix.
(4) using the input matrix of the similarity matrix after above-mentioned optimization as MEAP algorithm, by adjustment reference value, obtain correct number of categories, realize the automatic classification of moire topography.
The present invention has carried out pre-service to moire topography, have chosen suitable image characteristics extraction algorithm, based on the thought of manifold learning, the neighbor relationships pass-algorithm improved is adopted to be optimized similarity matrix, finally adopt up-to-date many subclasses center neighbour's propagation clustering algorithm realization automatic classification, fill up the blank of moire topography automatic classification, ensure that the accuracy of moire topography automatic classification simultaneously.
The present invention has the following advantages:
(1) by carrying out pre-service to moire topography, eliminating the impact of picture size, ground unrest, line weight, ensureing that the accuracy of automatic classification does not affect by it.
(2) principal character for moire topography is its stripe shape, have chosen current superior Shape Feature Extraction algorithm, and Shape context descriptor ensures that cluster result is more satisfactory.
(3) to adopt neighbor relationships pass-algorithm to optimize to Shape context similarity matrix the automatic classification accuracy that algorithm is obtained further higher in the present invention, realizes the automatic classification of moire topography.
Accompanying drawing explanation
Fig. 1 is realization flow figure of the present invention;
Fig. 2 is the Clustering Model of MEAP;
Fig. 3 is part moire topography example;
Fig. 4 is the moire topography example after size normalization;
Fig. 5 be binaryzation after moire topography;
Fig. 6 be refinement after moire topography;
Fig. 7 be on moire topography lines extract discrete point schematic diagram;
Fig. 8 is the vectorial schematic diagram that in moire topography, certain point is put to other;
Fig. 9 is six kinds of cirrus print image exemplary plot;
Figure 10 is NP-MEAP and SIFT-MEAP, ED-MEAP moire topography clustering precision contrast schematic diagram;
Figure 11 is that NP-MEAP algorithm is at moire topography upper part cluster result schematic diagram;
Embodiment
One, basic theory introduction
1. more than subclass center neighbour propagation clustering algorithm
MEAP algorithm is a clustering algorithm having two-layer structure, all data objects are distributed to most suitable subclass center by this algorithm as shown in Figure 2, most suitable super cluster class center is given by each subclass central dispense, thus the object of implementation modelization many subclasses problem.
With the AP class of algorithms seemingly, MEAP algorithm is that each data object is set up and the similarity information s (i, j) of other data objects and Connected degree information l (i, j).Algorithm is each data object setting deflection parameter p=s (k, k) with pp=l (k, k) value, the possibility that p and pp is worth the corresponding data object of larger expression subclass center alternatively and super cluster centre is larger, the cluster numbers obtained is more, usually arranges the intermediate value that p and pp value is similarity matrix and Connected degree matrix respectively.The core procedure of MEAP algorithm is the alternating renewal process of 4 classes, 7 formula, and more new formula is as follows:
α i j ← min [ 0 , m a x m ∈ { 1 , ... N } ρ m j + Σ i ′ ∉ { i , j } m a x [ 0 , ρ i ′ j ] ]
α i i ← Σ i ′ ≠ i m a x [ 0 , ρ i ′ i ]
γ k k ← Σ i ′ ≠ i m a x [ 0 , φ i ′ k ]
φ i k ← min [ l i k - m a x m ≠ k [ l i m + γ i m ] , α i i + ρ k i - γ i k ]
i ≠ j ρ i j ← s i j - m a x [ m a x j ′ ∉ { j , i } [ si j ′ + α i j ] , m a x m ∈ { 1 , ... , N } [ l i m + γ i m ] + s i i + α i i ]
γ i k ← m i n [ 0 , φ k k + Σ i ′ ∉ { i , k } m a x [ 0 , φ i ′ k ] ] , k ≠ i
∀ i = 1 , ... , N , k = 1 , ... , Nρ k i ← s i i + l i k - max i ′ ≠ i [ s ii ′ + α ii ′ ] + γ i k
In above-mentioned formula, the concrete meaning of correlation parameter can see document multi-exemplar affinity propagation, and all new variables are all initialized as 0.MEAP algorithm is in whole iteration renewal process, each data object is at war with and automatically produces corresponding subclass center and super cluster class center, other data objects are distributed to nearest subclass center, and subclass center is combined together to form final cluster result by super cluster class center.
Two, the present invention is a kind of conventional cloud print image automatic classification method
With reference to Fig. 1, specific embodiment of the invention process comprises the following steps:
The pre-service of step 1. moire topography
Fig. 3 is multiple moire pattern examples, and the size dimension of the different moire patterns as can be seen from Figure 3 gathered from various data is different, and the thickness of lines differs, and the moire topography that part gathers simultaneously includes gray background noise.Therefore need to carry out pre-service to moire topography, to obtain clustering precision more accurately.
(1.1) size of moire topography is different, first by the size of all image normalizations to 85*45, so both facilitates the unified process of successive image can not change image lines distribution situation simultaneously.Moire topography after normalizing to 85*45 as shown in Figure 4.
(1.2) comprise the problem of ground unrest for moire topography, carry out binary conversion treatment eliminate ground unrest to image, also the convenient Mathematical Morphology Method that adopts carries out refinement to image simultaneously.Adopt Da-Jin algorithm to calculate binary-state threshold, the moire topography after binaryzation as shown in Figure 5.
(1.3) because the stripe shape of inhomogeneity moire topography is different, and the stripe shape basic simlarity of similar moire topography, therefore the present invention mainly pays close attention to moire pattern stripe shape.The different thicknesses of lines and the classification of moire pattern are also uncorrelated, may affect the accuracy of cluster on the contrary, therefore adopt the method for mathematical morphology lines to be refine to the width of a pixel.Moire topography after refinement as shown in Figure 6.
Step 2. calculates the Shape context similarity matrix of moire pattern image set
(2.1) SC algorithm thinks that the object in each image can carry out approximate description with a limited number of discrete point, and these discrete points the key point such as flex point, extreme point needed not be in figure, but equally distributed discrete point in graphic limit.Fig. 7, by moire topography lines after pre-service are extracted discrete point schematic diagram, wherein above arranges the little figure in the rightmost side in b little figure corresponding diagram 6 in little figure, Fig. 7 in the middle of upper row in a little figure corresponding diagram 6 in Fig. 7.As can be seen from Figure 7, the discrete point on moire topography lines can describe corresponding moire pattern stripe shape comparatively accurately, and the frontier point extracted is more, more accurate to the approximate description of pattern.But when the frontier point extracted is too much, then the working time of algorithm can be caused long, usually choose 100-150 frontier point and can describe stripe shape more accurately, the present invention uses n=100 boundary discrete method point to describe stripe shape.
Certain point in two little figure in Fig. 7 is marked with little square frame.To profile point set p={p in Fig. 7 1, p 2..., p n, certain discrete point in n=100, consider the vector arriving other n-1 points from this point, this n-1 vector can describe the shape information of this moire topography more accurately.Be illustrated in figure 8 the discrete point that marks in Fig. 7 to other vector diagram a little.
(2.2) in Fig. 8, each point can to originate in n-1 vectors that this point ends at all the other points and describes, and the vector description that each moire lines are tieed up by n n-1, can obtain every width moire topography thus than more rich feature interpretation matrix.But all calculated to describe moire topography by all these vectors, calculated amount can be very large, and unrealistic.For shape, only know and to calculate on moire topography outline all discrete points relative to the position relationship of this point.Therefore under the rectangular coordinate system at moire lines place being transformed into log-polar system, with discrete point to be calculated for log-polar system round dot, polar coordinate system is equally divided into 12 parts from 0 to 2 π on direction, radius is divided into 5 parts out to 2r by the conversion of log space function from polar coordinates round dot, wherein r is the mean value of data set Euclidean distance, and whole like this polar coordinate system is just divided into 60 parts (bin).Calculate discrete that the point of moire topography is scattering in each bin to count, forms the vector of one 60 dimension, claim this 60 vector tieed up to be the Shape context of corresponding discrete point, i.e. the log-polar histogram of discrete point.Compute histograms formula is as follows:
h i(k)=#{q≠p i:(q-p i)∈bin(k)}
Wherein k represents a kth bin in polar coordinate system, and value is 1 to 60, p ifor the frontier point of histogrammic moire topography to be calculated, q is for removing p iother n-1 frontier point outside point, q-p ifor the number of frontier point in a kth bin.
(2.3) the Shape context difference between any two points in two width moire topographies is calculated, for the frontier point p of in moire topography P iwith frontier point q in moire topography Q j, use mark the Shape context difference of these two points, so computing formula as follows, wherein h i(k) and h jk () represents p respectively iwith q jthe number of frontier point in a kth bin in histogram.
C i j s c = C ( p i , q j ) = 1 2 Σ k = 1 K [ h i ( k ) - h j ( k ) ] 2 h i ( k ) + h j ( k )
(2.4) the tangent angle difference between any two points in two width moire topographies is calculated.Shape context diversity ratio captures the overall difference of different moire discrete point in shape preferably, and in order to make the difference between moire shape discrete point more accurate, add the tangent angle difference of discrete point, formula is as follows, wherein θ iwith θ jbe respectively p iwith q jthe tangent angle at some place.
C i j tan = 0.5 ( 1 - c o s ( θ i - θ j ) )
(2.5) the Shape context difference in two width moire topographies between any two points and tangent angle difference are organically combined, just can measure the Shape context distance between any two points on different moire topography more accurately.Formula is as follows:
C i j = ( 1 - β ) C i j s c + βC i j t a n , β = 0.1
(2.6) the Shape context distance between two width moire topographies is calculated.By above-mentioned formula by calculating the Arbitrary Boundaries point p in moire topography P iwith Arbitrary Boundaries point q in moire topography Q jbetween Shape context distance, obtain the distance matrix of a n*n (n=100), by distance matrix laterally and the mean value of longitudinal minimum value to sue for peace the Shape context distance value obtained between two width moire topographies.Computing formula is as follows:
D s c ( P , Q ) = 1 n Σ i = 1 n arg min j = 1 , ... n C ( p i , q j ) + 1 n Σ j = 1 n arg min i = 1 , ... n C ( p i , q j )
Above-mentioned formula income value is less, and between two width images, difference is less, and similarity is larger, otherwise then similarity is less.Using this value negate as the Shape context similarity measurement between two width images, be designated as S sc(P, Q)=-D sc(P, Q), the Shape context similarity measurement calculated between all images tries to achieve the similarity matrix S of moire pattern image set sc.
Neighbour's pass-algorithm (NP) that step 3. is improved optimizes S scmatrix
(3.1) Shape context Distance matrix D=[d is calculated ij] n × n, this matrix is used for initialization neighbor relationships matrix N hereinafter described, the element d in matrix ijfor the Shape context distance of moire topography i and j, this value gets opposite number for upgrading the similarity matrix S after neighbor relationships transmission success.
(3.2) calculate neighbor relationships and transmit threshold value, note moire topography x ibe d with the distance of its kth Neighbor Points ik, get the mean value of all moire topographies and its kth nearest neighbor distance as threshold value, this threshold value can weaken the impact of noise data to a certain extent, chooses different k values simultaneously neighbor relationships transmission can be made more accurate for different data sets.New threshold formula is defined as follows:
ϵ = m e a n ( Σ i = 1 n d i k )
(3.3) similarity matrix between moire topography is calculated, similarity matrix S=[s ij] n × n, the i-th row jth column element s in matrix ijcomputing formula be defined as follows:
s i j = - d i j γ
D ijfor Shape context distance, amplify the distance between all moire herein by exponential transform, fundamental purpose amplifies the distance on various flows shape between moire topography, thus reduce its similarity.
(3.4) neighbor relationships matrix N is calculated, if the element d in Distance matrix D ijbe less than neighbor relationships and transmit threshold epsilon, so think data object x iwith x jneighbour each other, is expressed as (x i, x j) ∈ R, the neighbor relationships matrix of all moire topographies is tried to achieve in definition thus.Namely as data object x iwith x jeach other during neighbour, so corresponding in matrix element n ijvalue be 1, otherwise value is 0, and diagonal entry is 0.
(3.5) similarity matrix is optimized in neighbor relationships transmission, if i.e. n ij=0, and n ik=1, n kj=1, so n is set ij=1, n ji=1, upgrade s simultaneously ij=s ji=-min (d ik, d kj).
Step 4., using the input matrix executing arithmetic of the similarity matrix after above-mentioned optimization as MEAP algorithm, by adjustment reference value, obtains correct number of categories, realizes the automatic classification of moire topography.
Effect of the present invention further illustrates by following experiment.
1. simulated conditions
The cirrus line resulting from Qin period expands by the abstract hook scroll of Yun Leiwen the combination that circumnutates changing out different structure.Cirrus line is widely used in the incrustation of various implements moulding from period in Spring and Autumn and Warring States to Qin Han dynasty, and bronze ware, lacquerware, beautiful decorations, eaves tile tile carving, picture-weaving in silk embroidery etc. can be seen the cirrus line of various moulding.Cirrus line sculpture style abundant species, decorative effect is various, has consequence in decorative art developing history and Contemporary Design application.
Here select the volume moire pattern of Qin period as the sample patterns of test the inventive method.Data set comprises 230 width moire patterns of 6 types.According to the difference of cirrus line curve shape, be respectively single hook formula cirrus line, cohesive type cirrus line, divergence expression cirrus line, composite type cirrus line, S shape cirrus line, as Italian type cirrus line.Fig. 9 is the example pattern of these 6 kinds of cirrus lines.
In order to verify the present invention put forward feasibility and the validity of algorithm, by the present invention, namely transmit based on neighbour and compare with the MEAP algorithm (NP-MEAP) of SC feature and the MEAP algorithm (SIFT-MEAP) based on SIFT feature and the MEAP algorithm (ED-MEAP) based on Euclidean distance.Whole experimentation, the initial value arranging p and the pp of algorithm is the intermediate value of similarity matrix, ratio of damping lam=0.9, convergent iterations number of times convits=50, maximum cycle maxits=1000, γ=3.Experiment running environment is as follows: processor is Core (TM) i5-3470, dominant frequency 3.2GHz, internal memory 4GB, hard disk 500GB, and operating system is Windows 7 Ultimate 64 bit manipulation system, and programming language is Matlab R2013a.The present invention adopts conventional cluster result evaluation index NMI index and FMI index.
The computing formula of standardization co-information NMI index is as follows:
N M I = 2 Σ l = 1 c Σ l = 1 c ^ n l ( h ) n log n l ( h ) n Σ i = 1 c n i ( h ) Σ i c ^ n i ( i ) H ( π ) + H ( ζ )
H ( π ) = - Σ i = 1 c n i n l o g n i n
H ( ζ ) = - Σ j = 1 c ^ n ( j ) n log n ( j ) n
Wherein π is the class label of clustering algorithm gained bunch class, and ζ is the class label that data set is truly classified, n ih () represents the number of data object in bunch class l and the true h that classifies.H (π) is a bunch Shannon entropy of class label π, and H (ζ) is the Shannon entropy of true tag along sort ζ, n iwith n (j)be respectively the number of sample point in bunch class i and the true j that classifies.The value of NMI is larger, cluster result is described and truly classifies more close.
The computing formula of FMI (Fowlkes-Mallows Index) index is as follows:
F M I = a ( a + b ) ( a + c )
If the cluster result C={c of clustering algorithm 1, c 2..., c mrepresent, the true classification P={p of data set 1, p 2..., p lrepresent.X iand x jfor any two data objects of data centralization.Wherein a is x iand x jthe number of one bunch is belonged in C and P; B is x iand x jin C, belong to same cluster, and in P, belong to the number of different bunches; C is x iand x jin C, belong to different bunches, and in P, belong to the number of same cluster; D is x iand x jthe number of different bunches is belonged to, here a+b+c+d=n (n-1)/2 in C and P.It can thus be appreciated that FMI span is [0,1], and value is larger, and algorithm cluster accuracy rate is higher.
Based on the MEAP algorithm of moire topography SIFT feature after moire topography pre-service, the moire lines of a pixel wide are suitably expanded, when to ensure that stripe shape is constant, make SIFT algorithm more effectively can extract suitable SIFT feature.Based on the MEAP algorithm of Euclidean distance after moire topography pre-service, equally the moire lines of a pixel wide are suitably expanded, simultaneously by the image pixel gray level value before Postprocessing technique to binaryzation, ensure that Euclidean distance can reflect the distance between moire topography more exactly with this.The discrete point that the MEAP algorithm of Shape-based interpolation context and neighbor relationships transmission extracts has certain randomness, thus the discrete point at every turn detected has certain difference, thus the Shape context distance making algorithm once run gained has certain fluctuation, therefore Shape context algorithm is run 20 times, get 20 Shape context distances and as the input of neighbor relationships pass-algorithm, optimize similarity matrix, thus ensure the stability of algorithm.
2. simulation result
The inventive method (NP-MEAP) and ED_MEAP and SIFT_MEAP method are compared.
Figure 10 is the moire topography clustering precision contrast schematic diagram of NP-MEAP and SIFT-MEAP, ED-MEAP, as we can see from the figure, the clustering precision of SIFT-MEAP and ED-MEAP two kinds of algorithms is substantially identical, all can only reach the cluster accuracy of about 40%, it can thus be appreciated that based on SIFT extract moire topography characteristic matching number and all well can not reflect the similarity between moire topography based on the moire topography similarity of negative Euclidean distance.And the cluster accuracy reviewing NP-MEAP can reach more than 80%.For very complicated moire pattern clustering problem, such precision is pretty good, can alleviate working strength and the efficiency of manual sort to a great extent.Simultaneously this similarity matrix also illustrating through the Shape-based interpolation contextual feature of neighbor relationships pass-algorithm optimization can better reflect the similarity between moire topography, and thus Clustering Effect is better.
Figure 11 is NP-MEAP algorithm cluster result schematic diagram on moire topography, and wherein each round rectangle represents a bunch of class, is the image of wrong cluster in corresponding bunch class in each round rectangle by the moire topography of grid mark.

Claims (5)

1. an automatic classification method for traditional moire pattern, comprises the steps:
(1) moire topography pre-service, normalization moire topography size, removal ground unrest, the refinement of moire topography lines.
(1a) normalization moire topography size, so both facilitates the unified process of successive image can not change image lines distribution situation simultaneously
(1b) remove ground unrest, also the convenient Mathematical Morphology Method that adopts carries out refinement to image simultaneously.
(1c) moire topography lines refinement, because the stripe shape of inhomogeneity moire topography is different, and the stripe shape basic simlarity of similar moire topography, therefore mainly pay close attention to moire topography stripe shape.
(2) the Shape context similarity matrix of moire topography is extracted
(2a) Shape context algorithm thinks that the object in each image can carry out approximate description with a limited number of discrete point equally distributed in graphic limit, so need extract the borderline discrete point of moire topography.
(2b) its Shape context is calculated for each discrete point.
(2c) the Shape context difference between any two points in two width moire topographies is calculated.
(2d) the tangent angle difference between any two points in two width moire topographies is calculated.
(2e) the Shape context difference in two width moire topographies between any two points and tangent angle difference are organically combined.
(2f) the Shape context distance value between any two width moire topographies is calculated.
(3) the neighbour's pass-algorithm (NP) improved optimizes S scmatrix
(3a) Shape context Distance matrix D is calculated.
(3b) calculate neighbor relationships and transmit threshold epsilon.
(3c) the similarity matrix S between moire topography is calculated.
(3d) neighbor relationships matrix N is calculated.
(3e) neighbor relationships pass-algorithm optimizes similarity matrix.
(4) using the input matrix of the similarity matrix after above-mentioned optimization as MEAP algorithm, by adjustment reference value, obtain correct number of categories, realize the automatic classification of moire topography.
2. moire topography automatic classification method according to claim 1, wherein step (1a) is carried out according to the following procedure: adopt Da-Jin algorithm computing method moire topography binary-state threshold, in moire topography, pixel is greater than this threshold value, and the pixel value at this some place is set to 0, otherwise is set to 1.
3. moire topography automatic classification method according to claim 1, wherein step (1b) is carried out according to the following procedure: be pixel moire lines by Mathematical Morphology Method by image thinning.
4. moire topography automatic classification method according to claim 1, wherein step (2) is carried out according to the following procedure:
(4.1) extract borderline 100 discrete points of moire topography and carry out approximate description moire topography outline.
(4.2) its Shape context is calculated for each discrete point, under the rectangular coordinate system at moire lines place is transformed into log-polar system, with discrete point to be calculated for log-polar system round dot, polar coordinate system is equally divided into 12 parts from 0 to 2 π on direction, radius is divided into 5 parts out to 2r by the conversion of log space function from polar coordinates round dot, wherein r is the mean value of data set Euclidean distance, and whole like this polar coordinate system is just divided into 60 parts (bin).Calculate discrete that the point of moire topography is scattering in each bins to count, forms the vector of one 60 dimension, claim this 60 vector tieed up to be the Shape context of corresponding discrete point, i.e. the log-polar histogram of discrete point.Compute histograms formula is as follows:
h i(k)=#{q≠p i:(q-p i)∈bin(k)}
Wherein k represents a kth bin in polar coordinate system, and value is 1 to 60, p ifor the frontier point of histogrammic moire topography to be calculated, q is for removing p iother n-1 frontier point outside point, q-p ifor the number of frontier point in a kth bin.
(4.3) the Shape context difference between any two points in two width moire topographies is calculated, for the frontier point p of in moire topography P iwith frontier point q in moire topography Q j, use mark the Shape context difference of these two points, so computing formula as follows, wherein h i(k) and h jk () represents p respectively iwith q jthe number of frontier point in a kth bin in histogram.
C i j s c = C ( p i , q j ) = 1 2 Σ k = 1 K [ h i ( k ) - h j ( k ) ] 2 h i ( k ) + h j ( k )
(4.4) calculate the tangent angle difference between any two points in two width moire topographies, in order to the tangent angle difference making the difference between moire shape more accurately add point, formula is as follows, wherein θ iwith θ jbe respectively p iwith q jthe tangent angle at some place.
C i j tan = 0.5 ( 1 - cos ( θ i - θ j ) )
(4.5) the Shape context difference in two width moire topographies between any two points and tangent angle difference are organically combined, the Shape context distance between any two points on different moire topography can be measured more accurately.Formula is as follows:
C i j = ( 1 - β ) C i j s c + βC i j t a n , β = 0.1
(4.6) the Shape context distance calculated between any two width moire topographies obtains the Shape context similarity matrix of moire topography.By calculating the Arbitrary Boundaries point p in moire topography P iwith Arbitrary Boundaries point q in moire topography Q jbetween Shape context distance, obtain the distance matrix of a n*n (n=100), by distance matrix laterally and the mean value of longitudinal minimum value to sue for peace the Shape context distance value obtained between two width moire topographies.Computing formula is as follows:
D s c ( P , Q ) = 1 n Σ i = 1 n arg min j = 1 , ... n C ( p i , q j ) + 1 n Σ j = 1 n arg min i = 1 , ... n C ( p i , q j )
5. moire topography automatic classification method according to claim 1, wherein step (3) is carried out according to the following procedure:
(5.1) Shape context Distance matrix D=[d is calculated ij] n × n, the element d in matrix ijfor the Shape context distance of moire topography i and j, this value gets opposite number for upgrading the similarity matrix S after neighbor relationships transmission success.
(5.2) calculate neighbor relationships and transmit threshold value, note moire topography x ibe d with the distance of its kth Neighbor Points ik, get the mean value of all moire topographies and its kth nearest neighbor distance as threshold value, threshold formula is defined as follows:
ϵ = m e a n ( Σ i = 1 n d i k )
(5.3) similarity matrix between moire topography is calculated, similarity matrix S=[s ij] n × n, the i-th row jth column element s in matrix ijcomputing formula be defined as follows:
s ij=-d ij γ
D ijfor Shape context distance, amplify the distance between all moire herein by exponential transform, fundamental purpose amplifies the distance on various flows shape between moire topography, thus reduce its similarity.
(5.4) neighbor relationships matrix N is calculated, if the element d in Distance matrix D ijbe less than neighbor relationships and transmit threshold epsilon, so think data object x iwith x jneighbour each other, corresponding matrix element n ijvalue be set to 1, otherwise value is 0, and diagonal entry is 0.
(5.5) similarity matrix is optimized in neighbor relationships transmission, if i.e. n ij=0, and n ik=1, n kj=1, so n is set ij=1, n ji=1, upgrade s simultaneously ij=s ji=-min (d ik, d kj).
CN201510342071.4A 2015-06-18 2015-06-18 A kind of automatic classification method of traditional moire pattern Active CN104899607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510342071.4A CN104899607B (en) 2015-06-18 2015-06-18 A kind of automatic classification method of traditional moire pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510342071.4A CN104899607B (en) 2015-06-18 2015-06-18 A kind of automatic classification method of traditional moire pattern

Publications (2)

Publication Number Publication Date
CN104899607A true CN104899607A (en) 2015-09-09
CN104899607B CN104899607B (en) 2018-01-16

Family

ID=54032261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510342071.4A Active CN104899607B (en) 2015-06-18 2015-06-18 A kind of automatic classification method of traditional moire pattern

Country Status (1)

Country Link
CN (1) CN104899607B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405120A (en) * 2015-10-22 2016-03-16 华北电力大学(保定) Method extracting cloud graph from sky image
CN106778775A (en) * 2016-11-29 2017-05-31 南京邮电大学 A kind of image classification method based on the soft matching of SIFT feature
CN107338662A (en) * 2017-07-28 2017-11-10 辽宁华福实业股份有限公司 3D textile color separation printing processing methods
CN109035277A (en) * 2018-07-13 2018-12-18 沈阳理工大学 Target identification method based on conspicuousness contour feature segment
CN109522478A (en) * 2018-11-09 2019-03-26 广东原昇信息科技有限公司 The unsupervised segmentation method of client properties discretization index
CN111126504A (en) * 2019-12-27 2020-05-08 西北工业大学 Multi-source incomplete information fusion image target classification method
CN112182336A (en) * 2020-10-13 2021-01-05 广西机电职业技术学院 Jing nationality pattern pedigree arrangement classification system
CN117496196A (en) * 2023-11-03 2024-02-02 廊坊市园林绿化事务中心 Garden plant maintenance monitoring method, system, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570972A (en) * 2003-07-23 2005-01-26 西北工业大学 An image retrieval method based on image grain characteristic
US20100067799A1 (en) * 2008-09-17 2010-03-18 Microsoft Corporation Globally invariant radon feature transforms for texture classification
CN104239899A (en) * 2014-09-10 2014-12-24 国家电网公司 Electric transmission line spacer identification method for unmanned aerial vehicle inspection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570972A (en) * 2003-07-23 2005-01-26 西北工业大学 An image retrieval method based on image grain characteristic
US20100067799A1 (en) * 2008-09-17 2010-03-18 Microsoft Corporation Globally invariant radon feature transforms for texture classification
CN104239899A (en) * 2014-09-10 2014-12-24 国家电网公司 Electric transmission line spacer identification method for unmanned aerial vehicle inspection

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
仇权: "形状描述符构建及在商标图像检索中的应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
潘珍: "基于轮廓的形状识别方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
潘鸿飞: "形状特征描述及聚类算法研究", 《中国博士学位论文全文数据库 信息科技辑》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405120A (en) * 2015-10-22 2016-03-16 华北电力大学(保定) Method extracting cloud graph from sky image
CN106778775A (en) * 2016-11-29 2017-05-31 南京邮电大学 A kind of image classification method based on the soft matching of SIFT feature
CN106778775B (en) * 2016-11-29 2020-08-18 南京邮电大学 Image classification method based on SIFT feature soft matching
CN107338662A (en) * 2017-07-28 2017-11-10 辽宁华福实业股份有限公司 3D textile color separation printing processing methods
CN109035277A (en) * 2018-07-13 2018-12-18 沈阳理工大学 Target identification method based on conspicuousness contour feature segment
CN109035277B (en) * 2018-07-13 2022-05-27 沈阳理工大学 Target identification method based on significant contour feature segment
CN109522478A (en) * 2018-11-09 2019-03-26 广东原昇信息科技有限公司 The unsupervised segmentation method of client properties discretization index
CN111126504A (en) * 2019-12-27 2020-05-08 西北工业大学 Multi-source incomplete information fusion image target classification method
CN112182336A (en) * 2020-10-13 2021-01-05 广西机电职业技术学院 Jing nationality pattern pedigree arrangement classification system
CN112182336B (en) * 2020-10-13 2023-05-30 广西机电职业技术学院 Beijing pattern pedigree sorting and classifying system
CN117496196A (en) * 2023-11-03 2024-02-02 廊坊市园林绿化事务中心 Garden plant maintenance monitoring method, system, equipment and medium

Also Published As

Publication number Publication date
CN104899607B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN104899607A (en) Automatic classification method for traditional moire patterns
CN105893968B (en) The unrelated person's handwriting recognition methods end to end of text based on deep learning
CN102201236B (en) Speaker recognition method combining Gaussian mixture model and quantum neural network
CN109063594A (en) Remote sensing images fast target detection method based on YOLOv2
CN100595782C (en) Classification method for syncretizing optical spectrum information and multi-point simulation space information
CN105512289A (en) Image retrieval method based on deep learning and Hash
CN106257498A (en) Zinc flotation work condition state division methods based on isomery textural characteristics
CN108875816A (en) Merge the Active Learning samples selection strategy of Reliability Code and diversity criterion
CN101477529B (en) Three-dimensional object retrieval method and apparatus
CN105608471A (en) Robust transductive label estimation and data classification method and system
CN104268593A (en) Multiple-sparse-representation face recognition method for solving small sample size problem
CN103207879A (en) Method and equipment for generating image index
CN105243139A (en) Deep learning based three-dimensional model retrieval method and retrieval device thereof
CN108665485A (en) A kind of method for tracking target merged with twin convolutional network based on correlation filtering
CN104200240A (en) Sketch retrieval method based on content adaptive Hash encoding
CN109299701A (en) Expand the face age estimation method that more ethnic group features cooperate with selection based on GAN
CN103700089B (en) Extracting and sorting method of multi-scale isomeric features of three-dimensional medical image
CN105184260A (en) Image characteristic extraction method, pedestrian detection method and device
CN101986295B (en) Image clustering method based on manifold sparse coding
CN104298990A (en) Rapid graph matching and recognition method based on skeleton graphs
CN103035239B (en) Speaker recognition method based on partial learning
CN104680178A (en) Image classifying method based on transfer learning multiple attractor cellular automata (MACA)
CN104778475A (en) Image classification method based on maximum frequent visual word of annular region
CN104182771A (en) Time series data graphics analysis method based on automatic coding technology with packet loss
CN107146251A (en) A kind of symmetrical analysis method of three-dimensional face model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Jiang Ming

Inventor after: Chen Leilei

Inventor after: Ge Hongwei

Inventor after: Su Shuzhi

Inventor after: Yang Jinlong

Inventor before: Ge Hongwei

Inventor before: Chen Leilei

Inventor before: Su Shuzhi

Inventor before: Yang Jinlong

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200824

Address after: Room 1,020, Nanxun Science and Technology Pioneering Park, No. 666 Chaoyang Road, Nanxun District, Huzhou City, Zhejiang Province, 313000

Patentee after: Huzhou You Yan Intellectual Property Service Co.,Ltd.

Address before: No. 1800 road 214122 Jiangsu Lihu Binhu District City of Wuxi Province

Patentee before: Jiangnan University