CN102930291A - Automatic K adjacent local search heredity clustering method for graphic image - Google Patents

Automatic K adjacent local search heredity clustering method for graphic image Download PDF

Info

Publication number
CN102930291A
CN102930291A CN2012103914496A CN201210391449A CN102930291A CN 102930291 A CN102930291 A CN 102930291A CN 2012103914496 A CN2012103914496 A CN 2012103914496A CN 201210391449 A CN201210391449 A CN 201210391449A CN 102930291 A CN102930291 A CN 102930291A
Authority
CN
China
Prior art keywords
image
clustered
chromosome
value
point
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
CN2012103914496A
Other languages
Chinese (zh)
Other versions
CN102930291B (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.)
Xidian University
Original Assignee
Xidian 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 Xidian University filed Critical Xidian University
Priority to CN201210391449.6A priority Critical patent/CN102930291B/en
Publication of CN102930291A publication Critical patent/CN102930291A/en
Application granted granted Critical
Publication of CN102930291B publication Critical patent/CN102930291B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses an automatic k adjacent local search heredity clustering method for a graphic image, which mainly overcomes the defect of the conventional automatic clustering algorithm that the local optimization is easy to cause. The automatic k adjacent local search heredity clustering method comprises the realization steps of: (1) detecting an outline of an image by utilizing a canny edge detector; (2) describing the outline of the image by utilizing a shape context method and calculating a matched cost matrix of an outline point; (3) matching the outline point by utilizing a dynamic programming method according to the matched cost matrix; (4) converting the matched outline point by utilizing a procrustes analysis method; (5) representing the converted matched outline point and measuring an edit distance between character strings; (6) calculating the distance between the images according to the edit distance of the character strings; (7) clustering the images by utilizing a heredity automatic clustering method; and (8) carrying out k adjacent local search on groups of a heredity method. The automatic k adjacent local search heredity clustering method for the graphic image has the advantages that overall optimization is easy to achieve and an accurate clustering number can be found out.

Description

