Medical tomographic image correction fusion method, device, system and storage medium
By calculating the bounding box spatial physical data and volume space correction fusion of Dicom medical images, the difficulty of fusion between different imaging technologies is solved, achieving high-precision medical tomographic image fusion, improving diagnostic efficiency and visualization effects, and supporting precision treatment.
Patent Information
- Application Number
- CN202411280405.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-09-12
AI Technical Summary
Existing medical tomographic image correction and fusion methods suffer from diagnostic difficulties due to differences in spatial location, resolution, and contrast between different imaging technologies. Furthermore, existing methods are complex to operate, inefficient, susceptible to noise and artifacts, and cannot achieve multi-angle fusion.
By acquiring the reference and corrected sequences of Dicom medical images, the bounding box spatial physical data are calculated, the intersection is determined and volume space correction fusion is performed, median filtering is used to remove noise, the image resolution is adjusted, normalization and fusion processing are performed, and a corrected volume cross-section is generated.
It achieves precise alignment and high-precision fusion of medical tomographic images, improving diagnostic efficiency and visualization, providing more comprehensive lesion information, and supporting early disease diagnosis and precision treatment plans.
Smart Images

Figure CN119228659B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of medical imaging technology, and in particular relates to a medical tomographic image correction and fusion method, device, system and storage medium. Background Technology
[0002] Medical tomographic images are an important concept in the field of medical imaging. They mainly involve image data obtained from computed tomography (CT) and other tomographic imaging techniques. Medical tomographic images refer to the internal structure images of a specific layer reconstructed after multi-angle scanning of a human body or object using computed tomography (CT) or similar techniques. These images show the cross-section of the object in a certain direction, avoiding the problem of image projection overlap and providing clearer information about the internal structure.
[0003] Anatomical images offer good spatial resolution, providing the anatomical location of lesions and their relationship to surrounding normal tissues, but they are not sensitive to some lesion points. Functional images can provide information on human physiological metabolism, but their resolution is poor. To obtain more comprehensive diagnostic information, it is usually necessary to combine multiple imaging techniques. However, due to the different imaging principles and parameter settings of different imaging techniques, there are differences in spatial location, resolution, contrast, etc., between different images, which makes diagnosis difficult for doctors. In addition, it is not easy to observe the overall lesion characteristics by only viewing the original scan orientation.
[0004] The current mainstream correction and fusion methods mainly include the following: 2D image physical location matching, feature point matching, and deep learning.
[0005] The 2D physical location matching method will find slices that are close to the physical location of the current image slice and fuse them with the image center point as the reference. However, this method only considers the two-dimensional space of the image, requiring that the scanning directions of the two sets of sequences be absolutely consistent or slightly misaligned. It has high requirements for scanning data, especially for imaging data from different multimodal devices, which is basically difficult to meet, and it cannot present multi-angle fusion effects.
[0006] Image correction and fusion based on feature point matching is achieved by setting, detecting, and matching feature points in the image. This method is more accurate than matching by slice location, but it requires manual labeling of feature points and setting of affine transformation matrices, resulting in high operational complexity and technical requirements. The representation of image features and the selection of similarity measures are easily affected by human factors, and the algorithm is complex and inefficient. In addition, image noise and motion artifacts may affect the accuracy of the correction.
[0007] Deep learning-based methods learn complex patterns of change between images through training data and obtain similarity metrics between given image pairs to achieve automatic correction and fusion. However, this method requires manually labeled data as the gold standard. Due to privacy and other issues, the sample size is limited and uneven. Moreover, labeling is time-consuming and costly. The training effect is easily affected by image noise, motion artifacts, etc. It only considers image features and does not take into account label information such as the physical spatial location and scanning orientation of the DICOM image. Summary of the Invention
[0008] The purpose of this application is to provide a method, device, system, and storage medium for correcting and fusing medical tomographic images, thereby improving the accuracy and diagnostic efficiency of medical images by correcting and fusing medical tomographic images of different sequences.
[0009] To achieve the above objectives, the solution proposed in this application is:
[0010] In a first aspect, embodiments of this application provide a medical tomographic image correction and fusion method, comprising: acquiring two sets of Dicom medical images, reading the image sequences of the two sets of Dicom medical images respectively, and obtaining a reference sequence and a correction sequence;
[0011] The reference sequence and the corrected sequence are processed to obtain volume data, which includes a reference volume corresponding to the reference sequence and a corrected volume corresponding to the corrected sequence.
[0012] Based on the volume data, calculate the bounding box spatial physical data, which includes the reference volume data bounding box corresponding to the reference volume and the orthodontic volume data bounding box corresponding to the orthodontic body.
[0013] Based on the bounding boxes of the reference volume data and the corrected volume data, it is determined whether there is an intersection between the reference volume and the corrected volume. If there is no intersection, the process ends; if there is an intersection, volume space correction fusion is performed on the reference volume and the corrected volume. The methods for volume space correction fusion include:
[0014] Obtain the cross-sectional view of the reference body, calculate the center point offset and correction matrix of the correction body relative to the reference body; calculate the cutting position and cutting direction vector of the correction body based on the center point offset and correction matrix, and generate the cross-sectional view of the correction body.
[0015] Adjust the image resolution of the corrected body section view to match the image resolution of the reference body section view;
[0016] The cross-sectional images of the corrected body and the reference body are normalized and fused.
[0017] The method described in the embodiments of this application may also have the following additional technical features:
[0018] Furthermore, the reference sequence and the corrected sequence are processed to obtain volume data, including reading the spatial physical information of the reference sequence and the corrected sequence respectively to obtain slices, which correspond to the Dicom medical images. The slices are sorted according to the spatial physical information from smallest to largest to obtain volume data. Median filtering is used to remove noise in the Dicom medical images and enhance the contrast of the Dicom medical images.
[0019] Furthermore, based on the volume data, the physical data of the bounding box space is calculated, including obtaining DICOM tags, which include location tags, orientation tags, and pixel tags;
[0020] Obtain the spatial matrix of the first point in the top left corner of the Dicom medical image based on the location label. The formula is shown below:
[0021] ;
[0022] Obtain the direction cosine matrix of Dicom medical images based on location labels. The formula is shown below:
[0023] ;
[0024] Obtain the pixel physical size of the Dicom medical image based on the pixel labels, and the coordinate matrix of any point on the Dicom medical image. The formula is shown below:
[0025] ;
[0026] According to the space matrix Direction cosine matrix and coordinate matrix Calculate arbitrary physical spatial locations in Dicom medical images through matrix transformations. The formula is shown below:
[0027]
[0028] ;
[0029] Based on arbitrary physical spatial locations of Dicom medical images The calculation formula is used to calculate the corner points of the bounding box, and the bounding box is obtained based on the corner points. The minimum and maximum coordinate values along the axis are obtained. ;
[0030] Based on the bounding boxes of the reference body data and the corrective body data, determine whether there is any overlap between the reference body and the corrective body. The determination formula is as follows:
[0031] ;
[0032] ; ;
[0033] When both conditions are met , and When using the judgment formula, there is an intersection between the reference body and the correction body.
[0034] Furthermore, the center point offset of the corrector relative to the reference body and the correction matrix are calculated, including aligning the centers of the corrector and the reference body and rotating the corrector to the same orientation as the reference body; based on arbitrary physical spatial positions of the Dicom medical image. Calculate the volume center coordinates of the reference body and the body center coordinates of the corrective body Based on the coordinates of the reference body's center and the body center coordinates of the corrective body Obtain the center point offset of the orthodontic body ;
[0035] Correction matrix Let the direction matrix of the reference volume be defined as follows:
[0036] .
[0037] Furthermore, a cross-sectional view of the reference body is obtained, and the center point offset and correction matrix of the corrective body relative to the reference body are calculated. Based on the center point offset and correction matrix, the sectioning position and sectioning direction vector of the corrective body are calculated to generate a cross-sectional view of the corrective body, including obtaining the sectioning position and sectioning direction of the reference body, and based on the sectioning position of the reference body... and cutting direction vector Calculate the section position of the orthodontic body and cutting direction vector Obtain the sectional view of the orthodontic body; the sectional position of the orthodontic body. The formula is shown below:
[0038]
[0039]
[0040]
[0041] in, Indicates the sectioning position of the reference volume. This indicates the offset of the center point of the orthodontic appliance. Indicates the physical size of the reference voxel. Indicates the physical dimensions of the corrected body voxels; , , These represent the cutting positions of the reference body at... Components in three directions; , , These represent the sectioning positions of the orthodontic body at... Components in three directions; , , These represent the offset of the center point of the orthodontic body at... Components in three directions;
[0042] The cutting direction vector of the corrective body The formula is shown below:
[0043]
[0044] in, Represents the cutting direction vector of the reference volume. The direction matrix represents the reference volume.
[0045] Furthermore, the image resolution of the corrected body section is adjusted to be consistent with the image resolution of the reference body section, including calculating the resolution adjustment factor, as shown in the following formula:
[0046]
[0047] in, Indicates the physical size of the reference voxel. This represents the physical dimensions of the corrected volume voxel. By comparing the image resolution of the corrected volume section with that of the reference volume section, a low-resolution image is obtained. This low-resolution image is then processed using cubic interpolation, as shown in the following formula:
[0048]
[0049] in, This represents the pixel value of the interpolation point. Indicates the position of the interpolation point. This represents a coefficient calculated based on surrounding pixels. This indicates that the reference pixel value is used.
[0050] Furthermore, the cross-sectional images of the corrected body and the reference body are normalized and fused, including extracting two-dimensional images from the cross-sectional images of the corrected body and the reference body respectively. The extracted two-dimensional images are defined by the following formula:
[0051]
[0052] in, and Represents the coordinate position of a two-dimensional image; ; ; Represents the grayscale value of any pixel in a two-dimensional image. This represents the gray value of any pixel in the normalized two-dimensional image. Representation matrix Size, Represents the grayscale range of a two-dimensional image;
[0053] The process iterates through all pixels of the two-dimensional images in both the corrected and reference cross-sectional images to obtain the image pixels of the corrected and reference images. The fusion process includes a pixel-based fusion method, as shown in the following formula:
[0054]
[0055] in, Image pixels representing the reference volume, The image pixels representing the corrective body. Indicates transparency.
[0056] Secondly, embodiments of this application provide a medical tomographic image correction and fusion device, comprising:
[0057] The data acquisition module is configured to acquire two sets of Dicom medical images, read the image sequences of the two sets of Dicom medical images respectively, and obtain a reference sequence and a correction sequence.
[0058] The data calculation module is configured to process the reference sequence and the correction sequence to obtain volume data, which includes a reference volume corresponding to the reference sequence and a correction volume corresponding to the correction sequence; based on the volume data, it calculates the bounding box spatial physical data, which includes the reference volume data bounding box corresponding to the reference volume and the correction volume data bounding box corresponding to the correction volume.
[0059] The data judgment module is configured to determine whether there is an intersection between the reference body and the corrected body based on the bounding box of the reference body data and the bounding box of the corrected body data. If there is no intersection, the process ends; if there is an intersection, the volume space correction and fusion of the reference body and the corrected body are performed.
[0060] The correction and fusion module is configured to calculate the center point offset and correction matrix of the correction body relative to the reference body; calculate the cutting position and cutting direction vector of the correction body based on the center point offset and correction matrix, and generate a cross-sectional image of the correction body; adjust the image resolution of the cross-sectional image of the correction body to be consistent with the image resolution of the cross-sectional image of the reference body; and perform normalization and fusion processing on the cross-sectional images of the correction body and the reference body.
[0061] Thirdly, embodiments of this application provide a medical tomographic image correction and fusion system. The system includes a processor and a memory. The memory stores a computer program, which is loaded and executed by the processor to implement the medical tomographic image correction and fusion method provided in the first aspect of embodiments of this application.
[0062] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the medical tomographic image correction and fusion method as described in the first aspect of embodiments of this application.
[0063] The medical tomographic image correction and fusion method provided in this application has the following advantages compared with the prior art:
[0064] This application embodiment achieves precise alignment of the corrector in three-dimensional space by calculating the center point offset of the corrector relative to the reference body and the correction matrix, ensuring the consistency of the anatomical structure in the fused image; adjusting the image resolution using methods such as cubic interpolation can further reduce the fusion error caused by resolution differences and improve the accuracy of the fused image.
[0065] In the preprocessing stage, the embodiments of this application use median filtering and other methods to remove noise and enhance image contrast, which helps to improve the visualization effect of the fused image and make the lesion area clearer and more identifiable. The pixel- or feature-based fusion method can fully retain the useful information in the reference body and the correction body, avoid information loss, and ensure that the fused image has higher information richness and accuracy.
[0066] The embodiments of this application can provide doctors with more comprehensive and accurate lesion information by correcting and fusing medical tomographic images, which helps to detect and accurately diagnose diseases at an early stage. In clinical applications such as surgical planning and radiotherapy, the fused images generated by this method can serve as an important reference to guide doctors in formulating more precise treatment plans. Attached Figure Description
[0067] Figure 1 A flowchart illustrating the medical tomographic image correction and fusion method according to an embodiment of this application is shown;
[0068] Figure 2A structural block diagram of a medical tomographic image correction and fusion device according to an embodiment of this application is shown;
[0069] Figure 3 A structural block diagram of a computer device according to an embodiment of this application is shown. Detailed Implementation
[0070] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, not the entire structure. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.
[0071] The terms “comprising” and “having”, and any variations thereof, used in this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0072] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0073] DICOM, short for Digital Imaging and Communications in Medicine, is an international standard (ISO 12052) for medical images and related information. It aims to create the most comprehensive and fundamental digital medical imaging standard. It defines a medical image format that meets clinical needs for data exchange. DICOM is not limited to the image or file itself; it encompasses all data transmission, storage, and display protocols, providing all the tools necessary for the precise expression and processing of medical imaging data in diagnosis. All DICOM data (such as medical images, commands, and reports) is packaged in DICOM objects, which are stored in DICOM files. Each DICOM object is a collection of data elements. A DICOM data element consists of a tag, a value representation (VR), and a value. The tag is a unique 16-bit group number and a 16-bit element number used to identify the data element; the VR defines the type and format of the value; and the value is the actual data content.
[0074] like Figure 1 As shown in the figure, this application provides a medical tomographic image correction and fusion method, including the following steps:
[0075] Step 101: Acquire two sets of Dicom medical images, and read the image sequences of the two sets of Dicom medical images respectively to obtain the reference sequence and the correction sequence.
[0076] This application embodiment uses image processing libraries or software that support the DICOM format to load DICOM files. These libraries provide the ability to read DICOM files and parse their metadata and image data, such as Python's pydicom, SimpleITK, or MATLAB's Image Processing Toolbox.
[0077] Each image in a DICOM file may belong to a series, which typically consists of images that have undergone the same scanning or imaging process. Each series has a unique identifier (SeriesUID). If the DICOM files are scattered across folders, the folders are first traversed to find all the DICOM files, and the images are grouped into different series based on the DICOM tags (such as SeriesUID).
[0078] When selecting sequences, users need to manually select reference and correction sequences based on filenames, sequence descriptions, or other metadata; if there are significant differences between sequences, such as timestamps and patient locations, algorithms can be written to select them automatically.
[0079] For the selected reference and correction sequences, use a DICOM library or software to read each image in the sequence sequentially and sort the images. When reading the images, it is also necessary to pay attention to the orientation and position of the DICOM images, as this information is crucial for subsequent image processing and registration.
[0080] Specifically, a set of MR tomographic images and a set of PET tomographic images are read. Here, MR is a set of coronal scan data, and PET is a set of axial scan data. The scan information is shown in the table below:
[0081] Table 1
[0082]
[0083] Step 102: Process the reference sequence and the correction sequence to obtain volume data, which includes a reference volume corresponding to the reference sequence and a correction volume corresponding to the correction sequence.
[0084] In this embodiment of the application, in order to obtain volume data from the reference sequence and the correction sequence, each layer of the volume data is a two-dimensional image, and noise removal and contrast enhancement are performed on it. By reading the spatial physical information of the reference sequence and the correction sequence, the slices are sorted according to their actual positions in space to ensure the correct arrangement of the volume data in three-dimensional space.
[0085] The sorted slices are stacked to form three-dimensional volumetric data. This involves converting a two-dimensional image array into a three-dimensional array, with the third dimension being the slice depth. Image processing techniques such as median filtering are then used to remove noise from the volumetric data. Median filtering is a non-linear filtering technique particularly suitable for removing salt-and-pepper noise while preserving edge information. Histogram equalization and contrast stretching can also enhance contrast pairs. These methods aim to improve the visual appeal of the image, making lesion areas more clearly discernible.
[0086] The volume data construction process filters out some illegal data, such as location slices, images without pixel size, and images without image location information. The remaining slices are sorted in ascending order of spatial physical location. Redundant information in the images in the original scan sequence can affect the fusion effect. It is necessary to traverse the images that constitute the volume data and perform median filtering on each image to remove background noise from the images.
[0087] Specifically, MR is set as the reference volume and PET as the correction volume. Volume data are constructed for MR and PET respectively. Median filtering is used to denoise the image and enhance its contrast information.
[0088] Step 103: Calculate the bounding box spatial physical data based on the volume data. The bounding box spatial physical data includes the reference volume data bounding box corresponding to the reference volume and the orthodontic volume data bounding box corresponding to the orthodontic volume.
[0089] This application embodiment first needs to read the key tags in the DICOM file, including:
[0090] Image Position (Patient) Label: This label is an array of three floating-point numbers representing the position of the first voxel at the top left corner of the image in the patient's coordinate system. The spatial matrix of the first point at the top left corner of the DICOM medical image is obtained based on the position label. The formula is shown below:
[0091] .
[0092] Image Orientation (Patient): This label is an array of six floating-point numbers representing the direction cosines of the image's rows and columns in the patient's coordinate system. These six numbers are typically divided into two groups, with each group containing three numbers representing the direction vectors of the image's rows and columns, respectively. The direction cosine matrix of the DICOM medical image is obtained based on the orientation label. The formula is shown below:
[0093] .
[0094] Pixel Spacing: This label represents the physical size (typically millimeters) of each pixel (in a 2D image) or voxel (in a 3D image) in the image. For 3D images, slice thickness may also need to be considered. The pixel physical dimensions of a Dicom medical image are obtained from the pixel labels, along with the coordinate matrix of any point on the Dicom medical image. The formula is shown below:
[0095] .
[0096] By combining the two-dimensional coordinates and the slice position, and transforming them using the direction cosine matrix, we obtain the coordinates in three-dimensional space. Based on the spatial matrix... Direction cosine matrix and coordinate matrix Calculate arbitrary physical spatial locations in Dicom medical images through matrix transformations. The formula is shown below:
[0097]
[0098] .
[0099] Traverse all voxels and find in The minimum and maximum values of the coordinates on the axes define the eight corner points of the bounding box. Once the corner points are determined, the bounding box can be directly extracted from these corner points. Minimum and maximum coordinate values on the axis, based on arbitrary physical spatial locations in the Dicom medical image. The calculation formula is used to calculate the corner points of the bounding box, and the bounding box is obtained based on the corner points. The minimum and maximum coordinate values along the axis are obtained. .
[0100] Specifically, the bounding box for MR volume data is ; PET body data outer enclosure box is .
[0101] Step 104: Based on the bounding box of the reference volume data and the bounding box of the corrected volume data, determine whether there is an intersection between the reference volume and the corrected volume. If there is no intersection, the process ends. If there is an intersection, perform volume space correction fusion on the reference volume and the corrected volume. The volume space correction fusion method includes obtaining the cross-sectional image of the reference volume, calculating the center point offset of the corrected volume relative to the reference volume and the correction matrix, and calculating the cross-sectional position and cross-sectional direction vector of the corrected volume based on the center point offset and the correction matrix to generate the cross-sectional image of the corrected volume.
[0102] In medical image processing, especially when performing volumetric correction and fusion on DICOM images, it is first necessary to determine whether there is any intersection between the reference volume and the correction volume. This is achieved by comparing the bounding boxes of their volume data. The bounding box is the smallest cube that can completely contain the volume data; it defines the position and size of the volume data in three-dimensional space.
[0103] For the reference volume and the corrected volume, calculate their bounding boxes separately, traverse all points in the volume data, and find the bounding boxes within the reference volume and the corrected volume. The minimum and maximum values on the axes are compared. If the two bounding boxes do not overlap in their intervals on any coordinate axis (i.e., the minimum value of one box is greater than the maximum value of the other box, or vice versa), then they are considered to have no intersection. If they overlap, proceed to the next step.
[0104] The center coordinates of the reference body and the orthodontic body are found by calculating the center point of their respective bounding boxes. Then, the center of the orthodontic body is moved to align with the center of the reference body, which involves calculating a translation vector (i.e., center point offset) to move the orthodontic body.
[0105] Next, the corrector needs to be rotated to the same orientation as the reference body. This involves calculating a rotation matrix that converts the orientation cosine matrix of the corrector (obtained from the DICOM tab) to match the reference body. This process may involve calculating Euler angles or quaternions, depending on the rotation representation used.
[0106] Determining the sectioning position and direction of the reference volume is typically based on specific image processing needs or physician instructions. The reference volume sectioning image can be generated by selecting any angle, such as parallel to... Axial sectioning generates axial section images, parallel to... Axial coronal section image generated, parallel Axial section diagrams are generated in the sagittal plane; the section diagram of the corrective body is generated based on the reference body, and the section diagram of the reference body must be available before the section diagram of the corrective body can be generated; both the section diagrams of the reference body and the section diagram of the corrective body are generated through the principle of planar reconstruction.
[0107] Then, based on the sectioning position and sectioning direction vector of the reference body, as well as the previously calculated center point offset and correction matrix, the sectioning position and sectioning direction vector of the correction body under the same sectioning position and direction are calculated. This involves transforming the sectioning information of the reference body into the coordinate system of the correction body through the inverse correction matrix (including the inverse operation of translation and rotation).
[0108] Finally, using the calculated sectioning position and direction vectors of the corrected body, the corresponding section image is extracted from the volume data of the corrected body. This involves slicing operations on the 3D volume data and possible interpolation processing to generate a smooth section image.
[0109] In this embodiment, the existence of an intersection between the reference body and the corrective body is determined based on the bounding box of the reference body data and the bounding box of the corrective body data. The determination formula is as follows:
[0110] ;
[0111] ; ;
[0112] When both conditions are met , and When using the judgment formula, there is an intersection between the reference body and the correction body.
[0113] Furthermore, the center point offset of the corrector relative to the reference body and the correction matrix are calculated, including aligning the centers of the corrector and the reference body and rotating the corrector to the same orientation as the reference body; based on arbitrary physical spatial positions of the Dicom medical image. Calculate the volume center coordinates of the reference body and the body center coordinates of the corrective body Based on the coordinates of the reference body's center and the body center coordinates of the corrective body Obtain the center point offset of the orthodontic body ;
[0114] Correction matrix Let the direction matrix of the reference volume be defined as follows:
[0115] .
[0116] Furthermore, based on the center point offset and the correction matrix, the sectioning position and sectioning direction vector of the corrected body are calculated to obtain the sectioning diagram of the corrected body. This includes obtaining the sectioning position and sectioning direction of the reference body, and based on the sectioning position of the reference body... and cutting direction vector Calculate the section position of the orthodontic body and cutting direction vector Obtain the sectional view of the orthodontic body; the sectional position of the orthodontic body. The formula is shown below:
[0117]
[0118]
[0119]
[0120] in, Indicates the sectioning position of the reference volume. This indicates the offset of the center point of the orthodontic appliance. Indicates the physical size of the reference voxel. Indicates the physical dimensions of the corrected body voxels; , , These represent the cutting positions of the reference body at... Components in three directions; , , These represent the sectioning positions of the orthodontic body at... Components in three directions; , , These represent the offset of the center point of the orthodontic body at... Components in three directions;
[0121] The cutting direction vector of the corrective body The formula is shown below:
[0122]
[0123] in, Represents the cutting direction vector of the reference volume. The direction matrix represents the reference volume.
[0124] Specifically, based on the bounding box calculated in step 103, it is determined whether the MR and PET volume spaces intersect. ; ; .
[0125] , and If both are true, it means that there is an overlap between MR and PET bodies.
[0126] The physical coordinates of the MR body center are calculated according to the formula in step 104. and the physical coordinates of the PET body center , and thus .
[0127] Set the original orientation of MR to the correction matrix of PET:
[0128]
[0129] This application embodiment uses cross-sectional views from different orientations to verify the effects before and after correction.
[0130] The 2D image-based physical location matching method can only be used for matching raw slices. By selecting a slice in MR, the corresponding slice in PET is found. However, it cannot find the corresponding matching layer for data with inconsistent body postures. Therefore, this method cannot be used for this set of MR and PET data.
[0131] For multi-slice data, the matching method based on feature points is too time-consuming to find the corresponding feature points, and requires a very clear understanding of the image information features.
[0132] The correction method of this application does not require the positioning and matching of 2D slices and the selection of feature points. In a unified coordinate system, the overlap of the three-dimensional reconstructed body is achieved by performing coordinate transformation on MR and PET, which avoids the subjectivity and error of human operation and has wider applicability.
[0133] By setting multiple MR sections as benchmarks, the correction effect was verified by comparing corresponding PET slices before and after correction.
[0134] 1. Coronal section view
[0135] Sectioning location for obtaining coronal MR slices:
[0136]
[0137] Cutting direction:
[0138]
[0139] As a benchmark for PET correction,
[0140] The cutting position for taking uncorrected coronal PET slices:
[0141]
[0142] Cutting direction:
[0143]
[0144] It can be seen that there are differences in the cutting position and anatomical tissue between uncorrected PET coronal sections and MR sections.
[0145] The sectioning position for correcting coronal PET slices:
[0146]
[0147]
[0148]
[0149] Cutting direction:
[0150]
[0151]
[0152] It can obtain high degree of matching between the position and anatomical tissue of corrected PET coronal sections and MR sections.
[0153] 2. Sagittal section view
[0154] Location for cutting MR sagittal sections:
[0155]
[0156] Cutting direction:
[0157]
[0158] As a benchmark for PET correction,
[0159] The cutting position for taking uncorrected PET sagittal sections:
[0160]
[0161] Cutting direction:
[0162]
[0163] It can be seen that there are differences in the cutting position and anatomical tissue between uncorrected PET sagittal sections and MR sections.
[0164] The sectioning position for corrected PET sagittal sections:
[0165]
[0166]
[0167]
[0168] Cutting direction:
[0169]
[0170]
[0171] It can obtain high degree of matching between the position and anatomical tissue of corrected PET sagittal sections and MR sections.
[0172] 3. Axial section view
[0173] Sectioning position for MRI axial section:
[0174]
[0175] Cutting direction:
[0176]
[0177] As a benchmark for PET correction,
[0178] Sectioning position for uncorrected PET axial sections:
[0179]
[0180] Cutting direction:
[0181]
[0182] It can be seen that there are differences in the cutting position and anatomical tissue between uncorrected PET axial sections and MR sections.
[0183] The sectioning position for correcting PET axial sections:
[0184]
[0185]
[0186]
[0187] Cutting direction:
[0188]
[0189]
[0190] It can obtain high degree of matching between the position and anatomical tissue of corrected PET axial sections and MR sections.
[0191] Step 105: Adjust the image resolution of the corrected body section to be the same as the image resolution of the reference body section.
[0192] To adjust the image resolution of the corrected body section to match that of the reference body section, it is necessary to obtain the resolution information of both images. Resolution is usually expressed as dots per inch (DPI) or aspect ratio per pixel. The low-resolution image is processed by cubic interpolation (also known as bicubic interpolation). Cubic interpolation is an advanced interpolation method used for image magnification in two-dimensional space. It takes into account the influence of the surrounding 16 pixels to generate a smoother image.
[0193] In this embodiment, the image resolution of the corrected body section is adjusted to be the same as that of the reference body section, including calculating the resolution adjustment coefficient. , Indicates the physical size of the reference voxel. This represents the physical dimensions of the corrected volume voxel. By comparing the image resolution of the corrected volume section with that of the reference volume section, a low-resolution image is obtained. This low-resolution image is then processed using cubic interpolation, as shown in the following formula:
[0194] ;
[0195] in, This represents the pixel value of the interpolation point. Indicates the position of the interpolation point. This represents a coefficient calculated based on surrounding pixels. This indicates that the reference pixel value is used.
[0196] Specifically, for subsequent image fusion, it's necessary to ensure that the physical pixel dimensions of the images remain consistent after resolution adjustment. Comparison shows that the MR image resolution is larger than the PET image resolution. To preserve MR image information to the greatest extent possible, bicubic spline interpolation is used to enlarge the lower-resolution PET image. The enlarged PET image dimensions are as follows:
[0197] The MR voxel size is 0.8594, and the PET voxel size is 1.5625. Calculate the PET magnification factor. .
[0198] The MR coronal image size is 512*512, the PET coronal image size before adjustment is 384*158, and the PET coronal image size after adjustment is 698*287.
[0199] The size of the MR sagittal image is 174*512, the size of the PET sagittal image before adjustment is 384*158, and the size of the PET sagittal image after adjustment is 698*287.
[0200] The MR axial image size is 384*384, the PET axial image size before adjustment is 384*158, and the PET sagittal image size after adjustment is 698*698.
[0201] Step 106: Normalize and merge the cross-sectional images of the corrected body and the reference body.
[0202] Normalization is a process of scaling data proportionally to fit it into a small, specific range (usually [0,1] or [-1, 1]). In image processing, this helps eliminate differences between different images caused by factors such as brightness and contrast, thus facilitating subsequent processing.
[0203] For the normalization processing of the cross-sectional images of the corrective body and the reference body, the cross-sectional images of the corrective body and the reference body are first read from the file. These images are usually two-dimensional grayscale images or color images.
[0204] For grayscale images, it is necessary to find the minimum and maximum values in the image.
[0205] For color images, each color channel (red, green, blue) needs to be normalized separately, or the image needs to be converted to grayscale before normalization.
[0206] Fusion processing is the process of combining two or more images into one image. In medical image processing, it is often used to combine image information from different imaging modalities or different time points to provide more comprehensive information.
[0207] Pixel-based fusion methods require defining how to combine the pixel values of two images based on application requirements. For the normalized corrected volume section image and the reference volume section image, each corresponding pixel is traversed, and the fusion pixel value at each position is calculated according to the defined fusion rules. The fused pixel values are then combined into a new image, which is the fused image.
[0208] This application embodiment performs normalization and fusion processing on the cross-sectional images of the corrective body and the reference body, including extracting two-dimensional images from the cross-sectional images of the corrective body and the reference body respectively, and defining the extracted two-dimensional images using the following formula:
[0209]
[0210] in, and Represents the coordinate position of a two-dimensional image; ; ; Represents the grayscale value of any pixel in a two-dimensional image. This represents the gray value of any pixel in the normalized two-dimensional image. Representation matrix Size, Represents the grayscale range of a two-dimensional image; image pixels are a category of digital images, and a two-dimensional image has a total of The point represents the existence of 1 pixel, of which and By representing the coordinates of a pixel in a two-dimensional image, we can obtain the value of each pixel.
[0211] The process iterates through all pixels of the two-dimensional images in both the corrected and reference cross-sectional images to obtain the image pixels of the corrected and reference images. The fusion process includes a pixel-based fusion method, as shown in the following formula:
[0212]
[0213] in, Image pixels representing the reference volume, The image pixels representing the corrective body. Indicates transparency.
[0214] Specifically, since the effective pixel values of MR images are generally between zero and several thousand, while the effective pixel values of PET images are generally between zero and hundreds of thousands, the pixel ranges are not in the same range, so fusion is meaningless. It is necessary to uniformly map the pixel values to the range of 0~255. By traversing each pixel for mapping, it can be found that the correspondence between MR and PET anatomical tissues in the fused image before correction is incorrect, while the correspondence between tissues after correction is correct.
[0215] like Figure 2 As shown in the figure, this application provides a medical tomographic image correction and fusion device, including a data acquisition module 201, a data calculation module 202, a data judgment module 203, and a correction and fusion module 204, wherein:
[0216] The data acquisition module 201 is configured to acquire two sets of Dicom medical images, read the image sequences of the two sets of Dicom medical images respectively, and obtain a reference sequence and a correction sequence.
[0217] Data calculation module 202 is configured to process the reference sequence and the correction sequence to obtain volume data, the volume data including a reference volume corresponding to the reference sequence and a correction volume corresponding to the correction sequence; and to calculate bounding box spatial physical data based on the volume data, the bounding box spatial physical data including a reference volume data bounding box corresponding to the reference volume and a correction volume data bounding box corresponding to the correction volume.
[0218] The data judgment module 203 is configured to determine whether there is an intersection between the reference body and the corrected body based on the bounding box of the reference body data and the bounding box of the corrected body data. If there is no intersection, the process ends; if there is an intersection, the volume space correction and fusion of the reference body and the corrected body is performed.
[0219] The correction and fusion module 204 is configured to calculate the center point offset and correction matrix of the correction body relative to the reference body; calculate the cutting position and cutting direction vector of the correction body based on the center point offset and correction matrix, and generate a cross-sectional image of the correction body; adjust the image resolution of the cross-sectional image of the correction body to be consistent with the image resolution of the cross-sectional image of the reference body; and perform normalization and fusion processing on the cross-sectional image of the correction body and the cross-sectional image of the reference body.
[0220] The medical tomographic image correction and fusion device in this application embodiment can be a computer device or a component within a computer device, such as an integrated circuit or a chip. The computer device can be a terminal or other devices besides a terminal. For example, the computer device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle computer device, mobile internet device (MID), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and can also be a server, network attached storage (NAS), personal computer (PC), etc. This application embodiment does not specifically limit the device.
[0221] The medical tomographic image correction and fusion device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the medical tomographic image correction and fusion method embodiment will not be described in detail here to avoid repetition.
[0222] This application also provides a computer device, such as... Figure 3 As shown, the computer device includes a processor 301 and a memory 302. The memory 302 stores a program or instruction that can run on the processor 301. When the program or instruction is executed by the processor 301, it implements each step of the above-mentioned medical tomographic image correction and fusion method and achieves the same technical effect. To avoid repetition, it will not be described in detail here.
[0223] It should be noted that the computer device in this application embodiment includes the mobile computer device and the non-mobile computer device described above.
[0224] The memory 302 can be used to store software programs and various data. The memory 302 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 302 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 302 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0225] Processor 301 may include one or more processing units; optionally, processor 301 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 301.
[0226] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described medical tomographic image correction and fusion method embodiments and achieve the same technical effects. To avoid repetition, these will not be described again here.
[0227] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described medical tomographic image correction and fusion method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0228] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0229] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described medical tomographic image correction and fusion method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0230] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0231] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for correcting and fusing medical tomographic images, characterized in that, The method includes: Two sets of DICOM medical images were acquired, and the image sequences of the two sets of DICOM medical images were read to obtain the reference sequence and the correction sequence. The reference sequence and the correction sequence are processed to obtain volume data, which includes a reference volume corresponding to the reference sequence and a correction volume corresponding to the correction sequence. Based on the volume data, calculate the spatial physical data of the outer bounding box, which includes the reference body volume data bounding box corresponding to the reference body and the orthodontic body volume data bounding box corresponding to the orthodontic body. Based on the bounding box of the reference body volume data and the bounding box of the corrected body volume data, it is determined whether the reference body and the corrected body have an intersection. If there is no intersection, the process ends. If there is an intersection, a volume space correction fusion is performed on the reference body and the corrected body. The volume space correction fusion method includes obtaining a cross-sectional view of the reference body, calculating the center point offset of the corrected body relative to the reference body, and the correction matrix. The calculation of the center point offset of the corrector relative to the reference body and the correction matrix includes: Align the centers of the orthodontic body and the reference body, and rotate the orthodontic body to be in the same orientation as the reference body; Based on the arbitrary physical spatial location of the Dicom medical image Calculate the volume center coordinates of the reference body. and the body center coordinates of the corrective body ; Based on the body center coordinates of the reference body and the body center coordinates of the corrective body Obtain the center point offset of the orthodontic body ; The correction matrix Let the direction matrix of the reference volume be denoted as follows: Calculate the cutting position and cutting direction vector of the orthodontic body based on the center point offset and the correction matrix, and generate a cross-sectional diagram of the orthodontic body. The step of calculating the sectioning position and sectioning direction vector of the orthodontic body based on the center point offset and the correction matrix, and generating a sectioning diagram of the orthodontic body, includes: Obtain the cutting position and cutting direction of the reference body, and based on the cutting position of the reference body... and the cutting direction vector of the reference body Calculate the section position of the orthodontic body and the cutting direction vector of the orthodontic body Generate a cross-sectional view of the orthodontic body; the cross-sectional position of the orthodontic body. The formula is shown below: in, Indicates the sectioning position of the reference volume. This indicates the offset of the center point of the orthodontic device. Indicates the physical size of the reference voxel. Indicates the physical dimensions of the corrected body voxels; , , These represent the cutting positions of the reference body at... Components in three directions; , , These represent the sectioning positions of the orthodontic body at... Components in three directions; , , These represent the offset of the center point of the orthodontic body at... Components in three directions; Cutting direction vector of the corrector The formula is shown below: in, Represents the cutting direction vector of the reference volume. The orientation matrix represents the reference volume; Adjust the image resolution of the cross-sectional view of the corrective body to be the same as the image resolution of the cross-sectional view of the reference body; The cross-sectional images of the corrective body and the reference body are normalized and fused.
2. The medical tomographic image correction and fusion method as described in claim 1, characterized in that, The process of processing the reference sequence and the corrected sequence to obtain volume data includes: The spatial physical information of the reference sequence and the correction sequence are read respectively to obtain slices, which correspond to the Dicom medical image. The slices are sorted in ascending order according to the spatial physical information to obtain volume data. Median filtering is used to remove noise from the Dicom medical image and enhance the contrast of the Dicom medical image.
3. The medical tomographic image correction and fusion method as described in claim 1, characterized in that, The step of calculating the physical data of the outer bounding box space based on the volume data includes: Obtain DICOM tags, which include location tags, orientation tags, and pixel tags; Obtain the spatial matrix of the first point at the top left corner of the Dicom medical image based on the location label. The formula is shown below: ; Obtain the direction cosine matrix of the Dicom medical image based on the orientation label. The formula is shown below: ; The pixel physical dimensions of the Dicom medical image are obtained based on the pixel labels, and the coordinate matrix of any point on the Dicom medical image is also obtained. The formula is shown below: ; According to the space matrix The direction cosine matrix and the coordinate matrix The arbitrary physical spatial location of the Dicom medical image is calculated through matrix transformation. The formula is shown below: ; Based on the arbitrary physical spatial location of the Dicom medical image The calculation formula is used to calculate the corner points of the outer bounding box, and the outer bounding box is obtained based on the corner points. The minimum and maximum coordinate values along the axis are obtained. ; Based on the bounding box of the reference body data and the bounding box of the corrective body data, it is determined whether there is an intersection between the reference body and the corrective body. The determination formula is as follows: ; ; ; When both conditions are met , and When using the judgment formula, the reference body and the correction body have an intersection.
4. The medical tomographic image correction and fusion method as described in claim 1, characterized in that, Adjusting the image resolution of the corrected body section to be consistent with the image resolution of the reference body section includes: The formula for calculating the resolution adjustment factor is shown below: in, Indicates the physical size of the reference voxel. Indicates the physical dimensions of the corrected body voxels; By comparing the image resolution of the corrected body section image with that of the reference body section image, a low-resolution image is obtained. This low-resolution image is then processed using cubic interpolation, as shown in the following formula: in, This represents the pixel value of the interpolation point. Indicates the position of the interpolation point. This represents a coefficient calculated based on surrounding pixels. This indicates that the reference pixel value is used.
5. The medical tomographic image correction and fusion method as described in claim 1, characterized in that, The normalization and fusion processing of the cross-sectional image of the corrective body and the cross-sectional image of the reference body includes: Two-dimensional images are extracted from the cross-sectional view of the corrected body and the cross-sectional view of the reference body, respectively. The extracted two-dimensional images are defined by the following formula: in, and Represents the coordinate position of a two-dimensional image; ; ; Represents the grayscale value of any pixel in a two-dimensional image. This represents the gray value of any pixel in the normalized two-dimensional image. Representation matrix Size, Represents the grayscale range of a two-dimensional image; By traversing all pixels of the two-dimensional images in the cross-sectional view of the orthopedic body and the cross-sectional view of the reference body respectively, the image pixels of the orthopedic body and the image pixels of the reference body are obtained. The fusion process includes a pixel-based fusion method, as shown in the following formula: in, Image pixels representing the reference volume, The image pixels representing the corrective body. Indicates transparency.
6. A medical tomographic image correction and fusion device, characterized in that, The device includes: The data acquisition module is configured to acquire two sets of Dicom medical images, read the image sequences of the two sets of Dicom medical images respectively, and obtain a reference sequence and a correction sequence. A data calculation module is configured to process the reference sequence and the correction sequence to obtain volume data, the volume data including a reference volume corresponding to the reference sequence and a correction volume corresponding to the correction sequence; and to calculate bounding box spatial physical data based on the volume data, the bounding box spatial physical data including a reference volume data bounding box corresponding to the reference volume and a correction volume data bounding box corresponding to the correction volume. The data judgment module is configured to determine whether there is an intersection between the reference body and the corrective body based on the bounding box of the reference body's volume data and the bounding box of the corrective body's volume data. If there is no intersection, the process ends; if there is an intersection, the volume space correction and fusion of the reference body and the corrective body are performed. The correction fusion module is configured to calculate the center point offset of the correction body relative to the reference body and the correction matrix; The calculation of the center point offset of the corrector relative to the reference body and the correction matrix includes: Align the centers of the orthodontic body and the reference body, and rotate the orthodontic body to be in the same orientation as the reference body; Based on the arbitrary physical spatial location of the Dicom medical image. Calculate the volume center coordinates of the reference body. and the body center coordinates of the corrective body ; Based on the body center coordinates of the reference body and the body center coordinates of the corrective body Obtain the center point offset of the orthodontic body ; The correction matrix Let the direction matrix of the reference volume be denoted as follows: Calculate the cutting position and cutting direction vector of the orthodontic body based on the center point offset and the correction matrix, and generate a cross-sectional diagram of the orthodontic body. The step of calculating the sectioning position and sectioning direction vector of the orthodontic body based on the center point offset and the correction matrix, and generating a sectioning diagram of the orthodontic body, includes: Obtain the cutting position and cutting direction of the reference body, and based on the cutting position of the reference body... and the cutting direction vector of the reference body Calculate the section position of the orthodontic body and the cutting direction vector of the orthodontic body Generate a cross-sectional view of the orthodontic body; the cross-sectional position of the orthodontic body. The formula is shown below: in, Indicates the sectioning position of the reference volume. This indicates the offset of the center point of the orthodontic device. Indicates the physical size of the reference voxel. Indicates the physical dimensions of the corrected body voxels; , , These represent the cutting positions of the reference body at... Components in three directions; , , These represent the sectioning positions of the orthodontic body at... Components in three directions; , , These represent the offset of the center point of the orthodontic body at... Components in three directions; The cutting direction vector of the corrective body The formula is shown below: in, Represents the cutting direction vector of the reference volume. The orientation matrix represents the reference volume; Adjust the image resolution of the orthopedic body section image to be the same as the image resolution of the reference body section image; perform normalization and fusion processing on the orthopedic body section image and the reference body section image.
7. A medical tomographic image correction and fusion system, the system comprising a processor and a memory, the memory storing a computer program, characterized in that, The computer program is loaded and executed by the processor to implement the medical tomographic image correction and fusion method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it is used to implement the medical tomographic image correction and fusion method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Image registration method and device, computer equipment and storage medium
CN118570264A
Brick-based Fusion Renderer
US20070247459A1
