A superpixel-based medical image data fast labeling method
By using a semi-automatic labeling method based on superpixels, the problems of time-consuming, labor-intensive, and poor universality of medical image labeling are solved, achieving fast, accurate, and consistent labeling results.
Patent Information
- Application Number
- CN202410975517.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Existing medical image labeling methods are time-consuming and labor-intensive, and it is difficult to guarantee quality control requirements. Automated labeling algorithms lack universality due to differences in equipment and scanning parameters.
A semi-automatic marking method based on superpixels is adopted, which achieves rapid marking of target areas by grayscale mapping, manual marking of inner contours and outer rectangles, combined with superpixel calculation and fine-tuning.
It improves the speed and accuracy of labeling, reduces manual workload, ensures the consistency of labeling quality and the universality of the algorithm, and reduces the amount of computation.
Smart Images

Figure CN119181092B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of medical image processing technology, specifically relating to a method for rapid labeling of medical image data based on superpixels. Background Technology
[0002] Medical imaging is a crucial component of medical big data, accounting for 90% of hospital data. With the rise and development of AI technology, artificial intelligence research in medical imaging has become a very popular research field. Organ and disease annotation is fundamental to AI in medical imaging. Both machine learning and deep learning require large sample sizes and a large number of labels. Traditional annotation methods are time-consuming, labor-intensive, and struggle to guarantee quality control. Furthermore, differences in equipment and scanning parameters in medical images result in significant variations in image grayscale, posing a challenge to the universality of automated annotation algorithms. Therefore, a more effective and universal method is needed to address this issue, improving both annotation efficiency and quality simultaneously.
[0003] The current mainstream methods for marking target outlines mainly include the following: manual outlining, region growing, and artificial intelligence.
[0004] The manual outlining method mainly uses a brush to draw a closed curve along the outline of the target, and the image area enclosed by this curve is the target area.
[0005] The region-growing approach first manually selects seed points for the target region. Based on the grayscale and gradient differences between the seed points and their surrounding pixels, the contour boundaries are found to obtain local regions. This operation is repeated until the entire target is grown.
[0006] The AI-based automatic segmentation method trains a segmentation model in the early stages, and in actual use, the model can automatically complete the segmentation of the specified target contour.
[0007] The disadvantages of the current methods are as follows:
[0008] Manual outlining requires a significant amount of human effort to complete the marking task. It is complex, time-consuming, and the marked outline varies from person to person. It is also affected by factors such as monitor size and window width / level. Therefore, this method has the lowest technical content, but most people are unwilling to use it.
[0009] Region-based growth is more convenient than manual outlining, as it only requires adding seed points to the target area. However, it is affected by factors such as target contrast, color uniformity, outline sharpness, and foreground-background differences, making it difficult to mark the complete outline of the target area under uniform growth conditions. It requires continuous adjustment of growth parameters, thus necessitating some experience in graphics and image processing. Furthermore, there are cases where some blurred boundaries cannot be grown at all, requiring manual repair.
[0010] Artificial intelligence approaches involve fully automated segmentation, a relatively new labeling method that can quickly segment the entire target. However, AI models lack versatility and can only achieve automatic segmentation for targets that have been trained on; otherwise, they are not supported. To train the segmentation model, a large number of samples need to be labeled using non-AI methods in the early stages. The segmentation accuracy is greatly affected by the model algorithm and generally requires manual refinement. Therefore, there are still relatively few effective models at present.
[0011] Therefore, it is necessary to develop a new fast annotation method. Summary of the Invention
[0012] The purpose of this invention is to overcome the shortcomings of the prior art and provide a fast labeling method for medical image data based on superpixels.
[0013] To address the technical problem, the present invention provides a rapid labeling method for medical image data based on superpixels, comprising the following steps:
[0014] Step 1: Import Dicom medical images;
[0015] Step 2: Perform grayscale mapping on the Dicom medical image. After grayscale mapping, there are three cases: if superpixel calculation is performed directly, skip to step 6; if the outer rectangle is manually marked, skip to step 5; if the approximate inner contour of the target is manually marked, skip to step 3.
[0016] Step 3: Manually mark the approximate inner contour of the target, offsetting the actual contour by the average radius of one superpixel block, but ensuring it remains within the target area;
[0017] Offset the true contour from the average radius of a single superpixel block (offset the true contour from the average radius of a single superpixel block region). For example, each superpixel block is an irregular shape, and its coverage radius may be within a certain range. Therefore, the average value is taken to ensure that the marked area is not offset too much, which would cause the tracking area to be too large or too small.
[0018] Step 4: Based on the inner contour manually marked in Step 3, obtain the maximum and minimum values of the horizontal and vertical coordinates of the inner contour. Use these values to determine the minimum bounding rectangle, and then expand the size by 3 to 5 superpixel blocks to generate the outer frame. Skip to Step 7.
[0019] Step 5: Manually mark the outer rectangle containing the target. Mark the outer rectangle according to the target size, then skip to step 7;
[0020] Step 6: No markers are used; the entire Dicom medical image is used as the outer frame.
[0021] Step 7: Extract the image sub-images corresponding to the outer frames obtained in steps 4, 5, and 6, calculate superpixels, and obtain multiple superpixel blocks;
[0022] Step 8: Superpixel fine-tuning. This fine-tuning optimizes the segmentation contour matching degree through one of two methods: window width and window level adjustment, or superpixel number adjustment.
[0023] Step 9: Based on the superpixel calculation results, if the inner contour was manually marked in the previous steps, proceed to step 10; otherwise, proceed to step 11.
[0024] Step 10: Perform an intersection operation between the manually marked inner contour and the superpixel blocks, and label the superpixel blocks that the contour passes through. The outer ring boundary surrounded by these labeled superpixel blocks is the target contour. Use the hole-filling algorithm to set all superpixel blocks in the contour as the target area to obtain the marking result, and proceed to step 11.
[0025] Step 11: Manually select superpixel blocks or define superpixel blocks in the contour area and automatically fill them, or discard and correct the superpixel blocks with deviations in Step 10, and finally obtain the effective target area, and convert it into a binary image. The inner and outer contours of this binary image are mapped onto the original Dicom medical image to obtain the labeling result.
[0026] Preferably, step 2 performs grayscale mapping on the original Dicom medical image according to the default window width and window level set for the examination item, so that the grayscale values of Dicom images obtained by different devices and different scanning parameters are controlled within a uniform standard range.
[0027] Preferably, the grayscale mapping method is as follows: First, a standard image is determined from the sample set, and the window width and window level of the DICOM image are obtained according to the DICOM fields Window Center and Window Width as g. ww and g wc Based on the window width and window level, the effective visible grayscale range is:
[0028]
[0029] Then, for any DICOM image, the corresponding effective visible grayscale range can be obtained as g'. min and g' max Let G' be a certain grayscale value of a Dicom image. org The grayscale mapping calculation formula is as follows:
[0030]
[0031] In the formula:
[0032] G' org The CT values are from the original DICOM image;
[0033] G' new This is the grayscale value after adjusting the window width and window level.
[0034] Preferably, in step 3, the superpixel block refers to the average size of all superpixel blocks, and the evaluation method is as follows: Let the number of superpixels be n, and the original DICOM image size be width w and height h, then the average number of superpixel blocks P is:
[0035]
[0036] If each superpixel is evaluated as a circle, then the average radius of the superpixel is:
[0037]
[0038] As the number of superpixels increases, the average radius of the superpixels becomes smaller, and the level of detail increases.
[0039] Preferably, the superpixel calculation in step 7 uses the SEEDS or LSC superpixel algorithm.
[0040] Preferably, in step 8, superpixel fine-tuning is achieved by adjusting the number of superpixels. By controlling the parameter of the superpixel block size, different numbers of superpixels are selected for target tissues of different scales or different texture complexities to control the segmentation precision and edge matching degree, and the CT image is controlled within the range of [500, 6000].
[0041] Preferably, in step 10, performing the intersection operation between the manually marked inner contour and the superpixel block specifically involves: recording each pixel of the manually marked inner contour line and setting it as a set U. label Generate a binary contour map F label The outline value is 1, and the background value is 0; similarly, a binary image is generated for each superpixel block. The method for determining whether a superpixel intersects with a contour is as follows: By traversing all superpixel blocks, all intersection relationships with the contour line are obtained. Merging the intersecting superpixel blocks yields a superpixel block ring, the outer boundary of which is the target contour.
[0042] Compared with the prior art, the advantages of the present invention are as follows:
[0043] (1) This invention discloses a fast labeling method for medical image data based on superpixels, which realizes a semi-automatic and universal labeling scheme and solves many problems in the labeling of organs and tissues in medical images, such as quality consistency, target universality, manual workload, program calculation efficiency and computational load.
[0044] (2) The present invention divides the image into blocks through dynamic superpixel calculation, obtains the effective target area by matching the manually marked inner contour with the calculated superpixel blocks, and corrects the addition or subtraction of superpixel blocks by manually selecting or sliding the mouse trajectory, matching the target contour, reducing the amount of calculation and improving the marking speed.
[0045] (3) The present invention manually marks the outer rectangular box containing the target, which can be large or small, reducing the amount of superpixel calculation and the influence of complex external structures and grayscale on the superpixel calculation of the target area, thereby improving the marking speed;
[0046] (4) The manual operation part of this invention only requires manual rough marking of the inner contour of the target, without any requirement for contour accuracy. The marking speed is fast and highly flexible, which can ensure the consistency of marking results for different users and improve marking accuracy. Attached Figure Description
[0047] Figure 1 A flowchart of a rapid labeling method for medical image data based on superpixels according to the present invention;
[0048] Figure 2 The original CT axial slice image and its window width and window level adjustment diagram of Embodiment 6 of the present invention;
[0049] Figure 3 The manual drawing of the target outline diagram in Embodiment 6 of the present invention;
[0050] Figure 4 The manual drawing of the inner contour of the target and the automatic generation of the outer frame diagram in Embodiment 6 of the present invention;
[0051] Figure 5 The target ROI map based on manual contour extraction in Embodiment 6 of the present invention;
[0052] Figure 6 The full-image superpixel calculation result diagram of Embodiment 6 of the present invention;
[0053] Figure 7 The calculation results of ROI superpixels in Embodiment 6 of the present invention;
[0054] Figure 8 1. ROI edge superpixel block map of Embodiment 6 of the present invention;
[0055] Figure 9 The ROI target contour diagram of Embodiment 6 of the present invention;
[0056] Figure 10 The target contour original image mapping diagram of Embodiment 6 of the present invention. Detailed Implementation
[0057] The specific implementation of the present invention is described below with reference to embodiments:
[0058] It should be noted that the contents shown in the accompanying drawings are only for the purpose of assisting those skilled in the art in understanding and reading the principles, features and contents disclosed in the specification, and are not intended to limit the conditions under which the present invention can be implemented. Without affecting the effects and objectives that the present invention can produce, all contents should still fall within the scope of the technical content disclosed in the present invention.
[0059] A superpixel is a small region composed of a series of adjacent pixels that share similar characteristics such as color, brightness, and texture. These small regions mostly retain useful information for further image segmentation and generally do not destroy the boundary information of objects in the image. A superpixel is essentially dividing a pixel-level image into district-level images; it is an abstraction of basic information elements.
[0060] Example 1
[0061] This invention discloses a fast labeling method for medical image data based on superpixels, comprising the following steps:
[0062] Step 1: Import Dicom medical images;
[0063] Step 2: Perform grayscale mapping on the Dicom medical image. After grayscale mapping, there are three cases: if superpixel calculation is performed directly, skip to step 6; if the outer rectangle is manually marked, skip to step 5; if the approximate inner contour of the target is manually marked, skip to step 3.
[0064] Step 3: Manually mark the approximate inner contour of the target, offsetting the actual contour by the average radius of a superpixel block, but ensuring it remains within the target area;
[0065] Manually mark the approximate inner contour of the target. This marking does not need to be precise. The offset size only needs to be smaller than a single superpixel block, ranging from a few pixels to twenty-odd pixels. Therefore, the marking can be relatively arbitrary and fast.
[0066] Step 4: Based on the inner contour manually marked in Step 3, obtain the maximum and minimum values of the horizontal and vertical coordinates of the inner contour. Use these values to determine the minimum bounding rectangle, and then expand the size by 3 to 5 superpixel blocks to generate the outer frame. Skip to Step 7.
[0067] Step 5: Manually mark the outer bounding box containing the target. Mark the outer bounding box according to the target size, then skip to step 7. The main purpose is to reduce the amount of superpixel calculation and the impact of complex surrounding structures and grayscale on the superpixel calculation of the target area.
[0068] Step 6: No markers are used; the entire Dicom medical image is used as the outer frame.
[0069] Step 7: Extract the image sub-image corresponding to the outer frame obtained in steps 4, 5, and 6, calculate superpixels, and obtain multiple superpixel blocks. The superpixel blocks are blocks of the result calculated by the superpixel algorithm.
[0070] The meaning of an image sub-image is to extract the corresponding ROI region based on the marked outline, and use it as a small image that only contains the target region. The purpose is to reduce the amount of computation and improve the marking speed.
[0071] Step 8: Superpixel fine-tuning. This fine-tuning optimizes the segmentation contour matching degree through one of two methods: window width and window level adjustment, or superpixel number adjustment.
[0072] Step 9: Based on the superpixel calculation results, if the inner contour was manually marked in the previous steps, proceed to step 10; otherwise, proceed to step 11.
[0073] Step 10: Perform an intersection operation between the manually marked inner contour and the superpixel blocks, and label the superpixel blocks that the contour passes through. The outer ring boundary surrounded by these labeled superpixel blocks is the target contour. Use the hole-filling algorithm to set all superpixel blocks in the contour as the target area to obtain the marking result, and proceed to step 11.
[0074] Step 11: Manually select superpixel blocks or define superpixel blocks in the contour area and automatically fill them, or discard and correct the superpixel blocks with deviations in Step 10, and finally obtain the effective target area, and convert it into a binary image. The inner and outer contours of this binary image are mapped onto the original Dicom medical image to obtain the labeling result.
[0075] Example 2
[0076] like Figure 1 As shown, this invention discloses a method for rapid labeling of medical image data based on superpixels, comprising the following steps:
[0077] S1: Read Dicom medical images;
[0078] S2: Grayscale mapping;
[0079] S3: Mark the general outline;
[0080] S4: Generate the outer frame;
[0081] S5: Mark the outer frame;
[0082] S6: Unmarked;
[0083] S7: Superpixel calculation;
[0084] S8: Superpixel fine-tuning;
[0085] S9: Is there an outline marker?
[0086] S10: Calculate and match superpixel blocks based on the contour;
[0087] S11: Manual target block calibration / correction to generate a binary image.
[0088] Example 3
[0089] Preferably, step 2 performs grayscale mapping on the original Dicom medical image according to the default window width and window level set for the examination item, so that the grayscale values of Dicom images obtained by different devices and different scanning parameters are controlled within a uniform standard range.
[0090] The main purpose of this step is to address the significant differences in grayscale range that may exist between images scanned from different sources or using different devices. Grayscale mapping can correct the grayscale values of different images to a uniform range.
[0091] Preferably, the grayscale mapping method is as follows: First, a standard image is determined from the sample set, and the window width and window level of the DICOM image are obtained according to the DICOM fields Window Center and Window Width as g. ww and g wc Based on the window width and window level, the effective visible grayscale range is:
[0092]
[0093] Then, for any DICOM image, the corresponding effective visible grayscale range can be obtained as g'. min and g' max Let G' be a certain grayscale value of a Dicom image. org The grayscale mapping calculation formula is as follows:
[0094]
[0095] In the formula:
[0096] G' orgThe CT values are from the original DICOM image;
[0097] G' new This is the grayscale value after adjusting the window width and window level.
[0098] Example 4
[0099] Preferably, in step 3, the superpixel block refers to the average size of all superpixel blocks, and the evaluation method is as follows: Let the number of superpixels be n, and the original DICOM image size be width w and height h, then the average number of superpixel blocks P is:
[0100]
[0101] If each superpixel is evaluated as a circle, then the average radius of the superpixel is:
[0102]
[0103] As the number of superpixels increases, the average radius of the superpixels becomes smaller, and the level of detail increases.
[0104] Preferably, the superpixel calculation in step 7 uses the SEEDS or LSC superpixel algorithm.
[0105] Preferably, in step 8, superpixel fine-tuning is achieved by adjusting the number of superpixels. By controlling the parameter of the superpixel block size, different numbers of superpixels are selected for target tissues of different scales or different texture complexities to control the segmentation precision and edge matching degree, and the CT image is controlled within the range of [500, 6000].
[0106] Example 5
[0107] Preferably, in step 10, performing the intersection operation between the manually marked inner contour and the superpixel block specifically involves: recording each pixel of the manually marked inner contour line and setting it as a set U. label Generate a binary contour map F label The outline value is 1, and the background value is 0; similarly, a binary image is generated for each superpixel block. The method for determining whether a superpixel intersects with a contour is as follows: By traversing all superpixel blocks, all intersection relationships with the contour line are obtained. Merging the intersecting superpixel blocks yields a superpixel block ring, the outer boundary of which is the target contour.
[0108] Example 6
[0109] like Figure 1 As shown, the method of the present invention is used to quickly label medical image data. The specific steps are as follows:
[0110] Step 1: As Figure 2As shown, the Dicom medical image is read in. Figure 2 (Original image of China A);
[0111] Step 2: As Figures 2-4 As shown, grayscale mapping processing is performed on Dicom medical images. Figure 2 (Middle B-mode window image), after grayscale mapping processing, there are 3 cases. If superpixel calculation is performed directly, skip to step 6. If the rectangular outline is manually defined ( Figure 3 (Draw the outer frame in step A, and the outline in step B). You can skip to step 5. If you manually define the approximate inner outline of the target ( Figure 4 If you see the red outlines of A (right kidney outline), B (left kidney outline), and C (vertebral body outline), you can skip to step 3.
[0112] Step 3: Manually mark the approximate inner contour of the target, offsetting the actual contour by the average radius of a superpixel block, but ensuring it remains within the target area;
[0113] Step 4: Based on the inner contour manually marked in Step 3, obtain the maximum and minimum values of the horizontal and vertical coordinates of the inner contour. Use these values to determine the minimum bounding rectangle, and then expand the size by 3 superpixel blocks to obtain the outer frame. Figure 4 (Green outline), skip to step 7;
[0114] Step 5: Manually mark the outer rectangle containing the target, define the outer rectangle according to the target size, and skip to step 7;
[0115] Step 6: No markers are used; the entire Dicom medical image is used as the outer frame.
[0116] Step 7: Extract the image sub-image corresponding to the outer frame obtained in steps 4, 5, and 6 (e.g., ...). Figure 5 As shown in the diagram, (A: right kidney, B: left kidney, C: vertebral body, D: right kidney, E: left kidney, F: vertebral body), superpixels are calculated, resulting in multiple superpixel blocks as shown. Figure 6 , Figure 7 As shown, Figure 6 The images show the results of superpixel calculations for the entire image. A represents a superpixel slice from the original image, and B represents a superpixel slice from the adjusted window image. Figure 7 The image shows the results of the ROI superpixel calculation: A is the right kidney, B is the left kidney, C is the vertebral body, D is the right kidney, E is the left kidney, and F is the vertebral body.
[0117] Step 8: Superpixel fine-tuning. This adjustment can be achieved in two ways to optimize the segmentation contour matching: one is to adjust the window width and window level, and the other is to adjust the number of superpixels, so as to achieve a better target area segmentation effect.
[0118] Step 9: Based on the superpixel calculation results, if the outer contour was manually marked in the previous steps, proceed to step 10; otherwise, proceed to step 11.
[0119] Step 10: Perform an intersection operation between the manually marked inner contour and the superpixel blocks. Label the superpixel blocks traversed by the contour; the annular outer boundary enclosed by these labeled superpixel blocks is the target contour (e.g., ...). Figure 8 As shown in the image, which is a superpixel patch map of the ROI edge, all superpixel patches within the contour are set as the target region using a hole-filling algorithm to obtain the marking result (e.g., ...). Figure 9 As shown, this is the ROI target outline diagram;
[0120] Step 11: Manually select superpixel blocks or define superpixel blocks within the contour region and automatically fill them, or discard and correct superpixel blocks with deviations from Step 10 to obtain the final effective target region. Convert this region into a binary image, and map the inner and outer contours of this binary image onto the original image to obtain the labeling result (e.g., ...). Figure 10 As shown, A represents the original image mapping of the target contour, and B represents the contour fusion of the original image and the contour fusion of the adjusted window image.
[0121] The principle of this invention is as follows:
[0122] The algorithm of this invention is based on the premise that every marked target in a medical image will have a visually discernible outline, which may be clear or blurry. A superpixel algorithm is used to quickly calculate all possible outlines. Then, superpixel blocks representing valid outlines are selected manually, ultimately yielding a binary image of the target region. This method employs a semi-automatic approach to reduce the complexity and precision requirements of manual operation, while avoiding the limitations of fully automatic methods in achieving full outline accuracy. It also offers flexibility and can be adapted to marking various target regions. This addresses the problems of complexity, efficiency, and the impact of different medical image scanning parameters on the algorithm's universality.
[0123] This invention discloses a fast labeling method for medical image data based on superpixels, realizing a semi-automatic and universal labeling scheme, and solving many problems in the labeling of organs and tissues in medical images, such as quality consistency, target universality, manual workload, program calculation efficiency and computational load.
[0124] This invention segments an image into blocks using dynamic superpixel calculation. It obtains effective target regions by matching manually marked inner contours with the calculated superpixel blocks. The addition or subtraction of superpixel blocks is corrected by manually clicking or sliding the mouse, matching the target contour, reducing the amount of calculation, and improving the marking speed.
[0125] This invention allows for the manual marking of the outer rectangular bounding box containing the target, which can be either large or small. This reduces the computational load on superpixels and the impact of complex external structures and grayscale on the superpixel calculation of the target area, thereby improving the marking speed.
[0126] The manual operation part of this invention only requires manual rough marking of the inner contour of the target, with no requirement for contour accuracy. The marking speed is fast and highly flexible, which can ensure the consistency of marking results for different users and improve marking accuracy.
[0127] The preferred embodiments of the present invention have been described in detail above. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by ordinary geologists in the art, various changes can be made without departing from the spirit of the present invention.
[0128] Many other changes and modifications can be made without departing from the concept and scope of this invention. It should be understood that this invention is not limited to the specific embodiments, and the scope of this invention is defined by the appended claims.
Claims
1. A method for rapid labeling of medical image data based on superpixels, characterized in that, Includes the following steps: Step 1: Import Dicom medical images; Step 2: Perform grayscale mapping on the Dicom medical image. After grayscale mapping, there are three cases: if superpixel calculation is performed directly, skip to step 6; if the outer rectangle is manually marked, skip to step 5; if the approximate inner contour of the target is manually marked, skip to step 3. The specific method for grayscale mapping is as follows: First, a standard image is determined from the sample set, and the window width and window level of the Dicom image are obtained according to the Dicom fields WindowCenter and WindowWidth. and Based on the window width and window level, the effective visible grayscale range is: ; Then, for any DICOM image, the corresponding effective visible grayscale range can be obtained as follows: and ; Let a certain grayscale value of a Dicom image be... The grayscale mapping calculation formula is as follows: = + In the formula: The CT values are from the original DICOM image; This is the grayscale value after adjusting the window width and window level. Step 3: Manually mark the approximate inner contour of the target, offsetting the actual contour by the average radius of a superpixel block, but ensuring it remains within the target area; Step 4: Based on the inner contour manually marked in Step 3, obtain the maximum and minimum values of the horizontal and vertical coordinates of the inner contour. Use these values to determine the minimum bounding rectangle, and then expand the size by 3 to 5 superpixel blocks to generate the outer frame. Skip to Step 7. Step 5: Manually mark the outer rectangle containing the target. Mark the outer rectangle according to the target size, then skip to step 7; Step 6: No markers are used; the entire Dicom medical image is used as the outer frame. Step 7: Extract the image sub-images corresponding to the outer frames obtained in steps 4, 5, and 6, calculate superpixels, and obtain multiple superpixel blocks; Step 8: Superpixel fine-tuning. This fine-tuning optimizes the segmentation contour matching degree through one of two methods: window width and window level adjustment, or superpixel number adjustment. Step 9: Based on the superpixel calculation results, if the inner contour was manually marked in the previous steps, proceed to step 10; otherwise, proceed to step 11. Step 10: Perform an intersection operation between the manually marked inner contour and the superpixel blocks, and label the superpixel blocks that the contour passes through. The outer ring boundary surrounded by these labeled superpixel blocks is the target contour. Use the hole-filling algorithm to set all superpixel blocks in the contour as the target area to obtain the marking result, and proceed to step 11. Step 11: Manually select superpixel blocks or define superpixel blocks in the contour area and automatically fill them, or discard and correct the superpixel blocks with deviations in Step 10, and finally obtain the effective target area, and convert it into a binary image. The inner and outer contours of this binary image are mapped onto the original Dicom medical image to obtain the labeling result.
2. The method for rapid labeling of medical image data based on superpixels according to claim 1, characterized in that, Step 2 involves grayscale mapping of the original Dicom medical image based on the default window width and window level set for the examination item, so that the grayscale values of Dicom images obtained from different devices and with different scanning parameters are controlled within a uniform standard range.
3. The method for rapid labeling of medical image data based on superpixels according to claim 1, characterized in that, In step 3, the superpixel block refers to the average size of all superpixel blocks. The evaluation method is as follows: Let the number of superpixels be n, and the original DICOM image size be width w and height h. Then the average number of superpixel blocks P is: If each superpixel is evaluated as a circle, then the average radius of the superpixel is: As the number of superpixels increases, the average radius of the superpixels becomes smaller, and the level of detail increases.
4. The method for rapid labeling of medical image data based on superpixels according to claim 1, characterized in that, In step 7, the superpixel calculation uses the SEEDS or LSC superpixel algorithm.
5. The method for rapid labeling of medical image data based on superpixels according to claim 1, characterized in that, In step 8, superpixel fine-tuning is achieved by adjusting the number of superpixels. By controlling the parameter of superpixel block size, different numbers of superpixels are selected for target tissues of different scales or different texture complexities to control the segmentation precision and edge matching degree. The CT image is controlled within the range of [500, 6000].
6. The method for rapid labeling of medical image data based on superpixels according to claim 1, characterized in that, In step 10, the intersection operation between the manually marked inner contour and the superpixel block is specifically performed by recording each pixel of the manually marked inner contour line and setting it as a set. Generate a binary contour map The outline value is 1, and the background value is 0. Similarly, a binary image is generated for each superpixel block. The method for determining whether a superpixel intersects with a contour is as follows: By traversing all superpixel blocks, all intersection relationships with the contour line are obtained. Merging the intersecting superpixel blocks yields the superpixel block ring, whose outer boundary is the target contour.
Citation Information
Patent Citations
Image super-pixel segmentation method based on multi-level SLIC
CN108596936A
Automatic pathological image labeling method based on reinforcement learning and deep neural network
CN110659692A
