CN102930291B - 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
CN102930291B
CN102930291B CN201210391449.6A CN201210391449A CN102930291B CN 102930291 B CN102930291 B CN 102930291B CN 201210391449 A CN201210391449 A CN 201210391449A CN 102930291 B CN102930291 B CN 102930291B
Authority
CN
China
Prior art keywords
image
chromosome
clustered
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.)
Expired - Fee Related
Application number
CN201210391449.6A
Other languages
Chinese (zh)
Other versions
CN102930291A (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

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

For the local search heredity automatic clustering method of 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 the research object of people to become increasingly complex.Vision is as one of human knowledge and the Main Means observing the world, and its information is enormous amount but also more complicated not only.The spatial relationship of color, shape, texture and things is all etc. the inscape of visual information, can as the starting point of research.Shape is one of most essential characteristic of having under visually-perceptible meaning of object, the research of this respect has become the importance of computer vision and pattern-recognition, and utilizes shape facility to identify things and one of the main tool that also becomes computer vision and pattern identification research of classifying.Shape extracting, form fit etc. is had to the research of shape.Shape extracting extracts shape information exactly from image, and the more famous method of this respect has canny etc., and form fit can be divided into two aspects such as description, coupling.The method having various shape to describe in recent years and to mate is suggested.Shape description method has Shape-based interpolation edge contour, have Shape-based interpolation region etc.These methods all respectively have relative merits.Form fit weighs the similarity between shape according to certain measurement criterion.Man-to-man form fit is without any prior imformation, often can not distinguish important in shape difference that is insignificant, in any case design more excellent shape descriptor, all cannot address this problem, this just needs to design the internal relation that better algorithm goes for similar shape in shape similarity metric space.
Cluster analysis, as one of the important research direction of data mining, its objective is and allow people's identification data concentrate intensive and sparse region, finds the global distributed schema of data, and the mutual relationship between data attribute.Cluster analysis is applied to every field widely, comprises data analysis, image procossing and market analysis, data mining, statistics, machine learning, spatial database technology, biology and the marketing etc.Traditional clustering algorithm, be in advance given cluster numbers, but be unpredictable by the very multidata cluster numbers of many factors in actual life, the during this time effect of automatic cluster highlights, many scholars propose various method, attempt to solve automatic cluster problem.But these methods often also exist defect: algorithm usually can be absorbed in local optimum, can not get correct cluster numbers.Someone utilizes the thought of Gradient Descent to solve automatic cluster problem, and uses it for the cluster of graph image, but this method still also exists above-mentioned said defect, and algorithm is easily absorbed in local optimum, 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 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, by the profile information of shape context method Description Image, by dynamic programming method, procrustes analysis method and the edit distance distance matrix in conjunction with calculating chart image set, the automatic cluster of image is realized by local search heredity automatic cluster algorithm.Its specific implementation step is as follows:
(1) N width image S to be clustered is inputted i, i=1 ..., N, utilizes canny operator to carry out rim detection to every width image respectively, 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 represent the point P sampling and obtain with Cartesian coordinates ij=(x ij, y ij), i=1 ..., N, j=1 ..., M, wherein, P ijrepresent a jth point of the i-th width contour images obtained of sampling, x ij, y ijbe respectively point P ijthe transverse and longitudinal coordinate of position, M is the number of sampled point;
(3) distance between any two width images to be clustered is calculated:
(3a) by 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 to be normalized;
(3b) by normalized Neighbor Points position distribution histogram, χ is used 2statistical method, calculates contour images I ithe Matching power flow matrix of point;
(3c) according to Matching power flow matrix, by dynamic programming method, remove the outlier of two width contour images, obtain the Corresponding matching point of contour images;
(3d) to obtained Corresponding matching point, convert by procrustes analysis method;
(3e) the Corresponding matching point after conversion is converted to character string;
(3f) two image S to be clustered are obtained through step (3a) to (3e) i, S jcharacter string;
(3g) to the image S to be clustered obtained iand S jcharacter string, with the Edit distance E (S between these two character strings of Edit range observation 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 distance d (S of the image to be clustered obtained i, S j), be normalized
(4) evolutionary generation t=0 is made, initialization population:
(4a) random generation ρ is more than or equal to the integer k that 2 are less than or equal to ζ i, i=1 ..., ρ, as the chromosomal cluster numbers of ρ bar, ρ is population scale, and ζ=15 are maximum cluster numbers;
(4b) every bar chromosome is produced at random N number ofly be more than or equal to 1 and be less than or equal to k iinteger c j, j=1 ..., N, as this each gene position B chromosomal jvalue, form this chromosome H i;
(5) all chromosomal fitness value f are calculated i, find out the maximum chromosome of fitness value 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 controling parameters, k iby being calculated chromosomal cluster numbers, d (S k, S h) be image S to be clustered kand S hdistance, n sthe secondary number of image to be clustered contained by 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 s class image to be clustered;
(6) according to obtained chromosomal fitness value f i, with roulette wheel selection to all chromosome H iselect, select to carry out genetic manipulation centre for chromosome H ' i;
(7) to the centre obtained for chromosome H ' i, with probability σ 1, σ 1∈ [0,1] carries out single-point interlace operation;
(8) to centres all after single-point interlace operation for chromosome H " i, with probability σ 2, σ 2∈ [0,1] carries out single-point mutation operation;
(9) calculate after single-point interlace operation all centres for chromosome H " ifitness value f i;
(10) middle for chromosome H to every bar " i, produce random number r, a r ∈ [0,1], if r<0.5, perform step (11), otherwise perform step (12);
(11) to centre for chromosome H " ieach gene position B j, produce random number ψ, ψ ≠ c j, 1≤ψ≤k i, k ifor centre is for chromosome H " icluster numbers, c jfor gene position B jvalue, by gene position B jvalue c jchange ψ into, calculate now for chromosome H " ' ifitness value f i', and with change before centre for chromosome fitness value f irelatively, if f ' i>f i, then gene position B jvalue be set to ψ, perform step (13), otherwise gene position B jvalue be set to c j, perform step (13);
(12) to centre for chromosome H " icarry out k neighbour Local Search:
(12a) by centre for chromosome H " ieach gene position B jcorresponding image S to be clustered j, with other image S to be clustered ldistance d (S j, S l) sort from small to large;
(12b) from sorted distance, front K=5 is chosen apart from corresponding image to be clustered, as K secondary arest neighbors image S ' v;
(12c) to selected K secondary arest neighbors image S ' vcorresponding gene position B v, the number of statistics different genes place value, the gene place value τ finding number maximum, if τ=c j, c jfor image S to be clustered jcorresponding gene position B jvalue, then perform step (13);
(12d) by centre for chromosome H " igene position B jvalue change τ into, calculate now in the middle of for chromosome H " ' ifitness value f " i, for chromosome H in the middle of before changing " ifitness value f iif, f " i>f i, then gene position B jvalue be set to τ, otherwise gene position B jvalue be set to c j;
(13) more all centres are for chromosomal fitness value f ifind out the dyeing that fitness value is maximum, this chromosome is compared with current optimum dyeing body H, if this chromosomal fitness value is greater than the fitness value of current optimum dyeing body H, then by this chromosome replication to current optimum dyeing body H, if the fitness value of current optimum dyeing body H is greater than this chromosomal fitness value, then current optimum dyeing body H is copied to this chromosome;
(14) 1 is added to evolutionary generation t value, if now t is less than maximum evolutionary generation T=100, then return step (6), otherwise, by each gene position B of current optimum dyeing body H ivalue c imake gene position B icorresponding image S to be clustered iclass mark, image to be clustered identical for all class marks is divided into a class, the cluster numbers of the image to be clustered after output category and current optimum dyeing body H.
The present invention compared with prior art has the following advantages:
1, the present invention owing to adding local searching operator after genetic manipulation, therefore can adjust the evolution process of population among a small circle, adds the diversity of population, be conducive to overcoming the defect being absorbed in local optimum, improve the Clustering Effect of image.
2, the present invention carries out Local Search due to the neighbor information according to image, improves the direction of Evolution of Population, accelerates speed of convergence.
Accompanying drawing explanation
Fig. 1 is general flow chart of the present invention;
Fig. 2 is the wherein 4 sub-picture examples in test pattern image set kimia216;
Fig. 3 is with the cluster simulated effect figure of the present invention to 30 sub-pictures in test pattern image set kimia216;
Fig. 4 is to the cluster simulated effect figure of 30 sub-pictures in test pattern image set kimia216 with contrast algorithm.
Embodiment
With reference to Fig. 1, realization of the present invention comprises the steps:
Step one: input N width image S to be clustered i, i=1 ..., N, utilizes canny operator to carry out rim detection to every width image respectively, obtains the contour images I of each image to be clustered i, in this example, N gets 30 but is not limited to 30, canny operator and proposed in 1986 years by John Canny.
Step 2: to each contour images I icarry out uniform sampling along its outline line, and represent the point P sampling and obtain with Cartesian coordinates ij=(x ij, y ij), i=1 ..., N, j=1 ..., M, wherein, P ijrepresent a jth point of the i-th width contour images obtained of sampling, x ij, y ijbe respectively point P ijthe transverse and longitudinal coordinate of position, M=100 is the number of sampled point.
Step 3: calculate the distance between any two width images to be clustered.
3.1) by 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 to be normalized:
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 this logarithmic mean is quantified as b 1individual grade, is quantified as b by average for 360 ° of angles 2individual grade, with point P ijfor initial point, by this b 1× b 2individual grade classification goes out b 1× b 2individual region;
3.1.2) to contour images I ieach point P ij, by all point P except this point ikpolar coordinates P ' is converted to by Cartesian coordinates ik=(r ik, θ ik), then be converted to 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 region " iknumber c l, l=1 ..., b 1× b 2, recycling experience density formula is normalized, and 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) to the Neighbor Points position distribution normalization histogram obtained, according to formulae discovery Matching power flow Matrix C (i, j):
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 Matching power flow matrix obtained, by dynamic programming method, remove the outlier of two width contour images, obtain the Corresponding matching point of contour images, the concrete implementation step of dynamic programming method is shown in that M.R.Daliri and V. Torre was published in the article Robustsymbolic representation for shape recognition and retrieval on Pattern Recognition in 2008.
3.4) to obtained Corresponding matching point, convert by procrustes analysis method, the concrete implementation step of procrustes analsis method is shown in that Mohammad Reza Daliri and Vincent Torre was published in the article Shape and texture clustering:Best estimate for the clustersnumber on Imageand Vision Computing in 2009.
3.5) the Corresponding matching point after conversion is converted to character string, its concrete implementation step is shown in that Mohammad RezaDaliri and Vincent Torre was published in the article Shape andtexture clustering:Best estimate for the clusters number on 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) to the image S to be clustered obtained iand S jcharacter string, with the Edit distance E (S between these two character strings of Edit range observation 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 shown in the article Learning string edit distance that Eric SvenRistad and PeterN.Yianilos delivered on IEEE Trans.PAMI in 1998.
3.8) to the distance d (S of the image to be clustered obtained i, S j), be normalized.
Step 4: make evolutionary generation t=0, initialization population:
4.1) random generation ρ is more than or equal to the integer k that 2 are less than or equal to ζ i, i=1 ..., ρ, as the chromosomal cluster numbers of ρ bar, ρ is population scale, and ζ=15 are maximum cluster numbers.
4.2) every bar chromosome is produced at random N number ofly be more than or equal to 1 and be less than or equal to k iinteger c j, j=1 ..., N, as this each gene position B chromosomal jvalue, form this chromosome H i.
Step 5: calculate all chromosomal fitness value f i, find out the maximum chromosome of fitness value 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 controling parameters, k iby being calculated chromosomal cluster numbers, d (S k, S h) be image S to be clustered kand S hdistance, n sthe secondary number of image to be clustered contained by 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 s class image to be clustered.
Step 6: according to obtained chromosomal fitness value f i, to all chromosome H iselect, select to carry out genetic manipulation centre for chromosome H ' i.
6.1) according to obtained 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 accumulated probability F i;
6.2) random generation ρ number γ j, γ j∈ [0,1], to each random number γ j, find subscript value l, make F l-1< γ j≤ F lset up, by l chromosome H l, copy to middle for chromosome H ' j.
Step 7: to the centre obtained for chromosome, with probability σ 1carry out single-point interlace operation, σ 1∈ [0,1].
The concrete steps of single-point interlace operation are shown in that Ujjwal Maulik and Sanghamitra Bandyopadhyay is published in the article Genetic algorithm-based clustering technique on Pattern Recognition.
Step 8: to centres all after single-point interlace operation for chromosome H " i, with probability σ 2, σ 2∈ [0,1] carries out single-point mutation operation.
The concrete steps of single-point mutation operation are shown in that Ujjwal Maulik and Sanghamitra Bandyopadhyay is published in the article Genetic algorithm-based clustering technique on Pattern Recognition.
Step 9: to calculate after single-point interlace operation all centres for chromosome H " ifitness value f i.
Step 10: middle for chromosome H to every bar " i, produce random number r, a r ∈ [0,1], if r<0.5, perform step 11, otherwise perform step 12.
Step 11: to centre for chromosome H " ieach gene position B j, produce random number ψ, ψ ≠ c j, 1≤ψ≤k i, k ifor centre is for chromosome H " icluster numbers, c jfor gene position B jvalue, by gene position B jvalue c jchange ψ into, calculate now for chromosome H " ' ifitness value f ' i, and with change before centre for chromosome fitness value f irelatively, if f ' i>f i, then gene position B jvalue be set to ψ, perform step 13, otherwise gene position B jvalue be set to c j, perform step 13.
Step 12: to centre for chromosome H " icarry out k neighbour Local Search:
12.1) by centre for chromosome H " ieach gene position B jcorresponding image S to be clustered jwith other image S to be clustered ldistance d (S j, S l), sort from small to large;
12.2) from sorted distance, front K=5 is chosen apart from corresponding image to be clustered, as K secondary arest neighbors image S ' v;
12.3) to selected K secondary arest neighbors image S ' vcorresponding gene position B v, the number of statistics different genes place value, the gene place value τ finding number maximum, if τ=c j, c jfor image S to be clustered jcorresponding gene position B jvalue, then perform step rapid 13;
12.4) by centre for chromosome H " igene position B jvalue change τ into, calculate now in the middle of for chromosome H " ' ifitness value f " i, for chromosome H in the middle of before changing " ifitness value f icompare, if f " i>f i, then gene position B jvalue be set to τ, otherwise gene position B jvalue be set to c j.
Step 13: more all centres are for chromosomal fitness value f ifind out the dyeing that fitness value is maximum, this chromosome is compared with current optimum dyeing body H, if this chromosomal fitness value is greater than the fitness value of current optimum dyeing body H, then by this chromosome replication to current optimum dyeing body H, if the fitness value of current optimum dyeing body H is greater than this chromosomal fitness value, then current optimum dyeing body H is copied to this chromosome.
Step 14: add 1 to evolutionary generation t value, now, if t is less than maximum evolutionary generation T=100, then returns step (6), otherwise, by each gene position B of current optimum dyeing body H ivalue c imake gene position B icorresponding image S to be clustered iclass mark, image to be clustered identical for all class marks is divided into a class, the cluster numbers of the image to be clustered after output category and current optimum dyeing body H.
Effect of the present invention can be further illustrated by following experiment:
1, the image of emulation experiment employing:
The 30 width images that experiment employs in test pattern image set kimia216 are as test pattern, and these images are the obvious bianry image of shape facility, and wherein Fig. 2 is 4 pairs central in test pattern image set kimia216.
2, the optimum configurations condition of emulation experiment:
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, the secondary number K=5 of maximum evolutionary generation T=100, k arest neighbors image, crossover probability σ 1=0.8, mutation probability σ 2=0.2, controling parameters α=0.1.
3, emulation experiment environment:
Be core2 2.4HZ at CPU, internal memory 2G, WINDOWS XP system uses C++ to emulate.
4, content is emulated
Emulation 1
With the present invention and existing shape image clustering algorithm, independently run 20 times, record the cluster numbers of each result, three indexs such as ARI, MS, calculate its average and standard deviation as shown in table 1.
Table 1 the present invention contrasts with the Validity Index of contrast algorithm
As can be seen from Table 1, under three kinds of Validity Indexes, performance of the present invention is all better than contrast algorithm, demonstrates validity of the present invention.
Emulation 2
Carry out cluster with the present invention to 30 sub-pictures in test pattern image set kimia216, obtain the image of cluster result as being positioned at same row in Fig. 3, Fig. 3 and belong to same class, the image being positioned at different rows belongs to inhomogeneity.
Emulation 3
Carry out cluster with contrast algorithm to 30 sub-pictures in test pattern image set kimia216, obtain the image of cluster result as being positioned at same row in Fig. 4, Fig. 4 and belong to same class, the image being positioned at different rows belongs to inhomogeneity.
Can be found out by above-mentioned emulation experiment, the present invention can obtain good Clustering Effect to test pattern.Relatively going up numerically, and relatively the going up of visual effect, verify rationality of the present invention and validity all effectively.
See that Mohammad Reza Daliri and Vincent Torre to be published in the article Shape and texture clustering:Bestestimate for the clustersnumber on Image and Vision Computing in 2009 from the contrast algorithm emulation 1 and emulation 3.

