CN103971355A - Digital image noise-proof categorizing technology based on geodesic distance - Google Patents
Digital image noise-proof categorizing technology based on geodesic distance Download PDFInfo
- Publication number
- CN103971355A CN103971355A CN201310036318.0A CN201310036318A CN103971355A CN 103971355 A CN103971355 A CN 103971355A CN 201310036318 A CN201310036318 A CN 201310036318A CN 103971355 A CN103971355 A CN 103971355A
- Authority
- CN
- China
- Prior art keywords
- cluster
- pixel
- distance
- image
- color space
- 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.)
- Pending
Links
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses a digital image noise-proof categorizing technology based on geodesic distance. The technology includes: by an algorithm, properly selecting the initial centers of k categories; in the ith iteration, calculating the similarity of an optional pixel to k centers, and categorizing the pixel to category of the center with the shortest distance; calculating the mean value of each area, and updating clustering centers; if the values of all the k clustering centers are unchanged, stopping iteration, or else continuing iteration. By the technology, the influence of noise can be eliminated effectively to obtain clear cutting effect, the color space and the physical space of an image are combined to allow the pixels of each cluster to be close in color and space, and problems of overcutting and unobvious boundary are solved effectively.
Description
(1) technical field
The present invention relates to digital picture anti-noise sorting technique, belongs to image processing field.
(2) background technology
Image is the source the most intuitively that the mankind obtain objective things information, in information transmission, can bring into play effect unique.Along with high-tech development, Digital Image Processing is applied in the industry-by-industries such as military affairs, meteorology, medical science, traffic more and more.
In order to reduce the error of image processing, need to extract area-of-interest, therefore will be to Image Segmentation Using.It is that piece image is divided into several mutually disjoint subregions that image is cut apart, and the pixel of same subregion inside has some same or analogous characteristic (as gray scale, color, texture etc.).It is a kind of important image processing techniques that image is cut apart, and it is the committed step of being processed graphical analysis by image, in theoretical research and practical operation, is all widely used.
Geodesic distance is a key concept in mathematical morphology, is used for measuring the distance between 2.Different with Euclidean distance, geodesic distance has been considered the connectedness in region.In connected graph, at least exist a circuit can connect A, B 2 points, a shortest geodesic arc being called between A, B in all these lines, the length of geodesic arc is geodesic distance.Geodesic distance utilization be the gradient of figure, along the maximum direction of gradient, 2 connections are obtained to geodesic arc.
K means clustering method (K-means algorithm) is the most classical clustering method based on dividing, and is one of ten communication classics data mining algorithm.Its basic thought is: by space K point centered by carry out cluster, to the most close they object sort out.By the method for iteration, successively upgrade the value of each cluster centre, until obtain best cluster result.
K means clustering algorithm is during successfully application image is cut apart, but also there are several shortcomings in it: the Euclidean distance of (1) original K means clustering algorithm based between pixel, whether adjacently in physical space only consider between pixel, ignored the connectedness between pixel; (2) original K mean algorithm is successfully processed isotropic images, but may occur over-segmentation phenomenon, and can not obtain zone boundary clearly for noisy image.
(3) summary of the invention
The present invention proposes a kind of digital picture anti-noise sorting technique based on geodesic distance, it has considered the physical space of pixel and the distance of color space, can be effectively to the Image Segmentation Using with noise.
For realizing segmentation effect, the present invention adopts following scheme:
Weighting K means clustering algorithm based on geodesic distance is to revise on original K mean cluster basis, each pixel is replaced with geodesic distance to the distance of cluster centre, and it is weighted to amendment, carry out cluster with amended formula, iteration, cuts apart thereby realize image.
Concrete steps of the present invention are:
1. suitably select the initial center of k class;
2. in the i time iteration, to any one pixel, ask its similarity that arrives k center, this pixel is grouped into the class apart from place, Duan center;
3. ask the average in each region, upgrade cluster centre;
4. for all k cluster centre, if value remains unchanged after 2,3, iteration finishes, otherwise continues iteration.
Step 1 looks for k bar line as cluster centre exactly in image to be split, distinguishes k region with this.If this k cluster centre is C=(C
1, C
2... C
k), each cluster centre region is W=(W
1, W
2... W
k), cluster centre C
ithe cluster at place is W
i, k is the number of cluster centre, will be divided into k region.
Step 2 be according to each pixel s in given once step computed image to the similarity of each cluster centre (comprising the distance in similarity and the physical space of color), thereby judge the cluster under each pixel.Calculate this distance and be divided into following steps:
2-1. utilizes the color value of image to carry out color cluster to its pixel, and its step is as follows:
2-1-1. calculates the probability distribution function of each cluster centre region:
P(x|W
i),(i=1,2......k)
2-1-2. calculates each pixel and belongs to W
iprobability:
2-1-3. calculates P
wi(x) gradient:
2-1-4. establishes C
s1, s2(p), p ∈ (0,1) is from a S
1to a S
2at the path of color space, i.e. S
1and S
2communication path, for pixel s, we will find s to arrive each cluster centre C
ithe path of any point c, and calculate the distance in this path by formula below:
Wherein c is C
iin pixel.This formula has been obtained s to each cluster centre C
ithe shortest color distance of each pixel of (i=1,2......k).
This step of 2-1-5. is used for judging the cluster under pixel s in color space.According to following formula obtain s to the color of each cluster apart from U
i(s):
Find and make U
i(s) minimum C
i, we temporarily define pixel s and belong to C
iplace cluster W
i.So far we have obtained the cluster W obtaining taking C as cluster centre, and we define this cluster for (C; W).
The following content of 2-2. is the physical relation of analyzing between pixel.The cluster that color space forms can correspondingly obtain the D of cutting apart in image physical space
i, that is:
D
i={s|s∈U
i},(i=1,2......,k)
For each pixel s, we establish the neighborhood that Nr (s) is s, and this neighborhood can be the square region of r × r centered by s, can be also taking s as the center of circle, the circle that r is radius.
Suppose that the number of pixels in Nr (s) is | Nr (s) |, D
iand in Nr (s) intersecting area except the number of pixels of s is N
i(s) D, not belonging in Nr (s)
ithe number of pixel be n
i(s)=| Nr (s) |-N
i(s)-1.
Formula is below for analyzing the physical relation between pixel:
D
i(s)=2λn
i(s)
Wherein λ is edge weights, and λ=1/r
3
2-3. comprehensive above to pixel and cluster centre in the relation of color space and physical space, draw a pixel s and cluster centre C
irange formula:
Make the minimum C of above distance
ithe cluster W at place
iit is the cluster under s.
Step 3 item is to ask the mean value AVG of pixel in each cluster
i(i=1,2......, k), carries out iteration with this as new cluster centre.
Step 4 item is the variation that there is no pixel value after the iteration of carrying out 2,3 steps, and algorithm finishes, otherwise proceeds 2,3 iteration.
(4) brief description of the drawings
Fig. 1 is schematic flow sheet of the present invention.
(5) embodiment
Below in conjunction with accompanying drawing, the present invention will be further described.
As shown in Fig. 1 process flow diagram, the present invention includes following steps:
1. in image to be split, look for k bar line as cluster centre, cluster centre integrates the (C as C=
1, C
2... C
k), cluster areas integrates the (W as W=
1, W
2... W
k), cluster centre C
ithe cluster at place is W
i, k is the number of cluster centre, will be divided into k region.
2. utilize the color value of image to carry out color cluster to its pixel:
2-1-1. calculates the probability distribution function of each cluster centre region:
P(x|W
i),(i=1,2......k)
2-1-2. calculates each pixel and belongs to cluster W
iprobability:
2-1-3. calculates P
wi(x) gradient:
2-1-4. establishes C
s1, s2(p), p ∈ (0,1) is from a S
1to a S
2at the path of color space, i.e. S
1and S
2communication path, for pixel s, we will find s to arrive each cluster centre C
ithe path of any point c, and calculate the distance in this path by formula below:
Wherein c is C
iin pixel.This formula has been obtained s to each cluster centre C
ithe shortest color distance of each pixel of (i=1,2......k).
This step of 2-1-5. is used for judging the cluster under pixel s in color space.According to following formula obtain s to the color of each cluster apart from U
i(s):
Find and make U
i(s) minimum C
i, we temporarily define pixel s and belong to C
iplace cluster W
i.So far we have obtained the cluster W obtaining taking C as cluster centre, and we define this cluster for (C; W).
The following content of 2-2. is the physical relation of analyzing between pixel.The cluster that color space forms can correspondingly obtain the D of cutting apart in image physical space
i, that is:
D
i={s|s∈U
i},(i=1,2......,k)
For each pixel s, we establish the neighborhood that Nr (s) is s, and this neighborhood can be the square region of r × r centered by s, can be also taking s as the center of circle, the circle that r is radius.
Suppose that the number of pixels in Nr (s) is | Nr (s) |, in Di and Nr (s) intersecting area except the number of pixels of s is N
i(s) D, not belonging in Nr (s)
ithe number of pixel be n
i(s)=| Nr (s) |-N
i(s)-1.
Formula is below for analyzing the physical relation between pixel:
D
i(s)=2λn
i(s)
2-3. comprehensive above to pixel and cluster centre in the relation of color space and physical space, draw a pixel s and cluster centre C
irange formula:
Make the minimum C of above distance
ithe cluster W at place
iit is the cluster under s.
3. ask the mean value AVG of pixel in each cluster
i(i=1,2......, k), carries out iteration with this as new cluster centre.
4. after the iteration of carrying out 2,3 steps, there is no the variation of pixel value, algorithm finishes, otherwise proceeds 2,3 iteration.In sum, the present invention combines color space and the physical space of image, has proposed a kind of digital picture anti-noise sorting technique based on geodesic distance, by the Digital Image Segmentation technology solving with noise.Advantage of the present invention: (1) can eliminate the impact of noise effectively, obtains segmentation effect more clearly; (2) effectively combine color space and the physical space of image, make the pixel in each cluster more approaching on color and space, effectively solved the not obvious problem of over-segmentation and boundary.
Claims (4)
1. the digital picture anti-noise sorting technique based on geodesic distance, has considered the physical space of pixel and the distance of color space, can be effectively to the Image Segmentation Using with noise.
2. a kind of digital picture anti-noise sorting technique based on geodesic distance as claimed in claim 1, mainly comprises following step:
Step 1 is suitably selected the initial center of k class on original image;
Step 2, in the i time iteration, to any one pixel, is asked the similarity at itself and k center, comprising the distance in similarity on color space and physical space, this pixel is grouped into the class at the most similar place, center;
Step 3 is asked the average in each region, is worth renewal cluster centre with this;
Step 4 is for all k cluster centre, if value remains unchanged after step 2,3, iteration finishes, otherwise continues iteration.
3. the digital picture anti-noise sorting technique based on geodesic distance as claimed in claim 2, is characterized in that, in step 1, selects k cluster centre for image, and each cluster centre comprises N Seed Points.
4. the digital picture anti-noise sorting technique based on geodesic distance as claimed in claim 2, is characterized in that, step 2 utilizes the color space of image and physical space information to carry out cluster, is divided into following steps:
(1) calculate image pixel to be split shortest path to each cluster centre on color space, this path distance formula is:
Wherein c is C
iin pixel, C
s, c(p) for some s is to a paths of a c;
Obtain after the distance of point-to-point transmission, continue to obtain s distance U to each cluster in color space
i(s), this range formula is:
Find U
i(s) minimum value, the cluster at temporary transient defining point s place is W
i, so far we have obtained the cluster W obtaining taking C as cluster centre, and we define this cluster for (C; W).
(2) each pixel of image is further optimized, considered the distribution of each pixel in physical space.First color space and physical space are carried out to correspondence, that is: D
i={ s|s ∈ U
i, (i=1,2......, k)
Analyze the physical relation between pixel: D
i(s)=2 λ n
i(s), wherein λ is edge weights, and λ=1/r
3.
(3) cluster based under above-mentioned required point s is in color space and physical space, comprehensive color space and physical space are considered, obtain the cluster under s according to total range formula.Total cluster formula:
This is apart from minimum C
ithe cluster W at place
iit is the cluster under s.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310036318.0A CN103971355A (en) | 2013-01-31 | 2013-01-31 | Digital image noise-proof categorizing technology based on geodesic distance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310036318.0A CN103971355A (en) | 2013-01-31 | 2013-01-31 | Digital image noise-proof categorizing technology based on geodesic distance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103971355A true CN103971355A (en) | 2014-08-06 |
Family
ID=51240804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310036318.0A Pending CN103971355A (en) | 2013-01-31 | 2013-01-31 | Digital image noise-proof categorizing technology based on geodesic distance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103971355A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988646A (en) * | 2015-02-04 | 2016-10-05 | 联咏科技股份有限公司 | Touch panel and electrode configuration method thereof |
US10331257B2 (en) | 2015-01-27 | 2019-06-25 | Novatek Microelectronics Corp. | Touch panel and method for arranging electrodes thereof |
CN112085038A (en) * | 2019-05-27 | 2020-12-15 | 湖北三江航天万峰科技发展有限公司 | High-speed video image processing method and system based on multi-core DSP |
-
2013
- 2013-01-31 CN CN201310036318.0A patent/CN103971355A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10331257B2 (en) | 2015-01-27 | 2019-06-25 | Novatek Microelectronics Corp. | Touch panel and method for arranging electrodes thereof |
CN105988646A (en) * | 2015-02-04 | 2016-10-05 | 联咏科技股份有限公司 | Touch panel and electrode configuration method thereof |
CN105988646B (en) * | 2015-02-04 | 2019-02-19 | 联咏科技股份有限公司 | Touch panel and its electrode layout method |
CN112085038A (en) * | 2019-05-27 | 2020-12-15 | 湖北三江航天万峰科技发展有限公司 | High-speed video image processing method and system based on multi-core DSP |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110033002B (en) | License plate detection method based on multitask cascade convolution neural network | |
CN108768946B (en) | Network intrusion detection method based on random forest algorithm | |
WO2017185963A1 (en) | Big data-based method and terminal for matching trend curve local characteristics | |
CN112508850B (en) | Deep learning-based method for detecting malignant area of thyroid cell pathological section | |
CN108022647B (en) | Lung nodule benign and malignant prediction method based on ResNet-inclusion model | |
CN111160407B (en) | Deep learning target detection method and system | |
CN110766689A (en) | Method and device for detecting article image defects based on convolutional neural network | |
Saha et al. | MRI brain tumor images classification using K-means clustering, NSCT and SVM | |
CN104463199A (en) | Rock fragment size classification method based on multiple features and segmentation recorrection | |
CN110298227A (en) | A kind of vehicle checking method in unmanned plane image based on deep learning | |
CN104899965A (en) | Multi-national paper money serial number identification method based on sorting machine | |
CN109272522B (en) | A kind of image thinning dividing method based on local feature | |
CN107480585A (en) | Object detection method based on DPM algorithms | |
CN101251896B (en) | Object detecting system and method based on multiple classifiers | |
Li et al. | A salt & pepper noise filter based on local and global image information | |
Wang et al. | Panoramic crack detection for steel beam based on structured random forests | |
CN110349167A (en) | A kind of image instance dividing method and device | |
CN109558803B (en) | SAR target identification method based on convolutional neural network and NP criterion | |
CN103020953A (en) | Segmenting method of fingerprint image | |
CN109003275A (en) | The dividing method of weld defect image | |
CN113409267A (en) | Pavement crack detection and segmentation method based on deep learning | |
CN103971355A (en) | Digital image noise-proof categorizing technology based on geodesic distance | |
CN102622761A (en) | Image segmentation method based on similarity interaction mechanism | |
Djunaidi et al. | Gray level co-occurrence matrix feature extraction and histogram in breast cancer classification with ultrasonographic imagery | |
CN109389172B (en) | Radio signal data clustering method based on non-parameter grid |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140806 |