Color medical image segmentation method and system based on GPCA algorithm

Through the color medical image segmentation method based on the GPCA algorithm, the problems of low medical image segmentation efficiency and high computational complexity are solved, and efficient and accurate image segmentation is achieved, which is suitable for real-time large-scale applications.

CN118864853AInactive Publication Date: 2024-10-29SICHUAN RED POINTER TECH CO LTD

Patent Information

Application Number
CN202410901594.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies are inefficient in medical image segmentation, especially when processing color medical images, the computational complexity is high and accuracy is difficult to ensure.

Method used

A color medical image segmentation method based on the GPCA algorithm is adopted, including preprocessing, color space conversion, image block division, GPCA model construction, segmentation result extraction and post-processing optimization, using PCA dimensionality reduction, region merging, watershed algorithm and curve fitting, etc. technology.

Benefits of technology

It achieves efficient and accurate segmentation of color medical images, has strong universality and robustness, can process a large number of images in a short time, and is suitable for real-time and large-scale application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864853A_ABST
    Figure CN118864853A_ABST
Patent Text Reader

Abstract

The invention discloses a color medical image segmentation method and system based on a GPCA algorithm, and belongs to the technical field of image processing, and the image segmentation method comprises the following steps: carrying out the preprocessing of color medical image data; converting the preprocessed data from an original color space to an RGB space; dividing the RGB image into a plurality of blocks or regions; constructing a model for each block or region by adopting a GPCA algorithm; extracting a segmentation result from the GPCA model; and post-processing and optimizing the segmentation result. According to the method, image segmentation is carried out in combination with multiple features, and the target and background regions in the image can be described more comprehensively and accurately. According to the invention, self-adaptive segmentation can be carried out according to the statistical characteristics of the image data without being limited by priori knowledge. Therefore, the method can adapt to color medical images of different types and characteristics, and has high universality and generalization ability. The method can neglect or reduce the influence of noise on a segmentation result, thereby obtaining a more accurate and stable segmentation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a color medical image segmentation method and system based on a GPCA algorithm. Background Art

[0002] Segmenting medical images is a very important task. Segmented images can help doctors diagnose diseases quickly and efficiently, quantify lesion areas, and plan surgeries and treatments. However, due to the complexity and variability of medical images, the medical image segmentation task still faces many challenges.

[0003] Since the traditional method is for medical experts to perform analysis manually, which is inefficient, medical images can be processed through a pre-set image segmentation model to improve processing efficiency.

[0004] However, when using artificial intelligence to process color medical images, the increase in variables will increase the complexity and efficiency of the calculations, and put higher requirements on the accuracy of image segmentation processing. Summary of the invention

[0005] In order to solve the above problems existing in the prior art, the present invention aims to provide a color medical image segmentation method and system based on the GPCA algorithm.

[0006] The technical solution adopted by the present invention is: a color medical image segmentation method based on the GPCA algorithm, the segmentation method comprises the following steps:

[0007] Preprocessing color medical image data;

[0008] Convert the preprocessed data from the original color space to the RGB space;

[0009] Divide the RGB image into multiple blocks or regions;

[0010] The GPCA algorithm is used to build a model for each block or region;

[0011] Extract segmentation results from the GPCA model;

[0012] Post-process and optimize the segmentation results.

[0013] Preferably, the preprocessing includes denoising, smoothing and enhancement.

[0014] Preferably, a filter is used to denoise and smooth the image, and a histogram equalization or contrast enhancement method is used to enhance the image.

[0015] Furthermore, if the original image is in CMYK space, it is converted to RGB space using the following formula:

[0016] R = (1-C) * (1-K);

[0017] G = (1-M) * (1-K);

[0018] B = (1-Y) * (1-K);

[0019] Among them, R, G, and B represent the converted RGB components, and C, M, Y, and K represent the CMYK components in the original image.

[0020] Furthermore, if the original image is in HSV space, it is converted to RGB space using the following formula:

[0021] C = V * S;

[0022] X = C*(1-|(H / 60) mod 2-1|);

