[go: up one dir, main page]

CN109741336B - A vitiligo region segmentation method based on pixel clustering and segmentation threshold - Google Patents

A vitiligo region segmentation method based on pixel clustering and segmentation threshold Download PDF

Info

Publication number
CN109741336B
CN109741336B CN201811484493.5A CN201811484493A CN109741336B CN 109741336 B CN109741336 B CN 109741336B CN 201811484493 A CN201811484493 A CN 201811484493A CN 109741336 B CN109741336 B CN 109741336B
Authority
CN
China
Prior art keywords
pixel
image
clustering
point
segmentation
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
CN201811484493.5A
Other languages
Chinese (zh)
Other versions
CN109741336A (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.)
Southeast University
Original Assignee
Southeast 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 Southeast University filed Critical Southeast University
Priority to CN201811484493.5A priority Critical patent/CN109741336B/en
Publication of CN109741336A publication Critical patent/CN109741336A/en
Application granted granted Critical
Publication of CN109741336B publication Critical patent/CN109741336B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种基于像素聚类与分割阈值的白癜风区域分割方法,通过将聚类中心分割与阈值分割方法相结合,本发明方法能够对不同光照环境下拍摄的白癜风患病区域的照片进行快速有效的分割。而且在皮损边缘模糊、曲折、图片对比度底等条件下,仍能较为理想地分割出白斑区域,为白癜风区域的面积测量与构建疗效评价体系提供了关键的技术支持。

Figure 201811484493

The invention discloses a vitiligo area segmentation method based on pixel clustering and segmentation threshold. By combining the cluster center segmentation and the threshold segmentation method, the method of the present invention can perform the segmentation on the photos of the vitiligo diseased area taken under different lighting environments. Fast and efficient segmentation. Moreover, under the conditions of blurred and tortuous skin lesions, and low contrast in the picture, the vitiligo area can still be segmented ideally, which provides a key technical support for the area measurement of the vitiligo area and the construction of a curative effect evaluation system.

Figure 201811484493

Description