The k neighbour Local Search heredity automatic clustering method that is used for graph image
Technical field
The invention belongs to technical field of image processing, can be used for the automatic cluster to the obvious image of shape facility.
Background technology
The development of science and technology impels people's research object to become increasingly complex.Vision is as the human knowledge and observe one of the Main Means in the world, and its information is enormous amount but also more complicated not only.It is the inscape of visual information that the spatial relationship of color, shape, texture and things all waits, and can be used as the starting point of research.Shape is one of essential characteristic of having under the visually-perceptible meaning of object, the research of this respect has become the importance of computer vision and pattern-recognition, and utilizes shape facility things to be identified and one of the main tool that also becomes computer vision and pattern identification research of classifying.Research to shape has shape extracting, form fit etc.Shape extracting extracts shape information exactly from image, the more famous method of this respect has canny etc., and form fit can be divided into two aspects such as description, coupling.There is in recent years the method for various shape description and coupling to be suggested.The shape description method has based on the shape edges profile, have based on shape area etc.These methods all respectively have relative merits.Form fit is weighed similarity between shape according to certain measurement criterion.Man-to-man form fit is without any prior imformation, often can not distinguish important and non-important shape difference, in any case design better shape descriptor, all can't address this problem, this just needs the better algorithm of design to go for the internal relation of similar shape in the shape similarity metric space.
Cluster analysis as one of important research direction of data mining, its objective is to allow people's recognition data concentrate intensive and sparse zone, finds the global distributed schema of data, and the mutual relationship between the data attribute.Cluster analysis has been applied to every field widely, comprises data analysis, image processing and market analysis, data mining, statistics, machine learning, spatial database technology, biology and the marketing etc.Traditional clustering algorithm, shifting to an earlier date given cluster numbers, is unpredictable but be subjected to the very multidata cluster numbers of many factors in the actual life, and the during this time effect of automatic cluster highlights, many scholars have proposed various methods, attempt to solve the automatic cluster problem.But these methods often exist defective: algorithm usually can be absorbed in local optimum, can not get correct cluster numbers.Someone utilizes the thought of Gradient Descent to solve the automatic cluster problem, and uses it for the cluster of graph image, but this method still exists above-mentioned said defective, and algorithm is absorbed in local optimum easily, can not obtain correct cluster numbers.
Summary of the invention
The object of the invention is to for above-mentioned existing technical deficiency, propose a kind of k neighbour Local Search heredity automatic clustering method for graph image, to improve the Clustering Effect of image.
Technical thought of the present invention is: by the profile of canny operator detected image, profile information by shape context method Description Image, by dynamic programming method, procrustes analysis method and the edit distance distance matrix in conjunction with the calculating chart image set, the automatic cluster of image is realized by k neighbour Local Search heredity automatic cluster algorithm.Its specific implementation step is as follows:
(1) input N width of cloth image S to be clustered i, i=1 ..., N utilizes the canny operator respectively every width of cloth image to be carried out rim detection, obtains the contour images I of each image to be clustered i
(2) to each contour images I iCarry out uniform sampling along its outline line, and the point P that represents to sample and obtain with Cartesian coordinates Ij=(x Ij, y Ij), i=1 ..., N, j=1 ..., M, wherein, P IjJ point of the i width of cloth contour images that the expression sampling obtains, x Ij, y IjBe respectively point P IjThe transverse and longitudinal coordinate of position, M are the number of sampled point;
(3) calculate distance between any two width of cloth images to be clustered:
(3a) with shape context method contour images I is described i, obtain contour images I iThe Neighbor Points position distribution histogram of each point, and this histogram carried out normalization;
(3b) with normalized Neighbor Points position distribution histogram, use χ 2Statistical method is calculated contour images I iThe coupling cost matrix of point;
(3c) according to the coupling cost matrix, with dynamic programming method, remove the outlier of two width of cloth contour images, obtain the Corresponding matching point of contour images;
(3d) to resulting Corresponding matching point, carry out conversion with procrustes analysis method;
(3e) point of the Corresponding matching after the conversion is converted to character string;
(3f) obtain two image S to be clustered through step (3a) to (3e) i, S jCharacter string;
(3g) the image S to be clustered to obtaining iAnd S jCharacter string, with the Edit between these two character strings of Edit range observation apart from E (S i, S j), then calculate image S to be clustered iAnd S jBetween distance:
d(S i,S j)=λ u×E(S i,S j)/L,
Wherein λ=1.03 are constant, and u is image S to be clustered iThe outlier number of contour images, L is image S to be clustered iThe length of character string;
(3h) to the image to be clustered that obtains apart from d (S i, S j), carry out normalization
(4) make evolutionary generation t=0, the initialization population:
(4a) produce at random ρ more than or equal to 2 integer k less than or equal to ζ i, i=1 ..., ρ, as the chromosomal cluster numbers of ρ bar, ρ is population scale, ζ=15 are maximum cluster numbers;
(4b) to every chromosome produce at random N more than or equal to 1 less than or equal to k iInteger c j, j=1 ..., N is as this chromosomal each gene position B jValue, form this chromosome H i
(5) calculate all chromosomal fitness value f i, find out the chromosome of fitness value maximum as current optimum dyeing body H, wherein:
f i=1/θ i
θ i = α × k i + 1 k i × Σ s = 1 k i ω s
&omega; s = 2 n s &Sigma; S k , S h , S h &Element; C s , k < h d ( S k , S h ) 2
Wherein, α=0.5 is control parameter, k iBy being calculated chromosomal cluster numbers, d (S k, S h) be image S to be clustered kAnd S hDistance, n sBe the secondary number of the contained image to be clustered of s class cluster image, C sBe the set of s class image to be clustered, S kAnd S hIt is the image to be clustered in the s class image to be clustered;
(6) according to resulting chromosomal fitness value f i, with roulette wheel selection to all chromosome H iSelect, select to carry out genetic manipulation the centre for chromosome H ' i
(7) to the centre that obtains for chromosome H ' i, with probability σ 1, σ 1∈ [0,1] carries out the single-point interlace operation;
(8) to through after the single-point interlace operation in the middle of all for chromosome H " i, with probability σ 2, σ 2∈ [0,1] carries out the single-point mutation operation;
(9) all are middle for chromosome H after the interlace operation of calculating process single-point " iFitness value f i
(10) to every centre for chromosome H " i, produce a random number r, r ∈ [0,1], if r<0.5, execution in step (11), otherwise execution in step (12);
(11) to the centre for chromosome H " iEach gene position B j, produce random number ψ, ψ ≠ c j, 1≤ψ≤k i, k iFor the centre for chromosome H " iCluster numbers, c jBe gene position B jValue, with gene position B jValue c jChange ψ into, calculate middle for chromosome H at this moment " ' iFitness value f i', and with change before the centre for chromosome fitness value f iRelatively, if f ' iF i, gene position B then jValue be set to ψ, execution in step (13), otherwise gene position B jValue be set to c j, execution in step (13);
(12) to the centre for chromosome H " iCarry out k neighbour Local Search:
(12a) with the centre for chromosome H " iEach gene position B jCorresponding image S to be clustered j, with other image S to be clustered lApart from d (S j, S l) sort from small to large;
(12b) from sorted distance, choose front K=5 the corresponding image to be clustered of distance, as the secondary arest neighbors image of K S ' v
(12c) to the secondary arest neighbors image of selected K S ' vCorresponding gene position B v, the number of statistics different genes place value finds the maximum gene place value τ of number, if τ=c j, c jBe image S to be clustered jCorresponding gene position B jValue, execution in step (13) then;
(12d) with the centre for chromosome H " iGene position B jValue change τ into, calculate in the middle of this moment for chromosome H " ' iFitness value f " i, middle for chromosome H before will changing " iFitness value f iIf, f " iF i, gene position B then jValue be set to τ, otherwise gene position B jValue be set to c j
(13) relatively all are middle for chromosomal fitness value f iFind out the dyeing of fitness value maximum, this chromosome and current optimum dyeing body H are compared, if this chromosomal fitness value is greater than the fitness value of current optimum dyeing body H, then this chromosome replication is arrived current optimum dyeing body H, if the fitness value of current optimum dyeing body H greater than this chromosomal fitness value, then copies to this chromosome with current optimum dyeing body H;
(14) evolutionary generation t value is added 1, if t then returns step (6) less than maximum evolutionary generation T=100 at this moment, otherwise, with each gene position B of current optimum dyeing body H iValue c iMake gene position B iCorresponding image S to be clustered iThe class mark, the image to be clustered that all class marks are identical is divided into a class, the cluster numbers of the image to be clustered behind the output category and current optimum dyeing body H.
The present invention compared with prior art has the following advantages:
1, the present invention so can adjust the evolution process of population among a small circle, has increased population diversity owing to add the Local Search operator after genetic manipulation, is conducive to overcome the defective that is absorbed in local optimum, has improved the Clustering Effect of image.
2, the present invention has improved the direction of Evolution of Population owing to carry out Local Search according to the neighbor information of image, has accelerated speed of convergence.
Description of drawings
Fig. 1 is general flow chart of the present invention;
Fig. 2 is the wherein 4 sub-picture examples among the test pattern image set kimia216;
Fig. 3 is with the cluster simulated effect figure of the present invention to 30 sub-pictures among the test pattern image set kimia216;
Fig. 4 is with the cluster simulated effect figure of contrast algorithm to 30 sub-pictures among the test pattern image set kimia216.
Embodiment
With reference to Fig. 1, realization of the present invention comprises the steps:
Step 1: input N width of cloth image S to be clustered i, i=1 ..., N utilizes the canny operator respectively every width of cloth image to be carried out rim detection, obtains the contour images I of each image to be clustered i, N gets 30 but be not limited to 30, canny operator and proposed in 1986 years by John Canny in this example.
Step 2: to each contour images I iCarry out uniform sampling along its outline line, and the point P that represents to sample and obtain with Cartesian coordinates Ij=(x Ij, y Ij), i=1 ..., N, j=1 ..., M, wherein, P IjJ point of the i width of cloth contour images that the expression sampling obtains, x Ij, y IjBe respectively point P IjThe transverse and longitudinal coordinate of position, M=100 are the number of sampled point.
Step 3: calculate the distance between any two width of cloth images to be clustered.
3.1) with shape context method contour images I is described i, obtain contour images I iThe Neighbor Points position distribution histogram of each point, and this histogram carried out normalization:
3.1.1) to contour images I i, calculate the ultimate range between all point
d=max 1≤m<n≤M{||P im-P in||}
| | P im - P in | | = ( x im - x in ) 2 + ( y im - y in ) 2 ,
Ultimate range d is converted to logarithm log (d), and with the b that is quantified as of this logarithmic mean 1Individual grade, with 360 ° of angles average be quantified as b 2Individual grade is with point P IjBe initial point, by this b 1* b 2Individual grade classification goes out b 1* b 2Individual zone;
3.1.2) to contour images I iEach point P Ij, with all the point P except this point IkBe converted to polar coordinates P ' by Cartesian coordinates Ik=(r Ik, θ Ik), be converted to again log-polar P " Ik=(r ' Ik, θ ' Ik), wherein:
r ik = ( x ik - x ij ) 2 + ( y ik - y ij ) 2
&theta; ik = arctan ( y ik - y ij x ik - x ij )
r′ ik=log(r ik)
θ′ ikikO,
&theta; 0 = arctan ( y 0 - y ij x 0 - x ij )
x 0 = 1 M &times; &Sigma; l = 1 M x il
y 0 = 1 M &times; &Sigma; l = 1 M y il
In log-polar system, statistics falls into ready-portioned b 1* b 2Point P in the regional in individual zone " IkNumber c l, l=1 ..., b 1* b 2, recycling experience density formula carries out normalized, obtains point P IjNeighbor Points position distribution normalization histogram h j(s):
h j ( s ) = c s &Sigma; l = 1 b 1 &times; b 2 c l , s=1,…,b 1×b 2
3.2) Neighbor Points position distribution normalization histogram to obtaining, calculate coupling cost matrix C (i, j) according to formula:
C ( i , j ) = 1 2 &Sigma; s = 1 b 1 &times; b 2 [ h i ( s ) - h j ( s ) ] 2 h i ( s ) + h j ( s ) ;
3.3) according to the coupling cost matrix that obtains, with dynamic programming method, remove the outlier of two width of cloth contour images, obtain the Corresponding matching point of contour images, the implementation step of dynamic programming method sees that M.R.Daliri and V. Torre were published in the article Robust symbolic representation for shape recognition and retrieval on the Pattern Recognition in 2008.
3.4) to resulting Corresponding matching point, carry out conversion with procrustes analysis method, the implementation step of procrustes analsis method sees that Mohammad Reza Daliri and Vincent Torre were published in the article Shape and texture clustering:Best estimate for the clusters number on the Image and Vision Computing in 2009.
3.5) point of the Corresponding matching after the conversion is converted to character string, its implementation step sees that Mohammad Reza Daliri and Vincent Torre were published in the article Shape and texture clustering:Best estimate for the clusters number on the Image and Vision Computing in 2009.
3.6) through step 3.1) to 3.5) obtain two image S to be clustered i, S jCharacter string.
3.7) image S to be clustered to obtaining iAnd S jCharacter string, with the Edit between these two character strings of Edit range observation apart from E (S i, S j), then calculate image S to be clustered iAnd S jBetween distance:
d(S i,S j)=λ u×E(S i,S j)/L,
Wherein λ=1.03 are constant, and u is image S to be clustered iThe outlier number of contour images, L is image S to be clustered iThe length of character string.
The measuring process of Edit distance is seen the article Learning string edit distance that Eric SvenRistad and PeterN.Yianilos delivered at IEEE Trans.PAMI in 1998.
3.8) to the image to be clustered that obtains apart from d (S i, S j), carry out normalization.
Step 4: make evolutionary generation t=0, the initialization population:
4.1) produce at random ρ more than or equal to 2 integer k less than or equal to ζ i, i=1 ..., ρ, as the chromosomal cluster numbers of ρ bar, ρ is population scale, ζ=15 are maximum cluster numbers.
4.2) to every chromosome produce at random N more than or equal to 1 less than or equal to k iInteger c j, j=1 ..., N is as this chromosomal each gene position B jValue, form this chromosome H i
Step 5: calculate all chromosomal fitness value f i, find out the chromosome of fitness value maximum as current optimum dyeing body H, wherein:
f i=1/θ i
&theta; i = &alpha; &times; k i + 1 k i &Sigma; s = 1 k i &omega; s
&omega; s = 2 n s &Sigma; S k , S h &Element; C s , k < h d ( S k , S h ) 2
Wherein, α=0.5 is control parameter, k iBy being calculated chromosomal cluster numbers, d (S k, S h) be image S to be clustered kAnd S hDistance, n sBe the secondary number of the contained image to be clustered of s class cluster image, C sBe the set of s class image to be clustered, S kAnd S hIt is the image to be clustered in the s class image to be clustered.
Step 6: according to resulting chromosomal fitness value f i, to all chromosome H iSelect, select to carry out genetic manipulation the centre for chromosome H ' i
6.1) according to resulting chromosomal fitness value f i, pass through formula
F i = &Sigma; s = 1 i f s &Sigma; j = 1 N f j ,
Calculate all chromosomal cumulative probability F i
6.2) produce at random ρ number γ j, γ j∈ [0,1] is to each random number γ j, seek subscript value l, so that F L-1<γ j≤ F lSet up, with l chromosome H l, copy to middle for chromosome H ' j
Step 7: to the centre that obtains for chromosome, with probability σ 1Carry out the single-point interlace operation, σ 1∈ [0,1].
The concrete steps of single-point interlace operation see that Ujjwal Maulik and Sanghamitra Bandyopadhyay are published in the article Genetic algorithm-based clustering technique on the Pattern Recognition.
Step 8: to through after the single-point interlace operation in the middle of all for chromosome H " i, with probability σ 2, σ 2∈ [0,1] carries out the single-point mutation operation.
The concrete steps of single-point mutation operation see that Ujjwal Maulik and Sanghamitra Bandyopadhyay are published in the article Genetic algorithm-based clustering technique on the Pattern Recognition.
Step 9: all are middle for chromosome H after calculating the interlace operation of process single-point " iFitness value f i
Step 10: to every centre for chromosome H " i, produce a random number r, r ∈ [0,1], if r<0.5, execution in step 11, otherwise execution in step 12.
Step 11: to the centre for chromosome H " iEach gene position B j, produce random number ψ, ψ ≠ c j, 1≤ψ≤k i, k iFor the centre for chromosome H " iCluster numbers, c jBe gene position B jValue, with gene position B jValue c jChange ψ into, calculate middle for chromosome H at this moment " ' iFitness value f ' i, and with change before the centre for chromosome fitness value f iRelatively, if f ' iF i, gene position B then jValue be set to ψ, execution in step 13, otherwise gene position B jValue be set to c j, execution in step 13.
Step 12: to the centre for chromosome H " iCarry out k neighbour Local Search:
12.1) with the centre for chromosome H " iEach gene position B jCorresponding image S to be clustered jWith other image S to be clustered lApart from d (S j, S l), sort from small to large;
12.2) from sorted distance, choose front K=5 the corresponding image to be clustered of distance, as the secondary arest neighbors image of K S ' v
12.3) to the secondary arest neighbors image of selected K S ' vCorresponding gene position B v, the number of statistics different genes place value finds the maximum gene place value τ of number, if τ=c j, c jBe image S to be clustered jCorresponding gene position B jValue, then execution in step rapid 13;
12.4) with the centre for chromosome H " iGene position B jValue change τ into, calculate in the middle of this moment for chromosome H " ' iFitness value f " i, middle for chromosome H before will changing " iFitness value f iCompare, if f " iF i, gene position B then jValue be set to τ, otherwise gene position B jValue be set to c j
Step 13: relatively all are middle for chromosomal fitness value f iFind out the dyeing of fitness value maximum, this chromosome and current optimum dyeing body H are compared, if this chromosomal fitness value is greater than the fitness value of current optimum dyeing body H, then this chromosome replication is arrived current optimum dyeing body H, if the fitness value of current optimum dyeing body H greater than this chromosomal fitness value, then copies to this chromosome with current optimum dyeing body H.
Step 14: evolutionary generation t value is added 1, at this moment, if t less than maximum evolutionary generation T=100, then returns step (6), otherwise, with each gene position B of current optimum dyeing body H iValue c iMake gene position B iCorresponding image S to be clustered iThe class mark, the image to be clustered that all class marks are identical is divided into a class, the cluster numbers of the image to be clustered behind the output category and current optimum dyeing body H.
Effect of the present invention can further specify by following experiment:
1, the image of emulation experiment employing:
Experiment has used 30 width of cloth images among the test pattern image set kimia216 as test pattern, and these images are the obvious bianry image of shape facility, and wherein Fig. 2 is 4 pairs in the middle of among the test pattern image set kimia216.
2, the parameter of emulation experiment arranges condition:
Setup parameter is: point number of samples M=100, polar coordinates Neighbor Points position distribution histogram diameter quantized value b 1=5, polar coordinates Neighbor Points position distribution histogram angular quantification value b 2=12, the penalty value 0.5 of dynamic programming method, Edit distance measure penalty value 0.5, Edit distance measure consecutive point number 5, Population Size ρ=30, maximum cluster numbers ζ=15, maximum evolutionary generation T=100, the secondary number K=5 of k arest neighbors image, crossover probability σ 1=0.8, variation probability σ 2=0.2, control parameter alpha=0.1.
3, emulation experiment environment:
Be that core2 2.4HZ, internal memory 2G, WINDOWS XP system use C++ to carry out emulation at CPU.
4, emulation content
Emulation 1
With the present invention and existing shape image clustering algorithm, independent operating is 20 times respectively, records cluster numbers, three indexs such as ARI, MS of each result, and it is as shown in table 1 to calculate its average and standard deviation.
Table 1 the present invention and the contrast of contrast algorithm complexity index
Figure BDA00002258185600101
As can be seen from Table 1, under three kinds of Validity Indexes, performance of the present invention all is better than the contrast algorithm, has proved validity of the present invention.
Emulation 2
With the present invention 30 sub-pictures among the test pattern image set kimia216 are carried out cluster, obtain cluster result such as Fig. 3, the image that is positioned at same row among Fig. 3 belongs to same class, and the image that is positioned at different rows belongs to inhomogeneity.
Emulation 3
With the contrast algorithm 30 sub-pictures among the test pattern image set kimia216 are carried out cluster, obtain cluster result such as Fig. 4, the image that is positioned at same row among Fig. 4 belongs to same class, and the image that is positioned at different rows belongs to inhomogeneity.
Can find out that by above-mentioned emulation experiment the present invention can obtain preferably Clustering Effect to test pattern.Relatively going up numerically, and relatively the going up of visual effect are all verified rationality of the present invention and validity effectively.
Contrast algorithm from emulation 1 and emulation 3 sees that Mohammad Reza Daliri and Vincent Torre were published in the article Shape and texture clustering:Best estimate for the clustersnumber on the Image and Vision Computing in 2009.