[0023] m=VC;

[0024] If H is not limited, then (R', G', B') = (0, 0, 0);

[0025] If 0<=H<60, then (R',G',B')=(C,X,0);

[0026] If 60<=H<120, then (R',G',B')=(X,C,0);

[0027] If 120<=H<180, then (R',G',B')=(0,C,X);

[0028] If 180<=H<240, then (R',G',B')=(0,X,C);

[0029] If 240<=H<300, then (R',G',B')=(X,0,C);

[0030] If 300<=H<360, then (R',G',B')=(C,0,X);

[0031] (R, G, B) = (R' + m, G' + m, B' + m);

[0032] Among them, R, G, and B represent the converted RGB components, and H, S, and V represent the HSV components in the original image.

[0033] Preferably, the GPCA algorithm model building includes the following steps:

[0034] Extract the feature vector within the block and rearrange the pixel values ​​of each block into a vector;

[0035] Apply PCA dimensionality reduction. PCA finds the most important principal components by calculating the covariance matrix of the eigenvectors and reduces the dimensionality of the eigenvectors according to the importance of the principal components.

[0036] Reconstruct the model of the block and use the feature vector after dimensionality reduction to reconstruct the model of the original block.

[0037] Preferably, the extracting segmentation results comprises the following steps:

[0038] Compare the models, compare the GPCA model of the image to be segmented with the GPCA model of each image block, measure the similarity between the two models, and calculate the similarity between the image to be segmented and each image block;

[0039] Determine the best match and take the most similar image block as part of the segmentation result based on similarity comparison;

[0040] Reconstruct the segmentation result, based on the best matching image block, reconstruct it into a part of the segmentation result, and place the matching image block to the corresponding position in the segmentation result;

[0041] The steps of determining the best match and reconstructing the segmentation result are repeated until the entire image is segmented.

[0042] Further, the post-processing and optimization comprises the following steps:

[0043] Region merging, using the region growing algorithm to merge adjacent pixels and merge similar pixels into one region;

[0044] Segmentation optimization, using the watershed algorithm for segmentation optimization;

[0045] Boundary repair, repairing discontinuous or broken boundaries to obtain smooth boundary lines;

[0046] Curve fitting, uses a curve fitting algorithm to approximate the boundary line.

[0047] The second object of the present invention is to disclose a color medical image segmentation system based on the GPCA algorithm, the system comprising:

[0048] A data preprocessing module, suitable for preprocessing color medical image data;

[0049] A feature extraction module is suitable for converting the preprocessed data from the original color space to the RGB space, extracting features, and dividing the blocks or regions;

[0050] GPCA algorithm module, suitable for image segmentation and model building based on extracted features;

[0051] The segmentation result post-processing module is suitable for performing post-processing operations on the segmentation results obtained by the GPCA algorithm;

[0052] The segmentation result visualization module is suitable for visualizing the final segmentation results.

[0053] The third purpose of the present invention is to disclose a color medical image segmentation device based on the GPCA algorithm, the device comprising: a service processor and a distributed memory, the service processor being connected to the distributed memory, the distributed memory storing a service self-management program configured to store machine-readable instructions, the service processor executing the service self-management program, and the instructions, when executed by the processor, implement the above-mentioned image segmentation method.

[0054] The beneficial effects of the present invention are:

[0055] The present invention is based on the GPCA (Generalized Principal Component Analysis) algorithm, combines multiple features for image segmentation, and can more comprehensively and accurately describe the target and background areas in the image. The present invention can adaptively perform segmentation based on the statistical characteristics of the image data without being restricted by prior knowledge. This enables it to adapt to color medical images of different types and characteristics, and has strong universality and generalization capabilities. It has certain robustness for some common image noise and interference. It can ignore or reduce the impact of noise on the segmentation results, thereby obtaining more accurate and stable segmentation results. The GPCA algorithm has low computational complexity. This enables it to process a large number of color medical images in a shorter time, and is suitable for real-time and large-scale application scenarios. The GPCA algorithm converts image segmentation into a problem of principal component analysis, and the results have certain interpretability. It can provide an understanding of the statistical characteristics and relationships of different areas in the image, which is helpful for further analysis and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a schematic diagram of the overall process of an embodiment of the present invention;

[0057] Figure 2 It is a schematic diagram of a partial process expansion of an embodiment of the present invention;

[0058] Figure 3 It is a schematic diagram of a partial process expansion of an embodiment of the present invention;

[0059] Figure 4 It is a schematic diagram of a partial process expansion of an embodiment of the present invention;

[0060] Figure 5 is a schematic diagram of the system structure of an embodiment of the present invention;

[0061] Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0064] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0065] Example:

[0066] like Figure 1 , 2 As shown in , 3 and 4, the color medical image segmentation method based on the GPCA algorithm disclosed in this embodiment includes the following steps:

[0067] S100. Preprocess the color medical image data. The preprocessing includes denoising, smoothing and enhancement, and specifically includes the following steps:

[0068] S101. Use Gaussian filter to denoise and smooth the image. Import the color image for processing, and process each channel separately. Select the appropriate Gaussian filter size according to the image, usually select the convolution kernel of odd size, such as 3x3, 5x5, 7x7, etc. Then adjust the value of the standard deviation, and generate the corresponding Gaussian filter according to the selected filter size and standard deviation. The Gaussian filter is a two-dimensional normal distribution, with the highest value at the center point and decreasing outward in sequence. Then convolve the generated Gaussian filter with the image. The convolution operation can be implemented using matrix multiplication. For each pixel, it is convolved with the filter to obtain a new pixel value. For pixels at the edge of the image, since the convolution kernel exceeds the image boundary, there is no complete pixel matrix to convolve with it. You can choose to ignore the boundary pixels, expand the boundary pixels, use the boundary pixel value itself, etc. to process the boundary. The image processed by the Gaussian filter is used as the output result. The denoising and smoothing effect of the image can be further observed, and parameters such as filter size and standard deviation can be adjusted for optimization.

[0069] S102. Enhance the image using histogram equalization or contrast enhancement. Import the image and convert each channel of the image into a grayscale image. Histogram equalization is a method of widely distributing brightness values ​​by redistributing the grayscale values ​​of the image pixels so that the entire grayscale range can be utilized. The specific steps are as follows: count the number of pixels of each grayscale value in the image, add up each grayscale value of the grayscale histogram to obtain a cumulative histogram, divide the value of the cumulative histogram by the total number of image pixels to obtain a normalized cumulative histogram ranging from 0 to 1. Then multiply the normalized cumulative histogram by the maximum value of the grayscale level and round it off to obtain the grayscale value after equalization. Finally, replace the corresponding pixel value in the original image with the grayscale value after equalization to obtain the equalized image. Contrast enhancement enhances the contrast of the image by adjusting the grayscale value range of the pixel, which can make the details in the image clearer. You can use the linear stretching method: by calculating the minimum grayscale value and the maximum grayscale value of the image, and linearly mapping the pixel values ​​in the image, the minimum grayscale value is mapped to 0, the maximum grayscale value is mapped to 255, and the intermediate grayscale value is mapped according to the linear relationship. You can also use the histogram normalization method: match the grayscale histogram of the image to a predetermined ideal histogram, and adjust the grayscale value of the pixel to make the histogram of the image closer to the ideal histogram. You can also use the gamma correction method: by performing a gamma transformation on the image, adjust the grayscale value of the dark or bright part of the image, and enhance the contrast of the dark or bright part. Finally, the image processed by the histogram equalization or contrast enhancement method is used as the output result. You can further observe the contrast and detail enhancement effect of the image, adjust the parameters or try other methods to optimize.

[0070] S200. Convert the preprocessed data from the original color space to the RGB space. If the original image is in the CMYK space, convert it to the RGB space using the following formula:

[0071] R = (1-C) * (1-K);

[0072] G = (1-M) * (1-K);

[0073] B = (1-Y) * (1-K);

[0074] Among them, R, G, and B represent the converted RGB components, and C, M, Y, and K represent the CMYK components in the original image.

[0075] If the original image is in HSV space, then convert it to RGB space using the following formula:

[0076] C = V * S;

[0077] X = C*(1-|(H / 60) mod 2-1|);

[0078] m=VC;

[0079] If H is not limited, then (R', G', B') = (0, 0, 0);

[0080] If 0<=H<60, then (R',G',B')=(C,X,0);

[0081] If 60<=H<120, then (R',G',B')=(X,C,0);

[0082] If 120<=H<180, then (R',G',B')=(0,C,X);

[0083] If 180<=H<240, then (R',G',B')=(0,X,C);

[0084] If 240<=H<300, then (R',G',B')=(X,0,C);

[0085] If 300<=H<360, then (R',G',B')=(C,0,X);

[0086] (R, G, B) = (R' + m, G' + m, B' + m);

[0087] Among them, R, G, and B represent the converted RGB components, and H, S, and V represent the HSV components in the original image.

[0088] S300. Divide the RGB image into multiple blocks or regions. There are two ways to achieve this. One is to divide the RGB image into uniform grids, each grid representing a block or region. This method can determine the size of each grid by dividing the width and height of the image by the required number of grids. Then, traverse each grid and extract the pixel values ​​in the grid as a representation of a block or region. This method is suitable for situations where the image has a uniform structure, but may not capture the details and boundaries in the image. The second method uses a clustering algorithm to divide the pixels in the image into different clusters or categories, each cluster representing a block or region. Commonly used clustering algorithms include K-means clustering, DBSCAN clustering, etc. Clustering algorithms can group pixels according to the similarity between pixels, thereby dividing the image into different blocks or regions. This method can better capture different textures, colors, and structural features in the image, and then post-process the clustering results, such as merging adjacent clusters or removing noise points.

[0089] S400. Use the GPCA algorithm to build a model for each block or region, which specifically includes the following steps:

[0090] S401. Extract the feature vectors in the block and rearrange the pixel values ​​of each block into a vector. The image can be traversed in order by row or column, and the image can be divided into multiple blocks according to the size of the block. For each block, the pixel values ​​in the block are arranged into a vector in a certain order (for example, by row or by column). In this way, the feature vector of each block is obtained. Finally, the feature vectors of each block are stored and can be organized into a matrix or a vector array for further processing and analysis.

[0091] S402. PCA is applied to reduce dimension. PCA finds the most important principal component by calculating the covariance matrix of the eigenvector, and reduces the dimension of the eigenvector according to the importance of the principal component. First, the original data is standardized so that its mean is 0 and the variance is 1. This is because PCA is calculated based on the covariance matrix. If there are different scales between the features, the calculation result will be inaccurate. The covariance matrix is ​​calculated according to the standardized data, and the covariance matrix can describe the correlation between different features. Then the covariance matrix is ​​subjected to eigenvalue decomposition to obtain the eigenvalue and the corresponding eigenvector. The eigenvector represents the principal component of the data, and the eigenvalue represents the importance of these principal components. Then, according to the size of the eigenvalue, the most important principal component is selected. Preferably, the number of principal components required can be determined according to the cumulative contribution rate of the eigenvalue. The cumulative contribution rate represents how much information of the original data can be retained when retaining the first few principal components. Finally, the original data is projected onto the selected principal component to obtain the data after dimensionality reduction. This can be achieved by matrix multiplication, multiplying the original data matrix with the eigenvector matrix.

[0092] S403. Reconstruct the model of the block, and use the eigenvectors after dimensionality reduction to reconstruct the model of the original block. When performing PCA dimensionality reduction, it is first necessary to determine the number of principal components to be retained. This can be determined based on the cumulative contribution rate of the eigenvalues. A higher cumulative contribution rate indicates that the retained principal components can better describe the original data. According to the determined number of principal components, a corresponding number of eigenvectors are selected as principal components. These eigenvectors are obtained during the PCA dimensionality reduction process. Then, the eigenvectors after dimensionality reduction are subjected to matrix multiplication with the original data to obtain the reconstructed data. Because the data is standardized before PCA dimensionality reduction, after the data is reconstructed, a de-standardization operation is required to restore the data to its original scale and range.

[0093] S500. Extracting segmentation results from the GPCA model, specifically including the following steps:

[0094] S501. Compare the models, compare the GPCA model of the image to be segmented with the GPCA model of each image block, measure the similarity between the two models, and calculate the similarity between the image to be segmented and each image block. Calculate the pixel-level difference between the image block and the segmented image. Commonly used pixel-level similarity measurement methods include mean square error (MSE) and structural similarity index (Structural Similarity Index). The mean square error measures the average difference between two pixels, while the structural similarity index not only considers the difference between pixels, but also considers the effects of brightness and contrast.

[0095] S502. Determine the best match, and take the most similar image block as part of the segmentation result based on the similarity comparison. With the similarity between the image to be segmented and each image block, set a similarity threshold. The threshold is used to determine whether the image block is similar to the image to be segmented. Image blocks with a similarity higher than the threshold will be considered as part of the segmentation result. Then traverse all image blocks and add image blocks with a similarity higher than the threshold to the segmentation result. This can be achieved using loops or vectorized operations. Finally, merge the selected image blocks to form the final segmentation result. This can be achieved using splicing, overlaying or other image processing methods.

[0096] S503. Reconstruct the segmentation result. Reconstruct the best matching image block as part of the segmentation result and place the matching image block at the corresponding position in the segmentation result. Place the most similar image block at the corresponding position in the segmentation result. If the size of the image block and the segmentation result are inconsistent, they can be scaled or cropped as needed. The most similar image block is merged, superimposed or other image processing methods are used to update the segmentation result with the existing segmentation result.

[0097] S504. Repeat the steps of determining the best match and reconstructing the segmentation result until the entire image is segmented.

[0098] S600. Post-process and optimize the segmentation results, including the following steps:

[0099] S601. Region merging, using a region growing algorithm to merge adjacent pixels, merging similar pixels into one region. Select a seed point from the image as the starting point. The seed point can be selected manually or by an automatic algorithm. Define a similarity criterion to determine whether the pixels are similar, which can be a measure of the gray value difference, color difference, or other feature difference between pixels. Then set a threshold to determine whether the pixels should be merged. If the similarity between the pixels is less than the threshold, they are merged into one region. Next, use the region growing algorithm to grow the region starting from the seed point. Traverse the adjacent pixels and determine whether to merge the pixel into the current region based on the similarity criterion and threshold conditions. Repeat the above steps until all adjacent pixels are traversed and determined to be merged.

[0100] S602. Segmentation optimization, using the watershed algorithm to perform segmentation optimization. Mark the image, and the marks are divided into foreground marks and background marks. The foreground mark represents the object or the area of ​​interest, and the background mark represents the non-object area. Use the marked image to calculate the distance transform to obtain the distance from each pixel to the nearest foreground and background pixels, which can be achieved through a distance transform algorithm (such as Euclidean distance transform or Manhattan distance transform). According to the result of the distance transform, find the seed point as the starting point of the watershed algorithm. Usually, the maximum point of the distance transform can be selected as the seed point. Use the watershed algorithm to start segmentation from the seed point. During the segmentation process, the segmentation boundary is determined by calculating the change in the gradient or water level. The watershed algorithm will form a segmentation line at the boundary to divide the image into different areas.

[0101] S603. Boundary repair, repair discontinuous or broken boundaries to obtain smooth boundary lines. Use edge connection algorithms to connect broken edge lines. The edge connection algorithm can determine whether connection is required based on the similarity and continuity between edges. Common edge connection algorithms include Hough transform, edge tracking and edge matching. For discontinuous boundary lines, interpolation methods are used to fill in the broken parts. Interpolation methods can be calculated based on known boundary points or pixels to infer missing boundary points or pixels. Common interpolation methods include linear interpolation, bilinear interpolation and spline interpolation, etc., which will not be described here one by one. Then use a boundary smoothing algorithm to smooth the boundary line to reduce noise and discontinuity. The boundary smoothing algorithm can be implemented through filtering operations or curve fitting. Common boundary smoothing methods include Gaussian filtering, median filtering, Kalman filtering and Bezier curve fitting.

[0102] S604. Curve fitting, using a curve fitting algorithm to approximate the boundary line. First, collect boundary points from the image or data. The boundary points can be pixel points extracted by the edge detection algorithm, or points manually selected by interactive marking or other methods. According to the shape and characteristics of the boundary line, select a suitable curve type for fitting. Common curve types include straight lines, polynomial curves, Bezier curves, spline curves, etc. According to the selected curve type, determine the corresponding fitting parameters. For straight line fitting, it is necessary to determine the slope and intercept; for polynomial curve fitting, it is necessary to determine the degree of the polynomial; for Bezier curve fitting, it is necessary to determine the position of the control point, etc. Use a curve fitting algorithm to fit the collected boundary points. Commonly used curve fitting algorithms include least squares method, variants of least squares method (such as RANSAC, Levenberg-Marquardt algorithm), Bezier curve fitting algorithm and spline curve fitting algorithm. To evaluate the quality of the fitting results, fitting error metrics (such as residual sum of squares, distance between the fitting curve and the original boundary line, etc.) can be used to evaluate the accuracy and degree of fitting of the fitting results. Finally, adjust and optimize the fitting results. You can adjust the fitting parameters, select different curve types, try different fitting algorithms, etc. to obtain more accurate and smooth boundary line fitting results.

[0103] like Figure 5 As shown, the system for implementing the above color medical image segmentation method includes the following components:

[0104] Data preprocessing module 01, suitable for preprocessing color medical image data;

[0105] The feature extraction module 02 is adapted to convert the preprocessed data from the original color space to the RGB space, extract features, and perform block or region division;

[0106] GPCA algorithm module 03, suitable for image segmentation and model building based on the extracted features;

[0107] The segmentation result post-processing module 04 is adapted to perform post-processing operations on the segmentation result obtained by the GPCA algorithm;

[0108] The segmentation result visualization module 05 is adapted to visualize the final segmentation result.

[0109] like Figure 6As shown, the electronic device for implementing the above-mentioned color medical image segmentation method includes: a processor 11 and a memory 12 for storing machine executable instructions; wherein the processor and the memory are usually connected to each other through an internal bus 15. In other possible implementations, the device may also include an input / output interface 13 and a communication interface 14 capable of communicating with other devices or components. Among them, by reading and executing the machine executable instructions corresponding to the control logic of the training of the machine learning model stored in the memory, the processor is prompted to:

[0110] Preprocessing color medical image data;

[0111] Convert the preprocessed data from the original color space to the RGB space;

[0112] Divide the RGB image into multiple blocks or regions;

[0113] The GPCA algorithm is used to build a model for each block or region;

[0114] Extract segmentation results from the GPCA model;

[0115] Post-process and optimize the segmentation results.

[0116] The present invention is not limited to the above-mentioned optional implementation modes. Anyone can derive other various forms of products under the inspiration of the present invention. However, no matter what changes are made in the shape or structure, all technical solutions that fall within the scope defined by the claims of the present invention fall within the protection scope of the present invention.

Claims

1. A color medical image segmentation method based on GPCA algorithm, characterized in that: The segmentation method comprises the following steps: Preprocessing color medical image data; Convert the preprocessed data from the original color space to the RGB space; Divide the RGB image into multiple blocks or regions; The GPCA algorithm is used to build a model for each block or region; Extract segmentation results from the GPCA model; Post-process and optimize the segmentation results.

2. The color medical image segmentation method based on the GPCA algorithm according to claim 1 is characterized in that: The preprocessing includes denoising, smoothing and enhancement.

3. The color medical image segmentation method based on the GPCA algorithm according to claim 2 is characterized in that: Use filters to denoise and smooth the image, and use histogram equalization or contrast enhancement methods to enhance the image.

4. The color medical image segmentation method based on the GPCA algorithm according to claim 1 is characterized in that: If the original image is in CMYK space, convert it to RGB space using the following formula: R = (1-C) * (1-K); G = (1-M) * (1-K); B = (1-Y) * (1-K); Among them, R, G, and B represent the converted RGB components, and C, M, Y, and K represent the CMYK components in the original image.

5. The color medical image segmentation method based on the GPCA algorithm according to claim 1 is characterized in that: If the original image is in HSV space, convert it to RGB space using the following formula: C = V * S; X = C*(1-|(H / 60) mod 2-1|); m=VC; If H is not limited, then (R', G', B') = (0, 0, 0); If 0<=H<60, then (R',G',B')=(C,X,0); If 60<=H<120, then (R',G',B')=(X,C,0); If 120<=H<180, then (R',G',B')=(0,C,X); If 180<=H<240, then (R',G',B')=(0,X,C); If 240<=H<300, then (R',G',B')=(X,0,C); If 300<=H<360, then (R',G',B')=(C,0,X); (R, G, B) = (R' + m, G' + m, B' + m); Among them, R, G, and B represent the converted RGB components, and H, S, and V represent the HSV components in the original image.

6. The color medical image segmentation method based on the GPCA algorithm according to claim 1 is characterized in that: The GPCA algorithm construction model includes the following steps: Extract the feature vector within the block and rearrange the pixel values ​​of each block into a vector; Apply PCA dimensionality reduction. PCA finds the most important principal components by calculating the covariance matrix of the eigenvectors and reduces the dimensionality of the eigenvectors according to the importance of the principal components. Reconstruct the model of the block and use the feature vector after dimensionality reduction to reconstruct the model of the original block.

7. The color medical image segmentation method based on the GPCA algorithm according to claim 1 is characterized in that: The extracting segmentation result comprises the following steps: Compare the models, compare the GPCA model of the image to be segmented with the GPCA model of each image block, measure the similarity between the two models, and calculate the similarity between the image to be segmented and each image block; Determine the best match and take the most similar image block as part of the segmentation result based on similarity comparison; Reconstruct the segmentation result, based on the best matching image block, reconstruct it into a part of the segmentation result, and place the matching image block to the corresponding position in the segmentation result; The steps of determining the best match and reconstructing the segmentation result are repeated until the entire image is segmented.

8. The color medical image segmentation method based on the GPCA algorithm according to claim 1, characterized in that: The post-processing and optimization comprises the following steps: Region merging, using the region growing algorithm to merge adjacent pixels and merge similar pixels into one region; Segmentation optimization, using the watershed algorithm for segmentation optimization; Boundary repair, repairing discontinuous or broken boundaries to obtain smooth boundary lines; Curve fitting, uses a curve fitting algorithm to approximate the boundary line.

9. A color medical image segmentation system based on GPCA algorithm, characterized in that: The system comprises: A data preprocessing module, suitable for preprocessing color medical image data; A feature extraction module is suitable for converting the preprocessed data from the original color space to the RGB space, extracting features, and dividing the blocks or regions; GPCA algorithm module, suitable for image segmentation and model building based on extracted features; The segmentation result post-processing module is suitable for performing post-processing operations on the segmentation results obtained by the GPCA algorithm; The segmentation result visualization module is suitable for visualizing the final segmentation results.

10. A color medical image segmentation device based on GPCA algorithm, characterized in that: The device includes: a service processor and a distributed memory, the service processor is connected to the distributed memory, the distributed memory stores a service self-management program, and is configured to store machine-readable instructions. The service processor executes the service self-management program, and when the instructions are executed by the processor, the image segmentation method as described in any one of claims 1-8 is implemented.

Citation Information

Patent Citations

  • Image retrieval method based on hierarchical features and genetic programming relevance feedback

    CN103207910A

  • Color image segmentation method implemented in Lab space and combined with K-means clustering and regional growth

    CN110956638A

Cited By

  • Image monomer method based on live-action three dimensions

    CN119762687A