A method and system for optimizing storage of CT medical image data

Through the analysis of feature directions and noise levels, combined with the quadtree algorithm and clustering algorithm, the segmentation and compression process of CT images is optimized, which solves the problem of information loss in CT image compression and improves compression efficiency and quality.

CN118467764BActive Publication Date: 2024-09-06SHANDONG PROVINCIAL HOSPITAL AFFILIATED TO SHANDONG FIRST MEDICAL UNIVERSITY (SHANDONG PROVINCIAL HOSPITAL) +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410939245.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-06
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

The compression process of CT images can easily lead to the loss of key information and affect the accuracy of diagnosis. The inaccurate segmentation position of the existing quadtree algorithm leads to a decrease in image quality after compression.

Method used

By obtaining the characteristic direction and noise level of each pixel, LBP and DBSCAN algorithms are used for clustering, and the CT image is segmented using the quadtree algorithm. The segmentation points with the highest degree of optimization are selected and median filtering and Huffman coding are performed. Compressed storage.

Benefits of technology

It improves compression efficiency and image quality, ensures the retention of key area information, and reduces storage space usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467764B
    Figure CN118467764B
Patent Text Reader

Abstract

The present invention relates to the field of image data processing technology, and in particular to a method and system for optimizing storage of CT medical image data, comprising: obtaining a target CT image; obtaining a characteristic direction according to the difference in grayscale values ​​of pixels; obtaining a target pixel; obtaining a chain curve of the target pixel according to the similarity of the characteristic direction; obtaining a noise degree according to the characteristic direction and the chain curve; obtaining a number of characteristic regions according to the noise degree; obtaining an importance degree according to the characteristic region and the noise degree; obtaining a preferred degree according to the grayscale difference and the importance degree, and then obtaining nodes and sub-regions of a quadtree. A target CT smooth image is obtained according to the sub-region and the node of the quadtree, and then the target CT image is compressed and stored. The present invention improves the efficiency and quality of compression through accurate and reliable image segmentation results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image data processing, and in particular to a method and system for optimizing storage of CT medical image data. Background Art

[0002] CT images are an important basis for doctors to make diagnoses and formulate treatment plans. The storage of CT images is of great significance for the diagnosis, treatment, monitoring and medical research of patients. When hospitals store CT images, the amount of information in the CT images is large, and the number of CT images is large. In order to reduce the storage pressure of hospitals, CT images need to be compressed.

[0003] Since there are key areas that affect disease diagnosis and non-key areas that do not affect disease diagnosis in CT images, the quadtree algorithm is often used to divide CT images, and then compress different divided areas of CT images. When using the quadtree algorithm to divide CT images, the location of the division will directly affect the quality of the compressed image. If similar image data is divided into different areas after segmentation, it is very likely to cause the loss of key information of the CT image during the compression process, leading to misdiagnosis by subsequent doctors. Summary of the invention

[0004] The present invention provides a method and system for optimizing storage of CT medical image data to solve the existing problems.

[0005] A CT medical image data optimization storage method and system of the present invention adopts the following technical solutions:

[0006] The present invention proposes a method for optimizing storage of CT medical image data, which comprises the following steps:

[0007] Acquire a number of CT images, and record any one of the CT images as a target CT image;

[0008] In a target CT image, a characteristic direction of each pixel is obtained according to a difference in grayscale values ​​between each pixel and surrounding pixels; any pixel is recorded as a target pixel; a chain curve of the target pixel is obtained according to similarities in characteristic directions between the target pixel and surrounding pixels; the chain curve includes a number of chain pixels; the noise level of the target pixel is obtained according to a difference in characteristic directions between the target pixel and surrounding pixels, and changes in all chain pixels on the chain curve;

[0009] Clustering pixels in CT images based on the noise level of pixels to obtain several feature regions; according to the differences between the feature regions and the noise level of the target pixel, the importance of the target pixel is obtained;

[0010] The target CT image is segmented using a quadtree algorithm to obtain nodes of the quadtree and a plurality of sub-regions in the target CT image; in the segmentation process, the preference of each pixel is obtained according to the grayscale difference and the importance difference of the pixel points, and the segmentation point is obtained according to the preference of each pixel point;

[0011] According to several sub-regions in the target CT image and the nodes of the quadtree, a target CT smoothed image is obtained, and the target CT image is compressed and stored.