Claims (3)

1. a k neighbour Local Search heredity automatic clustering method that is used for graph image comprises the steps:
(1) input N width of cloth image S to be clustered i, i=1 ..., N utilizes the canny operator respectively every width of cloth image to be carried out rim detection, obtains the contour images I of each image to be clustered i
(2) to each contour images I iCarry out uniform sampling along its outline line, and the point P that represents to sample and obtain with Cartesian coordinates Ij=(x Ij, y Ij), i=1 ..., N, j=1 ..., M, wherein, P IjJ point of the i width of cloth contour images that the expression sampling obtains, x Ij, y IjBe respectively point P IjThe transverse and longitudinal coordinate of position, M are the number of sampled point;
(3) calculate distance between any two width of cloth images to be clustered;
(4) make evolutionary generation t=0, the initialization population:
(4a) produce at random ρ more than or equal to 2 integer k less than or equal to ζ i, i=1 ..., ρ, as the chromosomal cluster numbers of ρ bar, ρ=30 are population scale, ζ=15 are maximum cluster numbers;
(4b) to every chromosome produce at random N more than or equal to 1 less than or equal to k iInteger c j, j=1 ..., N is as this chromosomal each gene position B jValue, form this chromosome H i
(5) calculate all chromosomal fitness value f i, find out the chromosome of fitness value maximum as current optimum dyeing body H;
(6) according to resulting chromosomal fitness value f i, with roulette wheel selection to all chromosome H iSelect, select to carry out genetic manipulation the centre for chromosome H ' i
(7) to the centre that obtains for chromosome H ' i, with probability σ 1, σ 1∈ [0,1] carries out the single-point interlace operation;
(8) to through after the single-point interlace operation in the middle of all for chromosome H " i, with probability σ 2, σ 2∈ [0,1] carries out the single-point mutation operation;
(9) all are middle for chromosome H after the interlace operation of calculating process single-point " iFitness value f i
(10) to every centre for chromosome H " i, produce a random number r, r ∈ [0,1], if r<0.5, execution in step (11), otherwise execution in step (12);
(11) to the centre for chromosome H " iEach gene position B j, produce random number ψ, ψ ≠ c j, 1≤ψ≤k i, k iFor the centre for chromosome H " iCluster numbers, c jBe gene position B jValue, with gene position B jValue c jChange ψ into, calculate middle for chromosome H at this moment " ' iFitness value f ' i, and with change before the centre for chromosome fitness value f iRelatively, if f ' iF i, gene position B then jValue be set to ψ, execution in step (13), otherwise gene position B jValue be set to c j, execution in step (13);
(12) to the centre for chromosome H " iCarry out k neighbour Local Search:
(12a) with the centre for chromosome H " iEach gene position B jCorresponding image S to be clustered j, with other image S to be clustered lApart from d (S j, S l) sort from small to large;
(12b) from sorted distance, choose front K=5 the corresponding image to be clustered of distance, as the secondary arest neighbors image of K S ' v
(12c) to the secondary arest neighbors image of selected K S ' vCorresponding gene position B v, the number of statistics different genes place value finds the maximum gene place value τ of number, if τ=c j, c jBe image S to be clustered jCorresponding gene position B jValue, execution in step (13) then;
(12d) with the centre for chromosome H " iGene position B jValue change τ into, calculate in the middle of this moment for chromosome H " ' iFitness value f " i, middle for chromosome H before will changing " iFitness value f iIf, f " iF i, gene position B then jValue be set to τ, otherwise gene position B jValue be set to c j
(13) relatively all are middle for chromosomal fitness value f iFind out the dyeing of fitness value maximum, this chromosome and current optimum dyeing body H are compared, if this chromosomal fitness value is greater than the fitness value of current optimum dyeing body H, then this chromosome replication is arrived current optimum dyeing body H, if the fitness value of current optimum dyeing body H greater than this chromosomal fitness value, then copies to this chromosome with current optimum dyeing body H;
(14) evolutionary generation t value is added 1, if t then returns step (6) less than maximum evolutionary generation T=100 at this moment, otherwise, with each gene position B of current optimum dyeing body H iValue c iMake gene position B iCorresponding image S to be clustered iThe class mark, the image to be clustered that all class marks are identical is divided into a class, the cluster numbers of the image to be clustered behind the output category and current optimum dyeing body H.
2. the k neighbour Local Search heredity automatic clustering method for graph image according to claim 1, the distance between the described calculating of step (3) any two width of cloth images to be clustered wherein, carry out as follows:
(3a) with shape context method contour images I is described i, obtain contour images I iThe Neighbor Points position distribution histogram of each point, and this histogram carried out normalization;
(3b) with normalized Neighbor Points position distribution histogram, use χ 2Statistical method is calculated contour images I iThe coupling cost matrix of point;
(3c) according to the coupling cost matrix, with dynamic programming method, remove the outlier of two width of cloth contour images, obtain the Corresponding matching point of contour images;
(3d) to resulting Corresponding matching point, carry out conversion with procrustes analysis method;
(3e) point of the Corresponding matching after the conversion is converted to character string;
(3f) obtain two image S to be clustered through step (3a) to (3e) iAnd S jCharacter string;
(3g) according to the image S to be clustered that obtains iAnd S jCharacter string, calculate image S to be clustered iAnd S jBetween distance:
d(S i,S j)=λ u×E(S i,S j)/L,
E (S wherein i, S j) be image S to be clustered iAnd S jCharacter string between the Edit distance, λ=1.03 are constant, u is image S to be clustered iThe outlier number of contour images, L is image S to be clustered iThe length of character string;
(3h) to the distance between all images to be clustered that obtain, carry out normalization.
3. the heredity of k neighbour Local Search automatic clustering method, wherein all chromosomal fitness value f of the described calculating of step (5) for graph image according to claim 1 i, calculate by following formula:
f i=1/θ i
&theta; i = &alpha; &times; k i + 1 k i &times; &Sigma; s = 1 k i &omega; s
&omega; s = 2 n s &Sigma; S k , S h &Element; C s , k < h d ( S k , S h ) 2
Wherein, α=0.5 is control parameter, k iBy being calculated chromosomal cluster numbers, d (S k, S h) be image S to be clustered kAnd S hDistance, n sBe the secondary number of the contained image to be clustered of s class cluster image, C sBe the set of s class image to be clustered, S kAnd S hIt is the image to be clustered in the s class image to be clustered.
CN201210391449.6A 2012-10-15 2012-10-15 Automatic K adjacent local search heredity clustering method for graphic image Expired - Fee Related CN102930291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210391449.6A CN102930291B (en) 2012-10-15 2012-10-15 Automatic K adjacent local search heredity clustering method for graphic image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210391449.6A CN102930291B (en) 2012-10-15 2012-10-15 Automatic K adjacent local search heredity clustering method for graphic image