Vitiligo area segmentation method based on pixel clustering and segmentation threshold
Technical Field
The invention belongs to the field of digital image processing, and relates to a vitiligo region segmentation method based on pixel clustering and a segmentation threshold.
Background
Vitiligo is a common skin depigmentation disease, and is mainly characterized in that white spot skin lesions with irregular sizes are formed on the body surface and are a disease which seriously influences the appearance and the beauty, the white spot area is an important evaluation index of clinical treatment effect, and the basis for measuring the white spot area is to accurately segment the white spot area.
With the development of image processing technology, traditional white spot area measurement methods, such as visual estimation, point estimation, and grid method, are gradually replaced by measurement methods based on image analysis due to their strong subjectivity and lack of objective measurement standards. The method can realize non-contact measurement, is objective and accurate, but due to the limitation of a plurality of factors such as picture shooting environment, shooting equipment, the self chromaticity of the skin of a patient and the like, the method can realize high-efficiency leucoderma area and accurate segmentation, for example, a K mean value clustering method based on a mixed color space adopts the method of converting an input RGB image into CIELAB, HSV and YCbCr spaces for K mean value clustering segmentation, but the method needs to cluster in three spaces at the same time, has large calculation amount, is difficult to effectively process the image with high resolution ratio, and takes pixel points as the minimum unit for segmentation; the method of manually dividing the vitiligo area and marking the edge by using tools such as Photoshop, Image J and the like has accurate effect but complicated operation; the method for extracting the vitiligo skin damage edge based on the snake model and by using the level set algorithm requires that the initial contour of the target area is given first, and the algorithm is sensitive to noise and has high equipment requirement. The method of combining the YCbCr color space with Fuzzy C-means (FCM) clustering is used, although good segmentation effect is achieved, the method cannot adapt to the situation of small picture contrast.
Therefore, according to some defects of the existing method, such as large calculation amount, complex operation, high requirements on shooting equipment, only being suitable for pictures with strong contrast and the like, the invention discloses a vitiligo region segmentation method which is efficient, simple, strong in robustness and not limited by the shooting equipment. The method comprises the steps of firstly carrying out clustering center segmentation on an image, and then manually setting a threshold value to realize the segmentation of the vitiligo area. In the present method, the cluster center is defined as: and the small region consists of the pixel points which are communicated in the digital image and have similar characteristics. These small regions retain significant information needed for further image segmentation and retain the boundary information of white spots in the image.
Disclosure of Invention
The purpose of the invention is as follows: the invention provides a vitiligo region segmentation method based on pixel clustering and a segmentation threshold value, which is used for segmenting a vitiligo region. The method can still perform efficient and accurate segmentation under the condition that the image has noise, high resolution and low contrast, and accurately segments the vitiligo area through an image processing technology.
The technical scheme is as follows: in order to realize the purpose of the invention, the technical scheme adopted by the invention is as follows: a vitiligo region segmentation method based on pixel clustering and segmentation threshold comprises the following steps:
(1) acquiring a face region image of a patient;
(2) carrying out Gaussian blur or median filtering on the image to remove noise;
(3) carrying out pixel clustering on the image obtained by the processing in the step (2);
(4) and determining a segmentation threshold, and segmenting the image based on pixel clustering to obtain a vitiligo region image.
Further, in step (2), if there is a highlight region in the image, highlight suppression processing is performed.
Further, in the step (3), the image clustering method is characterized by:
(3-1) when the collected RGB image is converted into a Lab color model, transition is carried out through an XYZ color model, and the formula is as follows:
Figure BDA0001894138110000028
wherein p isR,pB,pGRGB color components of pixel p, respectively;
(3-2) converting the input RGB image into Lab color space:
Figure BDA0001894138110000021
Figure BDA0001894138110000022
Figure BDA0001894138110000023
Figure BDA0001894138110000024
wherein, delta is a preset value, Xn,Yn,ZnAs a reference value for the white point in the XYZ color space;
(3-3) initializing the number of the clustering seed points according to the size of the input image, wherein the formula is as follows:
Figure BDA0001894138110000025
wherein N iscThe number of the clustering seed points is W and H are the width and the height of the image respectively,ρ is defined herein as the density of seed points, with a value range of [0, min (W, H)];
(3-4) setting the pixel with the coordinate of (rho ) as a first seed point, taking rho as a step length, initializing the rest seed points on the position of the intersection point in a checkerboard mode, and then combining the seed point set into a seed point set
Figure BDA0001894138110000026
Figure BDA0001894138110000027
Taking the seed point as an initialization clustering center and marking as Ck=[lk,ak,bk,xk,yk],k=1,2,…,NcWherein l isk,ak,bkRespectively, the position coordinates of the image in Lab space are (x)k,yk) The L, a, b components of the corresponding pixel points are located;
(3-5) moving the seed point to a position where the gradient of the L channel is minimum in the Lab model in a field of a size of 3 x 3 with the seed point as a center so as to prevent the seed point from falling on the edge of the image or at a noise;
(3-6) the specific method of the image pixel clustering process is as follows:
(3-6-1) initializing the tag array l (i) ═ 1, the distance array d (i) ═ infinity, and the maximum number of iterations N for each pixel point iiter
(3-6-2) with CkCentered on this, within a region of size 2 ρ × 2 ρ, the following operations are performed for each pixel i: calculating pixel i and cluster center CkA distance D of (D); if D is<D (i), let D (i) D, (i) k;
(3-6-3) judging whether all the clustering centers are traversed or not, if so, continuing; otherwise, returning to the step (3-6-2);
(3-6-4) updating all the clustering centers;
(3-6-5) judging whether the maximum iteration number N is reachediterIf yes, ending; otherwise, returning to the step (3-6-2).
Further, in step (3-6-2), the distance D between the pixel i and the pixel j is defined as a weighted sum of the spatial distance and the color distance:
Figure BDA0001894138110000031
Figure BDA0001894138110000032
Figure BDA0001894138110000033
wherein, the coordinates of the pixel point i and the pixel point j are respectively (x)i,yi),(xj,yj) In Lab space, the pixel values are (l)i,ai,bi),(lj,aj,bj),DsIs the spatial distance of two pixels, DcIs the distance of two pixels in Lab color space, Cs,CcRespectively, the normalized constant terms of the space distance and the color distance, and the pixel i and the clustering center C are calculated by adopting the methodkDistance D of (D).
Further, in the step (3-6-4), the method for updating all the cluster centers is as follows:
Figure BDA0001894138110000034
wherein N iskIs the number of pixels labeled k.
Further, the image pixel clustering in the step (3-6) further comprises the following steps:
(3-7-1) initializing label ═ 0, adjacent ═ 0, initializing empty queue Q, initializing array newclusterAll initial values are set to-1, order
Figure BDA0001894138110000041
Initializing an array V, and recording the number of pixel points contained in the image as NpLet i equal to 0;
(3-7-2) taking the label array l obtained in the step (3-6);
(3-7-3) if i<NpThen continuing the following steps; otherwise, ending;
(3-7-4) if new _ cluster [ i)]If the pixel i is equal to-1, the pixel i enters the queue Q, and four adjacent domain pixel points of the pixel i are traversed according to the left-up-right-down sequence, namely, four upper, lower, left and right pixel points adjacent to the pixel i in the image size range are marked as itIf t is 1,2,3,4, if new _ clusters [ it]If the value is more than or equal to 0, updating adjcent to new _ clusters [ i ≧ 0t];
(3-7-5) making count ═ 1;
(3-7-6) dequeuing the head pixel in the queue Q, marking as a pixel j, and storing the j to an array V;
(3-7-7) traversing pixel points of four neighborhoods of j, namely, in the image size range, four pixel points of upper, lower, left and right adjacent to the pixel j are marked as jtIf t is 1,2,3,4, if new _ clusters [ jt]Is ═ 1, and l [ i ═ 1]==l[jt]Then let jtEnter queue and let new _ cluster [ j ]t]Equal to label, count equal to count + 1; otherwise, entering (3-7-8);
(3-7-8) if the queue Q is empty, entering (3-7-9); otherwise, returning to the step (3-7-6);
(3-7-9) if count is less than or equal to TmThen, go through the point in the access array V, note the current access point as z, let new _ cluster [ z]After traversing is completed, clearing the array V;
(3-7-10) allowing label + 1;
(3-7-11) letting i ═ i +1, return to (3-7-3);
(3-7-12) taking the obtained new _ cluster as a new cluster label array, and recording n image sub-regions after re-clustering;
(3-7-13) recalculating the cluster center using the following formula:
Figure BDA0001894138110000042
is marked as
Figure BDA0001894138110000043
Figure BDA0001894138110000044
In (1)
Figure BDA0001894138110000045
As an abstract feature representation of all pixels in the region represented by it.
Further, in the step (4), a segmentation threshold is determined, and the image is segmented based on pixel clustering to obtain a vitiligo region image, wherein the method comprises the following steps:
(4-1) randomly sampling pixel points in the vitiligo area by using a cursor, and recording the total sampling NsPoint with sampling point of Si,i=1,2,…,NsThen the L, a, b components of the sampling point are SiL,Sia,SibThen the required threshold value T is dividedlowAnd ThighCan be determined by the following rules:
Figure BDA0001894138110000051
Figure BDA0001894138110000052
(4-2) traversing all the pixel cluster centers if
Figure BDA0001894138110000053
This cluster center is labeled as white spot skin lesion area, otherwise as normal skin.
Has the advantages that: compared with the prior art, the technical scheme of the invention has the following beneficial effects:
1. the operation is simple and convenient, and no special requirements are required for hardware equipment.
2. The method can be suitable for the situations that the white spot boundary is fuzzy and the image contrast is low.
3. Since the cluster center is introduced as a representative of a block of regions, rapid segmentation can be achieved even when a high-resolution image is processed.
4. The segmented image is not easy to generate holes and does not depend on later morphological processing.
Drawings
FIG. 1 is a flow chart of a vitiligo region segmentation method based on a clustering center and a threshold;
FIG. 2 is an example of a vitiligo region segmentation method based on a cluster center and a threshold;
fig. 3 shows two examples of the vitiligo region segmentation method based on the cluster center and the threshold.
Detailed Description
The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.
(1) Picture acquisition
The affected part can be photographed by using a mobile phone, a camera and professional medical equipment, the skin occupies the main part of the picture, but the affected part still can contain irrelevant areas such as partial background, clothes, hair and the like, and the environment with soft light rays is selected as much as possible during photographing.
(2) Image pre-processing
According to specific conditions, carrying out Gaussian blur or median filtering on the image to remove noise; if there is a highlight region in an image, highlight suppression is performed. The purpose of this step is to remove noise and smooth sharp edges in the hair region to avoid excessive irregular shapes and holes when the cluster center is segmented. Because local highlight areas caused by oil on the surface of the skin are difficult to avoid when the photo is taken, color information is covered, the clustering center segmentation effect is poor, and the highlight areas are required to be inhibited firstly.
(3) Performing cluster centric segmentation
The cluster center segmentation can be performed on the denoised picture by using the SLIC algorithm or the VCell algorithm, which is described herein as the SLIC algorithm.
(3-1) converting the input RGB image into a Lab color space;
since the Lab space is a uniform color space, it is more advantageous than RGB when the contrast of skin color to white spot is low. In the Lab model, L is the brightness, and a, b are the color channels. L represents from black to white, a is green to red; when the collected RGB image is converted into a Lab color model, the conversion cannot be directly carried out, and the transition is carried out through an XYZ color model, wherein the formula is as follows:
Figure BDA0001894138110000061
wherein p isR,pB,pGRespectively RGB color components of the pixel p.
Figure BDA0001894138110000062
Figure BDA0001894138110000063
Figure BDA0001894138110000064
Figure BDA0001894138110000065
Wherein, δ is a preset value, δ is 0.008856, and X isn,Yn,ZnAs a reference value for the white point in the XYZ color space. Taking D65 as the reference white point here, there are:
Xn=95.047
Yn=100.000
Zn=108.883
(3-2) initializing the number of clustering seed points according to the size of the input image, wherein the following empirical formula can be adopted:
Figure BDA0001894138110000066
wherein N iscFor clustering the number of seed points, W and H are the width and height of the image, respectively, and ρ is defined as the density of seed points and has a value range of [0, min (W, H)]In the experiment, 20 is taken, and the value of ρ may be set as needed. The larger rho is, the more dense the seed points are, the smaller the area of each clustering center obtained in the later stage is, and the finer the segmentation is, but the excessive density increases the calculation amount and is easily interfered by image noise, so that the image segmentation effect is poor.
(3-3) setting the pixel with the coordinate of (rho ) as a first seed point, taking rho as a step length, initializing the rest seed points on the position of the intersection point in a checkerboard mode, and then combining the seed point set into a seed point set
Figure BDA0001894138110000071
Figure BDA0001894138110000072
Taking the seed point as an initialization clustering center and marking as Ck=[lk,ak,bk,xk,yk],k=1,2,…,NcWherein l isk,ak,bkRespectively, the position coordinates of the image in Lab space are (x)k,yk) And the L, a and b components of the corresponding pixel points are processed.
(3-4) in the area with the seed point as the center and the size of 3 multiplied by 3, the seed point is moved to the position with the minimum L channel gradient in the Lab model so as to prevent the seed point from falling onto the edge of the image or the noise and influencing the subsequent clustering process.
(3-5) the specific algorithm of the clustering process is as follows:
(3-5-1) initializing the tag array l (i) ═ 1, the distance array d (i) ═ infinity, and the maximum number of iterations N for each pixel point iiter
(3-5-2) with CkCentered on this, within a region of size 2 ρ × 2 ρ, the following operations are performed for each pixel i: calculate i and CkA distance D of (D); if D is<D (i), let D (i) D, l (i) k
(3-5-3) judging whether all the clustering centers are traversed or not, if so, continuing; otherwise, returning to the step 3-5-2
(3-5-4) updating all the clustering centers
(3-5-5) judging whether the maximum iteration number N is reachediterIf yes, ending; otherwise, returning to the step 3-5-2
Wherein the distance D between pixel i and pixel j is defined as the weighted sum of the spatial distance and the color distance:
Figure BDA0001894138110000073
Figure BDA0001894138110000074
Figure BDA0001894138110000075
wherein C iss,CcNormalized constant terms for spatial distance and color distance, respectively. Here let Cs=25,Ccρ. During use, CcThe value range of (A) can be [1,40 ]]The larger the value, the larger DsThe smaller the weight occupied in the distance measurement is, the more irregular the shape of the clustering center obtained in the later period is, the long strip shape is formed, namely the correlation of the space is difficult to ensure, but the clustering center is sensitive to the edge of an object, has high fitting degree and is easy to receive the interference of noise; conversely, the smaller the value, the smaller DsThe larger the weight occupied in the distance measurement is, the more regular the shape of the clustering center obtained in the later stage is, the clustering center is similar to a square block, is not easily interfered by noise, but is less sensitive to the image edge.
The maximum iteration number in the experiment is 10, and the balance between the effect and the calculation cost can be achieved.
The update of the cluster center can be done using the following equation:
Figure BDA0001894138110000081
wherein N iskIs the number of pixels labeled k.
(3-6) after the clustering is carried out by the above steps, the problems of poor connectivity and some small regions which are not marked can occur, so that the connectivity of the image needs to be further enhanced, and the specific method is as follows:
(3-6-1) initializing label ═ 0, adjacent ═ 0, initializing empty queue Q, initializing array newclusterAll initial values are set to-1, order
Figure BDA0001894138110000082
Initializing an array V, and recording the number of pixel points contained in the image as NpLet i equal to 0;
(3-6-2) taking the label array l obtained in the step 3-5;
(3-6-3) if i<NpContinuing the following steps; otherwise, ending;
(3-6-4) if new _ cluster [ i)]If the pixel i is equal to-1, the pixel i enters the queue Q, four adjacent domain pixel points of the pixel i are traversed according to the sequence of the left, the top, the right, the left and the right, namely four pixel points which are adjacent to the pixel i in the image size range, the four pixel points are marked as itIf t is 1,2,3,4, if new _ clusters [ it]If the value is more than or equal to 0, let adjcent be new _ clusters [ i ≧ 0t];
(3-6-5) making count ═ 1;
(3-6-6) dequeuing the head pixel in the queue Q, marking as a pixel j, and storing the j to an array V;
(3-6-7) traversing the pixel points of the four neighborhoods of j, and marking as jtIf t is 1,2,3,4, if new _ clusters [ jt]Is ═ 1, and l [ i ═ 1]==l[jt]Then let jtEnter queue and let new _ cluster [ j ]t]Equal to label, count equal to count + 1; otherwise, entering (3-6-8);
(3-6-8) if the queue Q is empty, continuing; otherwise, returning to the step (3-6-6);
(3-6-9) if count is less than or equal to TmThen, go through the point in the access array V, note the current access point as z, let new _ cluster [ z]Setting the label as label-1, and emptying the array V;
(3-6-10) let label ═ label +1
(3-6-11) let i ═ i +1, return to (3-6-3).
The new _ cluster obtained by the algorithm is a new label array, the size of the new _ cluster is the number of pixels in the image, and the value of a certain position is the label corresponding to the pixel point of the position.
Thus, sub-regions of n well-segmented images can be obtained, wherein n is equal to the value of the label variable in the step (3-6), namely n clustering centers, and as shown in the second drawing (b), each minimum closed region formed by the blue line is a clustering center. Recalculating the Cluster center, note
Figure BDA0001894138110000083
Figure BDA0001894138110000084
In (1)
Figure BDA0001894138110000085
Can be regarded as an abstract feature representation of all pixel points in the represented area, and in the experiment, the features are extracted from Lab color space. The user can extract different features under different color spaces according to the needs of the user.
Figure BDA0001894138110000086
In (1)
Figure BDA0001894138110000087
What is obtained is a floating point number, which can be simply rounded to an integer for convenience of thresholding in step four.
(4) Manually determining a threshold value, and performing segmentation
The pixel values of the lesion area are manually measured and a segmentation threshold is determined, and then segmentation is performed. The method comprises the following specific steps:
(4-1) randomly sampling pixel points in the vitiligo area by using photoshop or drawing tools and the like, wherein the number of the sampling points is determined according to the image contrast of the vitiligo area (I.e. according to the brightness and the color difference visible to the naked eye), the sampling point needs to cover the areas with different brightness and color differences as much as possiblesPoint with sampling point of Si,i=1,2,…,NsThen the L, a, b components of the sampling point are SiL,Sia,SibThen the required threshold value T is dividedlowAnd ThighCan be determined by the following rules:
Figure BDA0001894138110000091
Figure BDA0001894138110000092
(4-2) traversing all cluster centers if
Figure BDA0001894138110000093
This cluster center is labeled as white spot skin lesion area, otherwise as normal skin, resulting in a result similar to that shown in panel two (c).
The Lab space is used for threshold segmentation, because the Lab space can separate the luminance component from the chrominance, so that only the color range can be limited, and the method is simple and effective for pictures with poor illumination conditions.
The technical means disclosed in the invention scheme are not limited to the technical means disclosed in the above embodiments, but also include the technical scheme formed by any combination of the above technical features. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and such improvements and modifications are also considered to be within the scope of the present invention. The results of the experimental comparison are shown in Table I
Figure BDA0001894138110000094
In table one test picture as shown in fig. two and fig. three, the running time is from step two-image preprocessing start timing to the completion of white spot region segmentation.