[0012] Furthermore, the step of obtaining the characteristic direction of each pixel point according to the difference in grayscale values ​​between each pixel point and surrounding pixels includes the following specific steps:

[0013] For any pixel point in the target CT image, the LBP algorithm is used to obtain the feature vector of the pixel point; the direction of the feature vector of the pixel point is recorded as the feature direction of the pixel point; the angle between the feature direction of the pixel point and the horizontal right direction is recorded as the feature angle of the pixel point.

[0014] Furthermore, the chain curve of the target pixel is obtained according to the similarity of the characteristic directions of the target pixel and the surrounding pixels, and the specific steps include the following:

[0015] Within the eight-neighborhood range of the target pixel point, the pixel point whose corresponding feature direction has the smallest angle with the feature direction of the target pixel point is recorded as a chain pixel point. Within the eight-neighborhood range of the chain pixel point, the pixel point whose corresponding feature direction other than the target pixel point has the smallest angle with the feature direction of the chain pixel point is obtained and recorded as a new chain pixel point. This process is iterated successively until E chain pixel points are obtained, and a curve formed by connecting all the chain pixel points is recorded as the chain curve of the target pixel point; wherein E is a preset length of the chain curve.

[0016] Furthermore, the noise level of the target pixel is obtained according to the difference in characteristic directions between the target pixel and the surrounding pixels, and the changes of all chain pixels on the chain curve, and the specific steps include the following:

[0017] For any pixel point in the chain curve, the slope of the line connecting the pixel point to the next chain pixel point in the acquisition order is recorded as the change rate of the pixel point; the absolute value of the cosine value of the angle between the characteristic direction of the pixel point and the characteristic direction of the next chain pixel point in the acquisition order is recorded as the characteristic change value of the pixel point;

[0018] The noise level of the target pixel is calculated as:

[0019] ;

[0020] In the formula, is the noise level of the target pixel; is the variance of the absolute value of the cosine value of the characteristic angle of the target pixel and the characteristic angle of the pixels within the eight neighborhoods; is the rate of change of any chain pixel point in the chain curve; is the characteristic change value of any chain pixel point in the chain curve; is all the chain pixels on the chain curve The variance of .

[0021] Furthermore, clustering the pixels in the CT image based on the noise level of the pixels to obtain a number of feature regions includes the following specific steps:

[0022] The DBSCAN algorithm is used to cluster the pixels in the target CT image. The distance measurement adopts the product of the Euclidean distance between any two pixels and the noise level of the two pixels. Several regions consisting of all the pixels corresponding to any cluster in the target CT image are recorded as several feature regions.

[0023] Furthermore, the importance of the target pixel is obtained based on the difference between the feature areas and the noise level of the target pixel, and the specific steps include the following:

[0024] Record other CT images except the target CT image as reference CT images, and obtain several characteristic regions in each reference CT image; use an affine transformation algorithm to match the characteristic regions of each characteristic region in the target CT image in all reference CT images, and obtain a corresponding characteristic region of each characteristic region in the target CT image in each reference CT image; record the characteristic region where the target pixel point in the target CT image is located as the target characteristic region, and record the corresponding characteristic region of the target characteristic region in any reference CT image as the reference characteristic region of the target characteristic region;

[0025] The importance of the target pixel is calculated as follows:

[0026] ;

[0027] In the formula, is the importance of the target pixel; is the noise level of the target pixel; The number of reference feature regions for the target feature region; is the area of ​​the target feature region; For the The area of ​​the reference feature region; is the information entropy of the gray-level co-occurrence matrix of the target feature area; For the The information entropy of the gray-level co-occurrence matrix of the reference feature regions; To avoid hyperparameters with a denominator of 0; is the absolute value function; is the normalization function.

[0028] Furthermore, the target CT image is segmented using a quadtree algorithm to obtain nodes of the quadtree and several sub-regions in the target CT image, including the following specific steps:

[0029] (1) The entire target CT image is treated as a single rectangular area and also as the root node of the quadtree;