Publications (2)

Publication Number Publication Date
CN102930291A true CN102930291A (en) 2013-02-13
CN102930291B CN102930291B (en) 2015-04-08

Family

ID=47645088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210391449.6A Expired - Fee Related CN102930291B (en) 2012-10-15 2012-10-15 Automatic K adjacent local search heredity clustering method for graphic image

Country Status (1)

Country Link
CN (1) CN102930291B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373812A (en) * 2015-12-15 2016-03-02 上海电机学院 Grouping genetic algorithm based image attribute clustering method
CN107209931A (en) * 2015-05-22 2017-09-26 华为技术有限公司 Color correction device and method
CN109784497A (en) * 2019-01-15 2019-05-21 探智立方(北京)科技有限公司 Based on the method for calculating the AI auto-building model that figure is evolved
CN110486630A (en) * 2019-08-20 2019-11-22 西南石油大学 Natural gas line corrosion default characteristic feature extracting method
CN111226236A (en) * 2017-09-28 2020-06-02 D5Ai有限责任公司 Multi-target generator in deep learning
CN112584143A (en) * 2020-12-02 2021-03-30 浙江大华技术股份有限公司 Video coding method, device and system and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426697A (en) * 2011-10-24 2012-04-25 西安电子科技大学 Image segmentation method based on genetic rough set C-mean clustering

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426697A (en) * 2011-10-24 2012-04-25 西安电子科技大学 Image segmentation method based on genetic rough set C-mean clustering

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MOHAMMAD REZA DALIRI,VINCENT TORRE: ""Shape and texture clustering: Best estimate for the clusters number"", 《IMAGE AND VISION COMPUTING》 *
周叙国,邢汉承: ""基于遗传模糊C- 均值聚类算法的地图分割"", 《计算机与数字工程》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107209931A (en) * 2015-05-22 2017-09-26 华为技术有限公司 Color correction device and method
CN107209931B (en) * 2015-05-22 2020-03-10 华为技术有限公司 Color correction apparatus and method
CN105373812A (en) * 2015-12-15 2016-03-02 上海电机学院 Grouping genetic algorithm based image attribute clustering method
CN105373812B (en) * 2015-12-15 2019-01-25 上海电机学院 Image attributes clustering method based on group genetic algorithm
CN111226236A (en) * 2017-09-28 2020-06-02 D5Ai有限责任公司 Multi-target generator in deep learning
CN109784497A (en) * 2019-01-15 2019-05-21 探智立方(北京)科技有限公司 Based on the method for calculating the AI auto-building model that figure is evolved
CN109784497B (en) * 2019-01-15 2020-12-25 探智立方(北京)科技有限公司 AI model automatic generation method based on computational graph evolution
CN110486630A (en) * 2019-08-20 2019-11-22 西南石油大学 Natural gas line corrosion default characteristic feature extracting method
CN112584143A (en) * 2020-12-02 2021-03-30 浙江大华技术股份有限公司 Video coding method, device and system and computer readable storage medium
CN112584143B (en) * 2020-12-02 2022-09-06 浙江大华技术股份有限公司 Video coding method, device and system and computer readable storage medium