Claims (1)

1., for a local search heredity automatic clustering method for graph image, comprise the steps:
(1) N width image S to be clustered is inputted p, p=1 ..., N, utilizes canny operator to carry out rim detection to every width image respectively, obtains the contour images I of each image to be clustered p;
(2) to each contour images I pcarry out uniform sampling along its outline line, and represent the point P sampling and obtain with Cartesian coordinates pq=(x pq, y pq), p=1 ..., N, q=1 ..., M, wherein, P pqrepresent q point of the p width contour images obtained of sampling, x pq, y pqbe respectively point P pqthe transverse and longitudinal coordinate of position, M is the number of sampled point;
(3) distance between any two width images to be clustered is calculated;
(3a) by shape context method, contour images I is described p1and I p2, obtain the Neighbor Points position distribution histogram of each point of contour images, and histogram be normalized;
(3b) by normalized Neighbor Points position distribution histogram, χ is used 2statistical method, calculates the Matching power flow matrix of point on contour images;
(3c) according to Matching power flow matrix, by dynamic programming method, remove the outlier of two width contour images, obtain the Corresponding matching point of contour images;
(3d) to obtained Corresponding matching point, convert by procrustes analysis method;
(3e) the Corresponding matching point after conversion is converted to character string;
(3f) obtain the character string S of two images to be clustered to (3e) through step (3a) p1and S p2;
(3g) according to the character string of the image to be clustered obtained, the distance between image to be clustered is calculated:
d(S p1,S p2)=λ u×E(S p1,S p2)/L,
Wherein E (S p1, S p2) for image to be clustered character string between Edit distance, λ=1.03 are constant, and u is the outlier number of the contour images of image to be clustered, and L is the length of the character string of image to be clustered;
(3h) to the distance between the image all to be clustered obtained, be normalized;
(4) evolutionary generation t=0 is made, initialization population:
(4a) random generation ρ is more than or equal to the integer k that 2 are less than or equal to ζ i, i=1 ..., ρ, as the chromosomal cluster numbers of ρ bar, ρ=30 are population scale, and ζ=15 are maximum cluster numbers;
(4b) every bar chromosome is produced at random N number ofly be more than or equal to 1 and be less than or equal to k iinteger c j, j=1 ..., N, as this each gene position B chromosomal jvalue, form this chromosome H i;
(5) all chromosomal fitness value f are calculated i 0, find out the maximum chromosome of fitness value as current optimum dyeing body H;
Fitness value f i 0, by following formulae discovery:
f i 0=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 controling parameters, k iby being calculated chromosomal cluster numbers, d (S k, S h) be image S to be clustered kand S hdistance, n sthe secondary number of image to be clustered contained by 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 s class image to be clustered;
(6) according to obtained chromosomal fitness value f i 0, with roulette wheel selection to all chromosome H iselect, select to carry out genetic manipulation centre for chromosome H ' i;
(7) to the centre obtained for chromosome H ' i, with probability σ 1, σ 1∈ [0,1] carries out single-point interlace operation;
(8) to centres all after single-point interlace operation for chromosome H " i, with probability σ 2, σ 2∈ [0,1] carries out single-point mutation operation, obtains the centre after single-point mutation operation for chromosome H i" ';
(9) use step (5) method calculate after single-point mutation operation all centres for chromosome H i" ' fitness value f i;
(10) middle for chromosome H to every bar i" ', produces random number r, a r ∈ [0,1], if r<0.5, performs step (11), otherwise performs step (12);
(11) to centre for chromosome H i" ' each gene position B j, produce random number ψ, ψ ≠ c j, 1≤ψ≤k i', k i' be middle for chromosome H i" ' cluster numbers, c jfor gene position B jvalue, by gene position B jvalue c jchange ψ into, calculate now for chromosome H i" ' fitness value f ' i, and with change before centre for chromosome fitness value f irelatively, if f ' i>f i, then gene position B jvalue be set to ψ, perform step (13), otherwise gene position B jvalue be set to c j, perform step (13);
(12) to centre for chromosome H i" ' carry out k neighbour Local Search:
(12a) by centre for chromosome H i" ' each gene position B jcorresponding image S to be clustered j, with other image S to be clustered ldistance d (S j, S l) sort from small to large;
(12b) from sorted distance, front K=5 is chosen apart from corresponding image to be clustered, as K secondary arest neighbors image S ' v;
(12c) to selected K secondary arest neighbors image S' vcorresponding gene position B v, the number of statistics different genes place value, the gene place value τ finding number maximum, if τ=c j, c jfor image S to be clustered jcorresponding gene position B jvalue, perform step (13);
(12d) by centre for chromosome H i" ' gene position B jvalue change τ into, calculate now in the middle of for chromosome H i" ' fitness value f i", by front to itself and change middle for chromosome H i" ' fitness value f icompare, if f i" >f i, then gene position B jvalue be set to τ, otherwise gene position B jvalue be set to c j;
(13) more all centres are for chromosome H i" ' fitness value f i"; and find out the maximum chromosome of fitness value; compared with current optimum dyeing body H by this chromosome; if this chromosomal fitness value is greater than the fitness value of current optimum dyeing body H; then by this chromosome replication to current optimum dyeing body H; if the fitness value of current optimum dyeing body H is greater than this chromosomal fitness value, then current optimum dyeing body H is copied to this chromosome;
(14) 1 is added to evolutionary generation t value, if now t is less than maximum evolutionary generation T=100, then return step (6), otherwise, by each gene position B of current optimum dyeing body H jvalue c jmake gene position B jcorresponding image S to be clustered jclass mark, image to be clustered identical for all class marks is divided into a class, the cluster numbers of the image to be clustered after output category and current optimum dyeing body H.
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 CN102930291A (en) 2013-02-13
CN102930291B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6548743B2 (en) * 2015-05-22 2019-07-24 華為技術有限公司Huawei Technologies Co.,Ltd. Color calibration apparatus and method
CN105373812B (en) * 2015-12-15 2019-01-25 上海电机学院 Image attributes clustering method based on group genetic algorithm
US10679129B2 (en) * 2017-09-28 2020-06-09 D5Ai Llc Stochastic categorical autoencoder network
CN109784497B (en) * 2019-01-15 2020-12-25 探智立方(北京)科技有限公司 AI model automatic generation method based on computational graph evolution
CN110486630B (en) * 2019-08-20 2020-10-30 西南石油大学 Method for extracting typical characteristics of corrosion defects of natural gas pipeline
CN112584143B (en) * 2020-12-02 2022-09-06 浙江大华技术股份有限公司 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》.2009,第27卷(第10期), *
周叙国,邢汉承."基于遗传模糊C- 均值聚类算法的地图分割".《计算机与数字工程》.2005,第33卷(第6期), *