Claims (6)

1. A vitiligo region segmentation method based on pixel clustering and segmentation threshold is characterized by comprising the following steps:
(1) acquiring a face region image of a patient;
(2) carrying out Gaussian blur or median filtering on the image to remove noise;
(3) and (3) carrying out pixel clustering on the image obtained by the processing in the step (2), wherein the image clustering method comprises the following steps:
(3-1) when the collected RGB image is converted into a Lab color model, transition is carried out through an XYZ color model, and the formula is as follows:
Figure FDA0002809796050000011
wherein p isR,pB,pGRGB color components of pixel p, respectively;
(3-2) converting the input RGB image into Lab color space:
Figure FDA0002809796050000012
Figure FDA0002809796050000013
Figure FDA0002809796050000014
Figure FDA0002809796050000015
wherein, delta is a preset value, Xn,Yn,ZnAs a reference value for the white point in the XYZ color space;
(3-3) initializing the number of the clustering seed points according to the size of the input image, wherein the formula is as follows:
Figure FDA0002809796050000016
wherein N iscFor clustering the number of seed points, W and H are the width and height of the image, respectively, and ρ is defined as the density of seed points and has a value range of [0, min (W, H)];
(3-4) setting the pixel with the coordinate of (rho ) as the first seed point, taking rho as the step length, initializing the rest seed points on the cross point position in a checkerboard pattern, and then setting the seed point set as { (x, y) | x { (x, y) | c { (x, y) | x ═ c { (x, y) | x { (x, p) | c1ρ,y=c2ρ},
Figure FDA0002809796050000017
Figure FDA0002809796050000018
Taking the seed point as an initialization clustering center and marking as Ck=[lk,ak,bk,xk,yk],k=1,2,…,MNWherein l isk,ak,bkRespectively, the position coordinates of the image in Lab space are (x)k,yk) The L, a, b components of the corresponding pixel points are located;
(3-5) moving the seed point to a position where the gradient of the L channel is minimum in the Lab model in a neighborhood of 3 x 3 with the seed point as the center so as to prevent the seed point from falling on the edge of the image or at the noise;
(3-6) the specific method of the image pixel clustering process is as follows:
(3-6-1) initializing the tag array value l (i) ═ -1, the distance array d (i) ═ infinity, and the maximum number of iterations N for each pixel point iiter
(3-6-2) with CkCentered on this, within a region of size 2 ρ × 2 ρ, the following operations are performed for each pixel i: calculating pixel i and cluster center CkA distance D of (D); if D is<D (i), let D (i) D, (i) k;
(3-6-3) judging whether all the clustering centers are traversed or not, if so, continuing; otherwise, returning to the step (3-6-2);
(3-6-4) updating all the clustering centers;
(3-6-5) judging whether the maximum iteration number N is reachediterIf yes, ending; otherwise, returning to the step (3-6-2);
(4) and determining a segmentation threshold, and segmenting the image based on pixel clustering to obtain a vitiligo region image.
2. The method for segmenting vitiligo area based on pixel clustering and a segmentation threshold according to claim 1, wherein in the step (2), if there is a highlight area in the image, a highlight suppression process is performed.
3. The vitiligo region segmentation method based on pixel clustering and a segmentation threshold according to claim 1, wherein in the step (3-6-2), the distance D between the pixel i and the pixel j is defined as a weighted sum of a spatial distance and a color distance:
Figure FDA0002809796050000021
Figure FDA0002809796050000022
Figure FDA0002809796050000023
wherein, the coordinates of the pixel point i and the pixel point j are respectively (x)i,yi),(xj,yj) In Lab space, the pixel values are (l)i,ai,bi),(lj,aj,bj),DsIs the spatial distance of two pixels, DcIs the distance of two pixels in Lab color space, Cs,CNRespectively, the normalized constant terms of the space distance and the color distance, and the pixel i and the clustering center C are calculated by adopting the methodkDistance D of (D).
4. The vitiligo region segmentation method based on pixel clustering and a segmentation threshold according to claim 3, wherein in the step (3-6-4), the method for updating all the clustering centers is as follows:
Figure FDA0002809796050000024
wherein N iskIs the number of pixels labeled k.
5. The vitiligo region segmentation method based on pixel clustering and segmentation threshold according to claim 4, wherein the image pixel clustering in the step (3-6) further comprises the following steps:
(3-7-1) initializing label ═ 0, adjacent ═ 0, initializing empty queue Q, initializing array new _ cluster, setting all initial values to-1, and making
Figure FDA0002809796050000031
Initializing an array V, and recording the number of pixel points contained in the image as NpLet i equal to 0;
(3-7-2) taking the label array l obtained in the step (3-6);
(3-7-3) if i<NpThen continuing the following steps; otherwise, ending;
(3-7-4) if new _ cluster [ i)]If the pixel is equal to-1, the ith pixel enters the queue Q, four adjacent domain pixel points of the pixel i are traversed according to the left-up-right-down sequence, namely, four upper, lower, left and right pixel points adjacent to the ith pixel in the image size range,is marked as itIf t is 1,2,3,4, if new _ clusters [ it]If the value is more than or equal to 0, updating adjcent to new _ clusters [ i ≧ 0t];
(3-7-5) making count ═ 1;
(3-7-6) dequeuing the head pixel in the queue Q, marking as a pixel j, and storing the j to an array V;
(3-7-7) traversing pixel points of four neighborhoods of j, namely, in the image size range, four pixel points of upper, lower, left and right adjacent to the pixel j are marked as jtIf t is 1,2,3,4, if new _ clusters [ jt]Is ═ 1, and l [ i ═ 1]==l[jt]Then let jtEnter queue and let new _ cluster [ j ]t]Equal to label, count equal to count + 1; otherwise, entering (3-7-8);
(3-7-8) if the queue Q is empty, entering (3-7-9); otherwise, returning to the step (3-7-6);
(3-7-9) if count is less than or equal to TmThen, go through the point in the access array V, note the current access point as z, let new _ cluster [ z]After traversing is completed, clearing the array V;
(3-7-10) allowing label + 1;
(3-7-11) letting i ═ i +1, return to (3-7-3);
(3-7-12) taking the obtained new _ cluster as a new cluster label array, and recording n image sub-regions after re-clustering;
(3-7-13) recalculating the cluster centers using the following formula:
Figure FDA0002809796050000032
is marked as
Figure FDA0002809796050000033
Figure FDA0002809796050000034
In (1)
Figure FDA0002809796050000035
As a pairAnd (3) representing an abstract characteristic of all pixel points in the represented area.
6. The vitiligo region segmentation method based on pixel clustering and segmentation threshold according to claim 5, wherein in the step (4), the segmentation threshold is determined, and the vitiligo region image is obtained by segmenting the image based on pixel clustering, and the method comprises the following steps:
(4-1) randomly sampling pixel points in the vitiligo area by using a cursor, and recording the total sampling NsPoint with sampling point of Si,i=1,2,…,NsThen the L, a, b components of the sampling point are SiL,Sia,SibThen the required threshold value T is dividedlowAnd ThighCan be determined by the following rules:
Figure FDA0002809796050000041
Figure FDA0002809796050000042
(4-2) traversing all the pixel cluster centers if
Figure FDA0002809796050000043
This cluster center is labeled as white spot skin lesion area, otherwise as normal skin.
CN201811484493.5A 2018-12-06 2018-12-06 A vitiligo region segmentation method based on pixel clustering and segmentation threshold Expired - Fee Related CN109741336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811484493.5A CN109741336B (en) 2018-12-06 2018-12-06 A vitiligo region segmentation method based on pixel clustering and segmentation threshold

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811484493.5A CN109741336B (en) 2018-12-06 2018-12-06 A vitiligo region segmentation method based on pixel clustering and segmentation threshold