[0030] (2) For any pixel point in the rectangular area, the vertical boundary between the pixel point and the pixel point on its left is recorded as the pending vertical segmentation line of the pixel point, and the horizontal boundary between the pixel point and the pixel point above it is recorded as the pending horizontal segmentation line of the pixel point. The preference degree of each pixel point in the rectangular area is calculated, and the pixel point with the largest preference degree is selected and recorded as the segmentation point. According to the pending vertical segmentation line and the pending horizontal segmentation line of the segmentation point, the rectangular area is divided into four sub-areas, and each of the four sub-areas is recorded as a sub-node;

[0031] (3) For any sub-region, if the variance of the grayscale values ​​of the pixels in the sub-region is greater than or equal to the preset variance threshold , mark the sub-region as a rectangular region and repeat step (2); if the variance of the grayscale values ​​of the pixels in the sub-region is less than the preset variance threshold , this sub-region is not processed.

[0032] Furthermore, the step of obtaining the preference of each pixel point according to the grayscale difference and importance difference of the pixel points includes the following specific steps:

[0033] ;

[0034] In the formula, is the vertical segmentation difference degree of the i-th pixel in the rectangular area; is the length of the undetermined vertical dividing line of the i-th pixel in the rectangular area; is the gray value of the j-th pixel adjacent to the left side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the importance of the j-th pixel adjacent to the left side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the gray value of the j-th pixel adjacent to the right side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the importance of the j-th pixel adjacent to the right side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the absolute value function;

[0035] ;

[0036] In the formula, is the horizontal segmentation difference degree of the i-th pixel in the rectangular area; is the length of the undetermined horizontal dividing line of the i-th pixel in the rectangular area; is the gray value of the kth pixel adjacent to the upper side of the pending horizontal dividing line of the i-th pixel in the rectangular area; is the importance of the kth pixel adjacent to the upper side of the pending horizontal dividing line of the i-th pixel in the rectangular area; is the gray value of the kth pixel adjacent to the lower side of the undetermined horizontal dividing line of the i-th pixel in the rectangular area; is the importance of the kth pixel point adjacent to the lower side of the undetermined horizontal dividing line of the i-th pixel point in the rectangular area;

[0037] ;

[0038] In the formula, is the preference degree of the i-th pixel in the rectangular area; is the variance of the importance of the i-th pixel in the rectangular area and all the pixels in the eight neighborhoods; is the normalization function; is an exponential function with a natural constant as its base.

[0039] Furthermore, the target CT smoothed image is obtained according to the plurality of sub-regions in the target CT image and the nodes of the quadtree, and the target CT image is compressed and stored, including the following specific steps:

[0040] For several sub-regions in the target CT image, the median filtering algorithm is used to smooth each sub-region to obtain the target CT smooth image; the root node, all sub-nodes and the gray value data corresponding to each node in the target CT smooth image of the segmentation process of the target CT image are compressed and stored using Huffman coding.

[0041] The present invention also proposes a CT medical image data optimization storage system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned CT medical image data optimization storage method.

[0042] The beneficial effects of the technical solution of the present invention are as follows: the present invention determines the possibility of each pixel being a noise pixel through the difference in characteristic direction between each pixel and its surrounding pixels, avoids the interference of noise pixels in the calculation process of the importance of each pixel, and improves the accuracy of each pixel in the calculation of the importance; by matching and comparing multiple CT images, the possibility of each pixel belonging to an abnormal area is determined, and the importance of each pixel is obtained, which provides a segmentation basis for using quadtree to segment CT images. In the process of quadtree segmentation of CT images, the optimal segmentation point is selected, so that the compression efficiency of the image after segmentation and compression is higher, and the degree of information retention in the key area is higher. So far, the present invention compresses CT images through accurate and reliable CT image segmentation results, improves the compression efficiency of the compression results and the quality of the compressed images, and reduces the storage space occupied by CT medical image data. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 The present invention is a flowchart of the steps of a method for optimizing storage of CT medical image data. DETAILED DESCRIPTION

[0045] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a CT medical image data optimization storage method and system proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0046] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0047] The specific scheme of the method and system for optimizing storage of CT medical image data provided by the present invention is described in detail below with reference to the accompanying drawings.

[0048] See also Figure 1 , which shows a flowchart of a method for optimizing storage of CT medical image data provided by an embodiment of the present invention, the method comprising the following steps:

[0049] Step S001: Acquire several CT images, and record any one of the CT images as a target CT image.

[0050] It should be noted that the purpose of this embodiment is to compress the CT image, so the CT image needs to be collected.

