CN104504681A - Threshold image segmentation method with minimal clustering distortion - Google Patents
Threshold image segmentation method with minimal clustering distortion Download PDFInfo
- Publication number
- CN104504681A CN104504681A CN201410685202.4A CN201410685202A CN104504681A CN 104504681 A CN104504681 A CN 104504681A CN 201410685202 A CN201410685202 A CN 201410685202A CN 104504681 A CN104504681 A CN 104504681A
- Authority
- CN
- China
- Prior art keywords
- segmentation
- image
- pixel
- distortion
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
Abstract
The invention discloses a threshold segmentation method with minimal clustering distortion. Firstly, according to the set threshold, the image is segmented into a target part and a background part; then, the sum of the value clustering segmentation distortion in the target part and the background part is calculated when segmentation is carried out according to the set threshold; and the above process is repeated on all gray levels of the image, and the gray level corresponding to the minimal sum of the segmentation distortion is found out to be the evaluated threshold. When the method of the invention is adopted, segmentation is more accurate to carry out, and the segmentation distortion is minimal.
Description
Technical field
The invention belongs to technical field of image processing, be specifically related to the threshold image segmentation method that a kind of cluster degree of distortion is minimum;
Background technology
Iamge Segmentation is an important basic technology in image procossing, and range of application is very extensive; The target of Iamge Segmentation is target area and the background area of segmentation image, to make the subsequent treatment such as further target identification, tracking; Therefore researchers propose various image partition method, and the image partition method wherein based on threshold value is intuitively a kind of and effective image partition method; Ostu algorithm is the classical threshold method of one proposed in 1979 by Japanese scholars Otsu the earliest, the effect stable due to it and being used widely; This algorithm is according to the one dimension grey level histogram of image, and exhaustive search makes pixel be divided into target and background two class, is one dimension threshold value when inter-class variance is maximum; But the image in the face of varying, Ostu algorithm can't all obtain desirable result in all cases, as when the variance within clusters difference of two classes is larger, a sector of breakdown pixel large for variance within clusters by a class large for deflection variance within clusters, thus is divided in the little class of variance within clusters by the segmentation threshold of Otsu method;
Summary of the invention
To be solved by this invention is the undesirable problem of conventional images dividing method effect, provides the threshold image segmentation method that a kind of cluster degree of distortion is minimum;
For solving the problem, the present invention is achieved by the following technical solutions:
The threshold image segmentation method that cluster degree of distortion is minimum, comprises the steps:
Step 1, reads in image, obtains the histogram of image; If in image, the gray scale value of pixel is [0,1 ..., L-1], statistics gray-scale value is the pixel frequency n of i
i, i=0,1 ..., L-1;
Step 2, from gray scale span [0,1 ..., L-1] in get each gray-scale value successively as segmentation threshold point T, and following steps are repeated to each segmentation threshold point T:
Step 2.1, is divided into two classes according to the above-mentioned segmentation threshold point T chosen by image, that is: be that the pixel of [0, T] forms target class C by gray scale
0, be that the pixel of [T+1, L-1] forms background classes C by gray scale
1;
Step 2.2, calculates target class C respectively
0interior total pixel number N
0with background classes C
1interior total pixel number N
1, wherein
Step 2.3, calculates target class C respectively
0cluster centre point M
0with background classes C
1cluster centre point M
1, wherein
M
0∈ (0, T) and meet
With
③
M
1∈ (T+1, L-1) and meet
With
④
Step 2.4, calculates target class C respectively
0each pixel is to class center M
0euclidean distance and S
0with background classes C
1each pixel is to class center M
1euclidean distance and S
1, wherein
Step 2.5, calculates when carrying out cluster with segmentation threshold point T, the cluster degree of distortion D that target and background is total
t, wherein
D
T=S
0+S
1⑦
Step 3, finds out cluster degree of distortion D
tfor segmentation threshold corresponding during minimum value point T, then this segmentation threshold point T is required final segmentation threshold point.
Compared with prior art, first image is divided into target and background two class by cluster by the present invention, is required threshold value when all pixels are minimum to the Euclidean distance summation at respective class center; Because the present invention adopts the method for exhaustion to obtain global optimum's cluster degree of distortion, thus make the probability of wrong point greatly reduce, image segmentation is also better.
Accompanying drawing explanation
Fig. 1-1 ~ Fig. 1-3 is followed successively by the original graph of Ms's image, classical Ostu segmentation effect figure and segmentation effect figure of the present invention.
Fig. 2-1 ~ Fig. 2-3 is followed successively by the original graph of tire image, classical Ostu segmentation effect figure and segmentation effect figure of the present invention.
Embodiment
The threshold image segmentation method that cluster degree of distortion is minimum, comprises the steps:
Step 1, reads in image, obtains the histogram of image.If the gray shade scale of piece image f is L, then in image the gray scale value of pixel be [0,1 ..., L-1], statistics gray-scale value is the pixel frequency n of i
i, i=0,1 ..., L-1.In above-mentioned gray scale span [0,1 ..., L-1] all gray-scale values are positive integer.
Step 2, from gray scale span [0,1 ..., L-1] in get each gray-scale value successively as segmentation threshold point T, and following steps are repeated to each segmentation threshold point T:
Step 2.1, is divided into two classes according to the above-mentioned segmentation threshold point T chosen by image, that is: be that the pixel of [0, T] forms target class by gray scale, be designated as C
0, be that the pixel of [T+1, L-1] forms background classes by gray scale, be designated as C
1;
Step 2.2, calculates target class C respectively
0interior total pixel number N
0with background classes C
1interior total pixel number N
1, wherein
Step 2.3, calculates target class C respectively
0cluster centre point M
0with background classes C
1cluster centre point M
1, wherein
M
0∈ (0, T) and meet
With
③
M
1∈ (T+1, L-1) and meet
With
④
Step 2.4, calculates target class C respectively
0each pixel is to class center M
0euclidean distance and S
0with background classes C
1each pixel is to class center M
1euclidean distance and S
1, wherein
Step 2.5, calculates when carrying out cluster with segmentation threshold point T, the cluster degree of distortion D that target and background is total
t, wherein
D
T=S
0+S
1⑦
Step 3, finds out cluster degree of distortion D
t=D
minfor segmentation threshold corresponding during minimum value point T=T
0, then this segmentation threshold point is required final segmentation threshold point.
Adopt Ms's image and tire image to carry out segmentation effect to the present invention with classical Ostu method below to compare; Fig. 1-1 and Fig. 2-1 is original image, Fig. 1-2 and Fig. 2-2 is segmentation result of the present invention, and Fig. 1-3 and Fig. 2-3 is classical Ostu method segmentation result; As can be seen from the contrast of Fig. 1-2 and Fig. 1-3, the present invention is more accurate with finger segmentation for the right hand wrist of Ms, the complete profile remaining wrist and finger; Left hand segmentation for Ms is also more excellent than classical Ostu method, and left index finger and the wrist of the present invention's segmentation are more complete; The inventive method can be clearly seen that the necklace on this Ms's neck in addition, and classical Ostu method loses the integrity profile of necklace; Also similar conclusion can be drawn: the bead seat that the present invention is split is round, and edge thickness maintains unanimously from Fig. 2-2 and the contrast of Fig. 2-3; And it is clearer and accurate for the air strike segmentation on profile.
Claims (1)
1. the threshold image segmentation method that cluster degree of distortion is minimum, is characterized in that comprising the steps:
Step 1, reads in image, obtains the histogram of image; If in image, the gray scale value of pixel is [0,1 ..., L-1], statistics gray-scale value is the pixel frequency n of i
i, i=0,1 ..., L-1;
Step 2, from gray scale span [0,1 ..., L-1] in get each gray-scale value successively as segmentation threshold point T, and following steps are repeated to each segmentation threshold point T:
Step 2.1, is divided into two classes according to the above-mentioned segmentation threshold point T chosen by image, and the pixel being [0, T] by gray scale forms target class C
0, be that the pixel of [T+1, L-1] forms background classes C by gray scale
1;
Step 2.2, calculates target class C respectively
0interior total pixel number N
0with background classes C
1interior total pixel number N
1;
Step 2.3, calculates target class C respectively
0cluster centre point M
0with background classes C
1cluster centre point M
1;
Step 2.4, calculates target class C respectively
0each pixel is to class center M
0euclidean distance and S
0with background classes C
1each pixel is to class center M
1euclidean distance and S
1;
Step 2.5, calculates when carrying out cluster with segmentation threshold point T, the cluster degree of distortion D that target and background is total
t;
Step 3, finds out cluster degree of distortion D
tfor segmentation threshold corresponding during minimum value point T, then this segmentation threshold point T is required final segmentation threshold point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410685202.4A CN104504681A (en) | 2014-11-25 | 2014-11-25 | Threshold image segmentation method with minimal clustering distortion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410685202.4A CN104504681A (en) | 2014-11-25 | 2014-11-25 | Threshold image segmentation method with minimal clustering distortion |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104504681A true CN104504681A (en) | 2015-04-08 |
Family
ID=52946075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410685202.4A Pending CN104504681A (en) | 2014-11-25 | 2014-11-25 | Threshold image segmentation method with minimal clustering distortion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104504681A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109712160A (en) * | 2018-12-26 | 2019-05-03 | 桂林电子科技大学 | Improved lion group algorithm is combined to realize carrying out image threshold segmentation method based on generalized entropy |
US11893747B2 (en) | 2020-07-02 | 2024-02-06 | Coretronic Corporation | Image segmentation method and electronic device |
-
2014
- 2014-11-25 CN CN201410685202.4A patent/CN104504681A/en active Pending
Non-Patent Citations (1)
Title |
---|
陈利霞: "基于PDE的图像恢复模型和图像增强与分割算法研究", 《中国博士学位论文全文数据库 基础科学辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109712160A (en) * | 2018-12-26 | 2019-05-03 | 桂林电子科技大学 | Improved lion group algorithm is combined to realize carrying out image threshold segmentation method based on generalized entropy |
CN109712160B (en) * | 2018-12-26 | 2023-05-23 | 桂林电子科技大学 | Method for realizing image threshold segmentation based on generalized entropy combined improved lion group algorithm |
US11893747B2 (en) | 2020-07-02 | 2024-02-06 | Coretronic Corporation | Image segmentation method and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10990835B2 (en) | Road sign recognition method and system | |
CN112424828B (en) | Nuclear fuzzy C-means quick clustering algorithm integrating space constraint | |
CN108154118B (en) | A kind of target detection system and method based on adaptive combined filter and multistage detection | |
CN103606137B (en) | Keep the histogram equalization method of background and detailed information | |
CN102663426B (en) | Face identification method based on wavelet multi-scale analysis and local binary pattern | |
CN101526994B (en) | Fingerprint image segmentation method irrelevant to collecting device | |
CN105184772A (en) | Adaptive color image segmentation method based on super pixels | |
CN103150731B (en) | A kind of fuzzy clustering image partition method | |
CN103971128A (en) | Traffic sign recognition method for driverless car | |
CN107123130B (en) | Kernel correlation filtering target tracking method based on superpixel and hybrid hash | |
CN107705314A (en) | A kind of more subject image dividing methods based on intensity profile | |
CN100580703C (en) | Supervision-free Markov random field image segmentation method | |
CN103886589A (en) | Goal-oriented automatic high-precision edge extraction method | |
CN103020953A (en) | Segmenting method of fingerprint image | |
CN104796582A (en) | Video image denoising and enhancing method and device based on random ejection retinex | |
CN111008608B (en) | Night vehicle detection method based on deep learning | |
CN108121946A (en) | A kind of Pre-processing Method for Fingerprint Image and device | |
CN105118051A (en) | Saliency detecting method applied to static image human segmentation | |
CN102236786A (en) | Light adaptation human skin colour detection method | |
CN109101985A (en) | It is a kind of based on adaptive neighborhood test image mismatch point to elimination method | |
CN105893941A (en) | Facial expression identifying method based on regional images | |
CN104504681A (en) | Threshold image segmentation method with minimal clustering distortion | |
CN103514596A (en) | Method and device for processing image | |
CN103793913A (en) | Spectral clustering image segmenting method combined with mean shift | |
CN109377455B (en) | Improved multi-sequence magnetic resonance image registration method based on self-similarity |
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 |
Application publication date: 20150408 |
|
WD01 | Invention patent application deemed withdrawn after publication |