Publications (2)

Publication Number Publication Date
CN109741336A CN109741336A (en) 2019-05-10
CN109741336B true CN109741336B (en) 2021-06-01

Family

ID=66359223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811484493.5A Expired - Fee Related CN109741336B (en) 2018-12-06 2018-12-06 A vitiligo region segmentation method based on pixel clustering and segmentation threshold

Country Status (1)

Country Link
CN (1) CN109741336B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111508016B (en) * 2020-04-14 2023-11-17 南京泓图人工智能技术研究院有限公司 Vitiligo region chromaticity value and area calculation method based on image processing
CN111899436B (en) * 2020-07-29 2023-04-28 北京市永康药业有限公司 Intelligent chemical storage cabinet
CN113095147B (en) * 2021-03-16 2024-11-26 深圳市雄帝科技股份有限公司 Skin area detection method, system, image processing terminal and storage medium
CN114387184B (en) * 2022-01-07 2024-12-13 陕西科技大学 A method for evaluating animal fur cutting effect

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289680A (en) * 2011-09-02 2011-12-21 北京新媒传信科技有限公司 Cutting method and device for skin color area in image
CN102800090A (en) * 2012-07-09 2012-11-28 中国人民解放军国防科学技术大学 Blood cell segmentation method
CN104484877A (en) * 2014-12-12 2015-04-01 山东大学 AML cell segmentation method based on Meanshift cluster and morphological operations

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5779089B2 (en) * 2011-12-28 2015-09-16 株式会社ドワンゴ Edge detection apparatus, edge detection program, and edge detection method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289680A (en) * 2011-09-02 2011-12-21 北京新媒传信科技有限公司 Cutting method and device for skin color area in image
CN102800090A (en) * 2012-07-09 2012-11-28 中国人民解放军国防科学技术大学 Blood cell segmentation method
CN104484877A (en) * 2014-12-12 2015-04-01 山东大学 AML cell segmentation method based on Meanshift cluster and morphological operations