Also Published As

Publication number Publication date
CN102930291B (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN102930291B (en) Automatic K adjacent local search heredity clustering method for graphic image
CN104931960B (en) Trend message and radar target situation information full flight path segment data correlating method
CN105205501B (en) A kind of weak mark image object detection method of multi classifier combination
CN103325122B (en) Based on the pedestrian retrieval method of Bidirectional sort
CN107506703A (en) A kind of pedestrian&#39;s recognition methods again for learning and reordering based on unsupervised Local Metric
CN104573744B (en) Fine granulation classification identifies and the part of object positions and feature extracting method
CN101751666A (en) Semi-supervised multi-spectral remote sensing image segmentation method based on spectral clustering
CN106021603A (en) Garment image retrieval method based on segmentation and feature matching
CN101140624A (en) Image matching method
CN103366160A (en) Objectionable image distinguishing method integrating skin color, face and sensitive position detection
CN102663401B (en) Image characteristic extracting and describing method
CN106844739B (en) Remote sensing image change information retrieval method based on neural network collaborative training
CN102346851B (en) Image segmentation method based on NJW (Ng-Jordan-Weiss) spectral clustering mark
CN101930549A (en) Second generation curvelet transform-based static human detection method
CN109858386A (en) A kind of microalgae cell recognition methods based on fluorescence microscope images
CN105005798A (en) Target recognition method based on collecting and matching local similar structure
CN105469117A (en) Image recognition method and device based on robust characteristic extraction
CN104966075A (en) Face recognition method and system based on two-dimensional discriminant features
CN101251896A (en) Object detecting system and method based on multiple classifiers
CN106570537A (en) Random forest model selection method based on confusion matrix
CN106778897B (en) Plant species recognition methods twice based on COS distance and center profile distance
CN105069471A (en) Hyperspectral data subspace projection and classification method based on fuzzy label
CN104835174A (en) Robustness model fitting method based on supermap mode search
CN105023239B (en) The high-spectral data dimension reduction method being distributed based on super-pixel and maximum boundary
CN103093239B (en) A kind of merged point to neighborhood information build drawing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150408

Termination date: 20201015