[0051] Specifically, a number of CT images are obtained in the radiology department of the hospital; any one of the CT images is recorded as a target CT image; and other CT images except the target CT image are recorded as reference CT images.

[0052] Step S002: In the target CT image, the characteristic direction of each pixel is obtained according to the difference in grayscale values ​​between each pixel and the surrounding pixels; any pixel is recorded as the target pixel; according to the similarity of the characteristic directions of the target pixel and the surrounding pixels, a chain curve of the target pixel is obtained; according to the difference in the characteristic directions of the target pixel and the surrounding pixels, and the changes of all chain pixels on the chain curve, the noise level of the target pixel is obtained.

[0053] It should be noted that since there are large areas of non-critical areas in CT images that are not related to the diagnosis of the disease, the non-critical areas need to be compressed with a lower degree of precision; while for the key areas of the CT images that are related to the diagnosis of the disease, high-precision compression is required to improve the compression rate while ensuring the quality of the compressed image. When the target CT image is segmented using the quadtree algorithm, the more times the segmentation is performed, the higher the precision of the compression, the less loss of information in the compressed image, but the lower the compression efficiency. Therefore, when dividing the CT image, the priority of each pixel point as a quadtree segmentation point is considered, so that the grayscale distribution of the pixels in the divided area is uniform, and the number of iterative segmentations is reduced, so that the compression effect is better.

[0054] It should be further explained that in CT images, when the grayscale value near a pixel fluctuates greatly, the pixel may be a texture pixel in the CT image, and is more likely to belong to a critical area, which is an important part for doctors to observe pathology; when the grayscale value near a pixel fluctuates less, the overall distribution of the grayscale value of the local area where the pixel is located is relatively similar, and it is more likely to belong to a non-critical area. However, due to the imaging principle of CT images, there will be some noise in the CT image, and the noise pixel will also cause the grayscale value near the pixel to fluctuate greatly. Therefore, it is necessary to combine the correlation of the fluctuation of the pixel in the local range to judge the possibility that the pixel is noise. At the same time, in CT images, the judgment of the tumor area is particularly important, and the tumor generally has no obvious boundary area in the tissue, and it shows infiltrative growth. The fluctuation of the grayscale value near the tumor pixel is different from the fluctuation of the pixel inside the tissue. The fluctuation of the grayscale value near the tumor pixel has directionality, so the noise level of each pixel is calculated in this way.

[0055] Specifically, for any pixel point in the target CT image, the LBP algorithm is used to obtain the feature vector of the pixel point; the direction of the feature vector of the pixel point is recorded as the feature direction of the pixel point; the angle between the feature direction of the pixel point and the horizontal right direction is recorded as the feature angle of the pixel point; the LBP algorithm is a well-known technology and will not be described in detail in this embodiment. In the target CT image, any pixel point is recorded as the target pixel point, and within the eight-neighborhood range of the target pixel point, the pixel point with the smallest angle between the corresponding feature direction and the feature direction of the target pixel point is recorded as a chain pixel point, and within the eight-neighborhood range of the chain pixel point, the pixel point with the smallest angle between the corresponding feature direction and the feature direction of the chain pixel point other than the target pixel point is obtained and recorded as a new chain pixel point, and iterates in sequence until E chain pixel points are obtained, and the curve formed by connecting all the chain pixel points is recorded as the chain curve of the target pixel point; wherein E is the preset chain curve length, E=10, and this embodiment is described using this as an example; for the chain pixel point, For any pixel point in the curve, the slope of the line connecting the pixel point to the next chain pixel point in the acquisition order is recorded as the rate of change of the pixel point. It should be noted that the rate of change of the last chain pixel point in the chain curve is equal to the rate of change of the second to last chain pixel point in the iteration order; for any pixel point in the chain curve, the absolute value of the cosine value of the angle between the characteristic direction of the pixel point and the characteristic direction of the next chain pixel point in the acquisition order is recorded as the characteristic change value of the pixel point; it should be noted that the characteristic change value of the last chain pixel point in the chain curve is equal to the characteristic change value of the second to last chain pixel point in the iteration order.

[0056] The noise level of the target pixel is calculated as:

[0057] ;