Also Published As

Publication number Publication date
CN109741336A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109741336B (en) A vitiligo region segmentation method based on pixel clustering and segmentation threshold
Maiti et al. A new method for brain tumor segmentation based on watershed and edge detection algorithms in HSV colour model
CN111402267B (en) Method, device and terminal for segmenting epithelial cell nuclei in pathological images of prostate cancer
KR100889014B1 (en) Extraction of Snowfall Region Using Graph-based Approach
Ahn et al. Automated saliency-based lesion segmentation in dermoscopic images
WO2013080868A1 (en) Image processing device, image processing method, and image processing program
Fiorese et al. VirtualShave: automated hair removal from digital dermatoscopic images
US20060269111A1 (en) Automatic detection of critical dermoscopy features for malignant melanoma diagnosis
CN110268442B (en) Computer-implemented method of detecting foreign objects on background objects in an image, apparatus for detecting foreign objects on background objects in an image, and computer program product
CN108629761B (en) Breast cancer image identification method and device and user terminal
JP2010535579A (en) Computer image analysis of acetic acid processed cervical intraepithelial neoplasia
Beevi et al. Automatic segmentation of cell nuclei using Krill Herd optimization based multi-thresholding and localized active contour model
WO2015092904A1 (en) Image-processing apparatus, image-processing method, and image-processing program
CN114511567A (en) Tongue body and tongue coating image identification and separation method
US8913829B2 (en) Automatic processing scale estimation for use in an image process
CN113643281B (en) Tongue image segmentation method
CN109583330B (en) A pore detection method for face photos
JPWO2018203514A1 (en) Image analysis evaluation method, computer program, image analysis evaluation device
CN116258676A (en) Cell density quantification method and system for colorectal cancer IHC pathological image
Kim et al. Tongue diagnosis method for extraction of effective region and classification of tongue coating
CN111738984B (en) Skin image spot evaluation method and system based on watershed and seed filling
KR20140094975A (en) Method and Apparatus of Skin Pigmentation Detection Using Projection Transformed Block Coefficient
CN117274981B (en) Pepper pathology prediction method and device based on image recognition
JP6132485B2 (en) Image processing apparatus, operation method of image processing apparatus, and image processing program
CN110264417B (en) Automatic detection and extraction method of local motion blur region based on hierarchical model

Legal Events

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

Granted publication date: 20210601

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