Also Published As

Publication number Publication date
CN102930291A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
CN108960140B (en) Pedestrian re-identification method based on multi-region feature extraction and fusion
CN102930291B (en) Automatic K adjacent local search heredity clustering method for graphic image
CN106845717B (en) Energy efficiency evaluation method based on multi-model fusion strategy
CN105205501B (en) A kind of weak mark image object detection method of multi classifier combination
CN103456013B (en) A kind of method representing similarity between super-pixel and tolerance super-pixel
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
CN106844739B (en) Remote sensing image change information retrieval method based on neural network collaborative training
CN101140624A (en) Image matching method
CN105930873B (en) A kind of walking across mode matching method certainly based on subspace
CN102346851B (en) Image segmentation method based on NJW (Ng-Jordan-Weiss) spectral clustering mark
CN105046714A (en) Unsupervised image segmentation method based on super pixels and target discovering mechanism
CN102663447A (en) Cross-media searching method based on discrimination correlation analysis
CN109858386A (en) A kind of microalgae cell recognition methods based on fluorescence microscope images
CN104392459A (en) Infrared image segmentation method based on improved FCM (fuzzy C-means) and mean drift
CN102945553A (en) Remote sensing image partition method based on automatic difference clustering algorithm
CN105469117A (en) Image recognition method and device based on robust characteristic extraction
CN105930859B (en) Radar Signal Sorting Method based on linear manifold cluster
CN104966075A (en) Face recognition method and system based on two-dimensional discriminant features
CN106570537A (en) Random forest model selection method based on confusion matrix
CN102163285A (en) Cross-domain video semantic concept detection method based on active learning
CN106611016B (en) A kind of image search method based on decomposable word packet model
CN105046323A (en) Regularization-based RBF network multi-label classification method
CN106778897B (en) Plant species recognition methods twice based on COS distance and center profile distance
CN103714340A (en) Self-adaptation feature extracting method based on image partitioning

Legal Events

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

Granted publication date: 20150408

Termination date: 20201015

CF01 Termination of patent right due to non-payment of annual fee