[0058] In the formula, is the noise level of the target pixel; is the variance of the absolute value of the cosine value of the characteristic angle of the target pixel and the characteristic angle of the pixels within its eight neighborhoods; is the rate of change of any chain pixel point in the chain curve; is the characteristic change value of any chain pixel point in the chain curve; is all the chain pixels on the chain curve The variance of .

[0059] It should be noted that The larger the value of is, the more likely the target pixel is to be in a more chaotic internal area of ​​the tissue, and the higher the noise level of the target pixel is; The larger the value of , the greater the change of the chain pixel points on the chain curve of the target pixel point, the less likely it is a tumor pixel point, and the more likely it is a noise pixel point; The larger it is, the less likely the target pixel is to belong to the key area in the target CT image, and the less important the target pixel is in quadtree segmentation.

[0060] Step S003: clustering the pixels in the CT image based on the noise levels of the pixels to obtain a number of feature regions; obtaining the importance of the target pixel based on the differences between the feature regions and the noise levels of the target pixel.

[0061] It should be noted that when using CT images to judge the patient's condition, the diagnosis is mainly based on the symptoms of the abnormal area, such as the tumor area, so it is necessary to give these abnormal areas a higher degree of retention during the compression process to retain more key information. Therefore, when using the quadtree algorithm to segment the CT image, it is necessary to segment at the pixels with large changes in importance, so as to divide an abnormal area into the same sub-area. CT images of the same part of different individuals are similar, but the abnormal area of ​​the patient is different from the same position area of ​​other individuals. Therefore, the possibility of the pixel belonging to the abnormal area is judged based on the difference between the characteristic area in the target CT image and the characteristic area matched in the reference CT image.

[0062] Specifically, the DBSCAN algorithm is used to cluster the pixels in the target CT image, and the distance measurement adopts the product of the Euclidean distance between any two pixels and the noise level of the two pixels. The DBSCAN algorithm is a well-known technology, and the specific method is not introduced here. The full name of the DBSCAN algorithm in Chinese is density-based clustering algorithm, and the full name in English is Density-Based Spatial Clustering of Applications with Noise; a number of regions consisting of all pixel points corresponding to any cluster in the target CT image are recorded as a number of feature regions; according to the method for obtaining the feature region in the target CT image, the feature region in the reference CT image is obtained; using the affine transformation algorithm, the feature regions of each feature region in the target CT image in all reference CT images are matched to obtain a feature region corresponding to each feature region in the target CT image in each reference CT image; the affine transformation algorithm is a well-known technology, and the specific method is not introduced here; the feature region where the target pixel point in the target CT image is located is recorded as the target feature region, and the feature region corresponding to the target feature region in any reference CT image is recorded as the reference feature region of the target feature region.

[0063] The importance of the target pixel is calculated as follows:

[0064] ;

[0065] In the formula, is the importance of the target pixel; is the noise level of the target pixel; is the number of reference feature regions of the target feature region, that is, the number of reference CT images; is the area of ​​the target feature region; For the The area of ​​the reference feature region; is the information entropy of the gray-level co-occurrence matrix of the target feature area; For the The information entropy of the gray level co-occurrence matrix of the reference feature region, the information entropy of the gray level co-occurrence matrix is ​​a well-known technology, and the specific method is not introduced here; To avoid hyperparameters with a denominator of 0, this embodiment uses to give a narrative; is the absolute value function; is a linear normalization function, and the normalized object is all pixels in the target CT image. .

[0066] It should be noted that Indicates the effectiveness of the target pixel. The larger its value is, the less likely the target pixel is to be a noise pixel, and the greater the importance of the target pixel. Indicates the area feature difference of the target feature area. The larger its value is, the greater the area difference between the target feature area and the reference feature area is, the more likely it is an abnormal area, and the greater the importance of the target pixel point is; It indicates the grayscale feature difference of the target feature area. The larger the value, the greater the grayscale difference between the target feature area and the reference feature area, the more likely it is an abnormal area, and the greater the importance of the target pixel.

[0067] Step S004: Use the quadtree algorithm to segment the target CT image to obtain nodes of the quadtree and several sub-regions in the target CT image; in the segmentation process, the preference level of each pixel is obtained according to the grayscale difference and importance difference of the pixel points, and the segmentation point is obtained according to the preference level of each pixel point.

[0068] It should be noted that when using the quadtree algorithm to segment CT images, pixels with similar grayscale distribution and similar importance need to be divided into one area, so as to improve the compression efficiency while improving the retention of key information after compression.

[0069] Specifically, the segmentation process of the target CT image is:

[0070] (1) The entire target CT image is treated as a single rectangular area and also as the root node of the quadtree;

[0071] (2) For any pixel point in the rectangular area, the vertical boundary between the pixel point and the pixel point on its left is recorded as the pending vertical dividing line of the pixel point, and the horizontal boundary between the pixel point and the pixel point above it is recorded as the pending horizontal dividing line of the pixel point. The preference degree of each pixel point in the rectangular area is calculated, and the pixel point with the highest preference degree is selected and recorded as the dividing point. According to the pending vertical dividing line and the pending horizontal dividing line of the dividing point, the rectangular area is divided into four sub-areas, and each of the four sub-areas is recorded as a sub-node.

[0072] (3) For any sub-region, if the variance of the grayscale values ​​of the pixels in the sub-region is greater than or equal to the preset variance threshold , record the sub-region as a rectangular region and repeat step (2); , this embodiment is described as an example; if the variance of the grayscale value of the pixel point in the sub-region is less than the preset variance threshold , this sub-region is not processed.

[0073] The specific calculation method for calculating the preference degree of each pixel point in the rectangular area is as follows:

[0074] ;

[0075] In the formula, is the preference degree of the i-th pixel in the rectangular area; is the vertical segmentation difference degree of the i-th pixel in the rectangular area; is the horizontal segmentation difference degree of the i-th pixel in the rectangular area; is the length of the undetermined vertical dividing line at the i-th pixel in the rectangular area, that is, the longitudinal width of the rectangular area; is the gray value of the j-th pixel adjacent to the left side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the importance of the j-th pixel adjacent to the left side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the gray value of the j-th pixel adjacent to the right side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the importance of the j-th pixel adjacent to the right side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the length of the undetermined horizontal dividing line of the i-th pixel in the rectangular area, that is, the horizontal line length of the rectangular area; is the gray value of the kth pixel adjacent to the upper side of the pending horizontal dividing line of the i-th pixel in the rectangular area; is the importance of the kth pixel adjacent to the upper side of the pending horizontal dividing line of the i-th pixel in the rectangular area; is the gray value of the kth pixel adjacent to the lower side of the undetermined horizontal dividing line of the i-th pixel in the rectangular area; is the importance of the kth pixel point adjacent to the lower side of the undetermined horizontal dividing line of the i-th pixel point in the rectangular area; is the variance of the importance of the i-th pixel in the rectangular area and all the pixels in its eight neighborhoods; is a linear normalization function, and the normalized object is all pixels in the rectangular area. ; is an exponential function with a natural constant as the base. Model to present inverse proportional relationship and normalization, As the input of the model, the implementer can set the inverse proportional function and normalization function according to the actual situation.

[0076] It should be noted that The larger the value is, the more the area with uniform grayscale distribution can be divided into the same sub-area after the division according to the undetermined vertical dividing line of the i-th pixel in the rectangular area, and the higher the degree of retention of key information after the CT image segmentation and compression; Indicates the degree of horizontal segmentation difference. The larger its value is, the more the area with uniform grayscale distribution can be divided into the same sub-area after the undetermined horizontal segmentation line of the i-th pixel in the rectangular area is divided, and the higher the degree of retention of key information after CT image segmentation and compression; The larger the value is, the more chaotic the importance of the vicinity of the i-th pixel in the rectangular area is, the more likely it is to be an important position for disease diagnosis, the more likely it is to be key information, and the less suitable it is to be segmented at this pixel.

[0077] It should be noted that the pixel points at the boundary of the rectangular area do not participate in the calculation of the optimization degree.

[0078] Step S005: Obtain a target CT smoothed image according to a number of sub-regions in the target CT image and the nodes of the quadtree, and compress and store the target CT image.

[0079] For several sub-regions in the target CT image, each sub-region is smoothed respectively using the median filtering algorithm to obtain the target CT smooth image; the root node of the segmentation process of the target CT image, all sub-nodes and the gray value data corresponding to each node in the target CT smooth image are compressed and stored using Huffman coding; the median filtering algorithm and Huffman coding are well-known technologies, and the specific methods are not introduced here.

[0080] At this point, this embodiment is completed.

[0081] The present invention also provides a CT medical image data optimization storage system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned CT medical image data optimization storage method.

[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for optimizing storage of CT medical image data, characterized in that: The method comprises the following steps: Acquire a number of CT images, and record any one of the CT images as a target CT image; In a target CT image, a characteristic direction of each pixel is obtained according to a difference in grayscale values ​​between each pixel and surrounding pixels; any pixel is recorded as a target pixel; a chain curve of the target pixel is obtained according to similarities in characteristic directions between the target pixel and surrounding pixels; the chain curve includes a number of chain pixels; the noise level of the target pixel is obtained according to a difference in characteristic directions between the target pixel and surrounding pixels, and changes in all chain pixels on the chain curve; The specific steps of obtaining the characteristic direction of each pixel point according to the difference in the grayscale value of each pixel point and the surrounding pixels points are as follows: For any pixel point in the target CT image, the LBP algorithm is used to obtain the feature vector of the pixel point; the direction of the feature vector of the pixel point is recorded as the feature direction of the pixel point; the angle between the feature direction of the pixel point and the horizontal right direction is recorded as the feature angle of the pixel point; The noise level of the target pixel is obtained according to the difference in characteristic directions between the target pixel and the surrounding pixels, and the changes of all chain pixels on the chain curve, and the specific steps include the following: For any pixel point in the chain curve, the slope of the line connecting the pixel point to the next chain pixel point in the acquisition order is recorded as the change rate of the pixel point; the absolute value of the cosine value of the angle between the characteristic direction of the pixel point and the characteristic direction of the next chain pixel point in the acquisition order is recorded as the characteristic change value of the pixel point; The noise level of the target pixel is calculated as: ; In the formula, is the noise level of the target pixel; is the variance of the absolute value of the cosine value of the characteristic angle of the target pixel and the characteristic angle of the pixels within the eight neighborhoods; is the rate of change of any chain pixel point in the chain curve; is the characteristic change value of any chain pixel point in the chain curve; is all the chain pixels on the chain curve The variance of Clustering pixels in CT images based on the noise level of pixels to obtain several feature regions; according to the differences between the feature regions and the noise level of the target pixel, the importance of the target pixel is obtained; The importance of the target pixel is obtained based on the difference between the feature areas and the noise level of the target pixel, and the specific steps include the following: Record other CT images except the target CT image as reference CT images, and obtain several characteristic regions in each reference CT image; use an affine transformation algorithm to match the characteristic regions of each characteristic region in the target CT image in all reference CT images, and obtain a corresponding characteristic region of each characteristic region in the target CT image in each reference CT image; record the characteristic region where the target pixel point in the target CT image is located as the target characteristic region, and record the corresponding characteristic region of the target characteristic region in any reference CT image as the reference characteristic region of the target characteristic region; The importance of the target pixel is calculated as follows: ; In the formula, is the importance of the target pixel; is the noise level of the target pixel; The number of reference feature regions for the target feature region; is the area of ​​the target feature region; For the The area of ​​the reference feature region; is the information entropy of the gray-level co-occurrence matrix of the target feature area; For the The information entropy of the gray-level co-occurrence matrix of the reference feature regions; To avoid hyperparameters with a denominator of 0; is the absolute value function; is the normalization function; The target CT image is segmented using a quadtree algorithm to obtain nodes of the quadtree and a plurality of sub-regions in the target CT image; in the segmentation process, the preference of each pixel is obtained according to the grayscale difference and the importance difference of the pixel points, and the segmentation point is obtained according to the preference of each pixel point; The target CT image is segmented using a quadtree algorithm to obtain nodes of the quadtree and several sub-regions in the target CT image, and the specific steps include the following: (1) The entire target CT image is treated as a single rectangular area and also as the root node of the quadtree; (2) For any pixel point in the rectangular area, the vertical boundary between the pixel point and the pixel point on its left is recorded as the pending vertical segmentation line of the pixel point, and the horizontal boundary between the pixel point and the pixel point above it is recorded as the pending horizontal segmentation line of the pixel point. The preference degree of each pixel point in the rectangular area is calculated, and the pixel point with the largest preference degree is selected and recorded as the segmentation point. According to the pending vertical segmentation line and the pending horizontal segmentation line of the segmentation point, the rectangular area is divided into four sub-areas, and each of the four sub-areas is recorded as a sub-node; (3) For any sub-region, if the variance of the grayscale values ​​of the pixels in the sub-region is greater than or equal to the preset variance threshold , mark the sub-region as a rectangular region and repeat step (2); if the variance of the grayscale values ​​of the pixels in the sub-region is less than the preset variance threshold , this sub-region is not processed; The step of obtaining the preference of each pixel point according to the grayscale difference and importance difference of the pixel points includes the following specific steps: ; In the formula, is the vertical segmentation difference degree of the i-th pixel in the rectangular area; is the length of the undetermined vertical dividing line of the i-th pixel in the rectangular area; is the gray value of the j-th pixel adjacent to the left side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the importance of the j-th pixel adjacent to the left side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the gray value of the j-th pixel adjacent to the right side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the importance of the j-th pixel adjacent to the right side of the pending vertical dividing line of the i-th pixel in the rectangular area; is the absolute value function; ; In the formula, is the horizontal segmentation difference degree of the i-th pixel in the rectangular area; is the length of the undetermined horizontal dividing line of the i-th pixel in the rectangular area; is the gray value of the kth pixel adjacent to the upper side of the pending horizontal dividing line of the i-th pixel in the rectangular area; is the importance of the kth pixel adjacent to the upper side of the pending horizontal dividing line of the i-th pixel in the rectangular area; is the gray value of the kth pixel adjacent to the lower side of the undetermined horizontal dividing line of the i-th pixel in the rectangular area; is the importance of the kth pixel point adjacent to the lower side of the undetermined horizontal dividing line of the i-th pixel point in the rectangular area; ; In the formula, is the preference degree of the i-th pixel in the rectangular area; is the variance of the importance of the i-th pixel in the rectangular area and all the pixels in the eight neighborhoods; is the normalization function; is an exponential function with a natural constant as base; According to several sub-regions in the target CT image and the nodes of the quadtree, a target CT smoothed image is obtained, and the target CT image is compressed and stored.

2. The method for optimizing storage of CT medical image data according to claim 1, characterized in that: The specific steps of obtaining the chain curve of the target pixel point according to the similarity of the characteristic directions of the target pixel point and the surrounding pixels are as follows: Within the eight-neighborhood range of the target pixel point, the pixel point whose corresponding feature direction has the smallest angle with the feature direction of the target pixel point is recorded as a chain pixel point. Within the eight-neighborhood range of the chain pixel point, the pixel point whose corresponding feature direction other than the target pixel point has the smallest angle with the feature direction of the chain pixel point is obtained and recorded as a new chain pixel point. This process is iterated successively until E chain pixel points are obtained, and a curve formed by connecting all the chain pixel points is recorded as the chain curve of the target pixel point; wherein E is a preset length of the chain curve.

3. The method for optimizing storage of CT medical image data according to claim 1, characterized in that: The pixel points in the CT image are clustered based on the noise level of the pixel points to obtain a number of feature areas, and the specific steps include the following: The DBSCAN algorithm is used to cluster the pixels in the target CT image. The distance measurement adopts the product of the Euclidean distance between any two pixels and the noise level of the two pixels. Several regions consisting of all the pixels corresponding to any cluster in the target CT image are recorded as several feature regions.

4. The method for optimizing storage of CT medical image data according to claim 1, characterized in that: The target CT smoothed image is obtained according to the plurality of sub-regions in the target CT image and the nodes of the quadtree, and the target CT image is compressed and stored, and the specific steps include the following: For several sub-regions in the target CT image, the median filtering algorithm is used to smooth each sub-region to obtain the target CT smooth image; the root node, all sub-nodes and the gray value data corresponding to each node in the target CT smooth image of the segmentation process of the target CT image are compressed and stored using Huffman coding.

5. A CT medical image data optimization storage system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the computer program is executed by the processor, the steps of the method for optimizing storage of CT medical image data as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Medical remote intelligent monitoring method and system

    CN117156182A

  • Medical examination big data compression and storage system based on space redundancy

    CN117201800A

  • DNA detection data processing method and system based on Internet of Things

    CN118247170A

  • Point cloud denoising method, system, and device employing image segmentation, and storage medium

    WO2021142996A1