Medical image registration method and device, computer equipment and storage medium
By using two registration matrices to determine the deformation field and perform image deformation, the problem of low medical image registration accuracy is solved, precise registration of the area of interest and its internal blood vessels is achieved, and the diagnosis in multi-phase enhanced scanning is improved. accuracy.
Patent Information
- Application Number
- CN202310334772.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
Existing medical image registration methods have problems with low registration accuracy in multi-phase enhanced scans, resulting in slight movements of the patient's abdominal cavity between different phases and huge shifts in local tissues and organs, affecting the accuracy of interventional planning and puncture surgery. sex.
Two registration matrices (the first registration matrix and the second registration matrix) are used to determine the deformation field. Through the fusion of the global and local deformation fields, a fusion weight map is generated to perform image deformation and registration to ensure that the area of interest and Precise registration of its internal blood vessels.
It improves the registration accuracy of medical images, ensures accurate mapping of the area of interest and its internal blood vessels, improves the fusion of blood vessel information between multi-phase images, and improves the accuracy of interventional planning and puncture surgery.
Smart Images

Figure CN118735968A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a medical image registration method, device, computer equipment and storage medium. Background Art
[0002] Multi-phase enhanced scanning is to perform arterial phase, portal venous phase and delayed phase scanning at different delayed time points after rapid bolus injection of contrast agent through vein. Taking the liver as an example, multi-phase enhanced scanning can obtain liver arterial phase images, portal venous phase images and delayed phase images respectively, and the obtained liver multi-phase images can be registered to map the vascular information in the liver multi-phase images to a unified space, so as to analyze the enhancement mode, degree of enhancement and its changes of the lesion based on the mapped vascular information, evaluate the blood supply of the hepatic artery and portal vein of the lesion, and help the qualitative diagnosis of the lesion.
[0003] In actual operation, due to the influence of the patient's breathing movement, the patient's body position change, the technician's operation, etc., the patient's abdominal cavity will move slightly between different phases, and the local tissues and organs will have huge displacements, so that the blood vessels between the phases cannot be well aligned and fused. In the process of interventional planning, puncture and other surgeries, the planning and puncture results will be poor.
[0004] In the related art, multi-phase images are registered according to a traditional registration method, but this method has the problem of low registration accuracy. Summary of the invention
[0005] Based on this, it is necessary to provide a medical image registration method, apparatus, computer equipment and storage medium that can improve the registration accuracy in order to solve the above technical problems.
[0006] In a first aspect, the present application provides a medical image registration method, the method comprising:
[0007] The first deformation field is determined according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest;
[0008] determining a deformed second image according to the first deformation field and the second image;
[0009] registering the deformed second image and the first image to obtain a second deformation field;
[0010] registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field;
[0011] The moving image is registered to the fixed image according to the target deformation field to obtain a registered fused image.
[0012] In one embodiment, determining the first deformation field according to the first registration matrix and the second registration matrix includes:
[0013] determining a first global deformation field based on the first registration matrix and the fixed image;
[0014] determining a local deformation field according to the second registration matrix and the first image;
[0015] The first deformation field is determined according to the first global deformation field and the local deformation field.
[0016] In one embodiment, determining the first deformation field according to the first global deformation field and the local deformation field includes:
[0017] determining a second global deformation field according to the local deformation field, the position information of the first image in the fixed image, and the position information of the second image in the moving image;
[0018] The first deformation field is determined according to the first global deformation field, the second global deformation field, the first image and the second image.
[0019] In one embodiment, determining the first deformation field according to the first global deformation field, the second global deformation field, the first image and the second image comprises:
[0020] generating a fusion weight map according to the first image and the second image;
[0021] The first deformation field is determined according to the first global deformation field, the second global deformation field and the fusion weight map.
[0022] In one embodiment, determining the first deformation field according to the first global deformation field, the second global deformation field and the fusion weight map includes:
[0023] Determining a third global deformation field according to the first global deformation field and the fusion weight map;
[0024] Determining a fourth global deformation field according to the second global deformation field and the fusion weight map;
[0025] The first deformation field is determined according to the third global deformation field and the fourth global deformation field.
[0026] In one embodiment, registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field includes:
[0027] Performing a composite operation on the first deformation field and the second deformation field to obtain a third deformation field;
[0028] determining a deformed moving image according to the third deformation field and the moving image;
[0029] registering other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field;
[0030] The target deformation field is determined according to the third deformation field and the fourth deformation field.
[0031] In a second aspect, the present application further provides a medical image registration device, the device comprising:
[0032] A first determination module is used to determine a first deformation field according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest;
[0033] A second determining module, configured to determine a deformed second image according to the first deformation field and the second image;
[0034] a third determining module, configured to register the deformed second image with the first image to obtain a second deformation field;
[0035] a fourth determination module, configured to register other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field, so as to determine a target deformation field;
[0036] The fifth determination module is used to register the moving image to the fixed image according to the target deformation field to obtain a registered fused image.
[0037] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0038] The first deformation field is determined according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest;
[0039] determining a deformed second image according to the first deformation field and the second image;
[0040] registering the deformed second image and the first image to obtain a second deformation field;
[0041] registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field;
[0042] The moving image is registered to the fixed image according to the target deformation field to obtain a registered fused image.
[0043] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0044] The first deformation field is determined according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest;
[0045] determining a deformed second image according to the first deformation field and the second image;
[0046] registering the deformed second image and the first image to obtain a second deformation field;
[0047] registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field;
[0048] The moving image is registered to the fixed image according to the target deformation field to obtain a registered fused image.
[0049] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, which implements the following steps when executed by a processor:
[0050] The first deformation field is determined according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest;
[0051] determining a deformed second image according to the first deformation field and the second image;
[0052] registering the deformed second image and the first image to obtain a second deformation field;
[0053] registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field;
[0054] The moving image is registered to the fixed image according to the target deformation field to obtain a registered fused image.
[0055] The above-mentioned medical image registration method, device, computer equipment and storage medium determine the first deformation field according to the first registration matrix and the second registration matrix, determine the deformed second image according to the first deformation field and the second image, register the deformed second image and the first image to obtain the second deformation field, and register other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine the target deformation field, thereby registering the moving image to the fixed image according to the target deformation field to obtain the registered fused image. Among them, the first registration matrix is a matrix for registering the fixed image and the moving image of the scanning area of the object to be detected; the second registration matrix is a matrix for registering the first image in the fixed image and the second image in the moving image, the first image is the image corresponding to the area of interest in the scanning area, and the second image is the image corresponding to the area of interest. After completing the global registration of the fixed image and the moving image, this embodiment first performs local registration on the first image and the second image containing the region of interest, and then performs local registration on other images in the fixed image and other images in the moving image, fully considering the registration of the region of interest, solving the problem of slight movement of the global image and large offset of the region of interest in medical image registration, and improving the registration accuracy of the region of interest and its internal blood vessels. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A diagram of an application environment of a medical image registration method in one embodiment;
[0057] Figure 2 is a schematic flow chart of a medical image registration method in one embodiment;
[0058] Figure 3 is a schematic diagram of a process of determining a first deformation field in one embodiment;
[0059] Figure 4 is a schematic diagram of a process for determining a first deformation field in another embodiment;
[0060] Figure 5 A schematic diagram of a process for determining a first deformation field in yet another embodiment;
[0061] Figure 6 A schematic diagram of a process for determining a first deformation field in yet another embodiment;
[0062] Figure 7 A schematic diagram of a process for determining a target deformation field in one embodiment;
[0063] Figure 8 is a schematic flow chart of a medical image registration method in another embodiment;
[0064] Fig. 9 is a structural block diagram of a medical image registration device in one embodiment;
[0065] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] The medical image registration method provided in the embodiment of the present application can be applied to Figure 1 The application environment includes a computer device, which may be a server, and its internal structure diagram may be as shown in FIG. Figure 1As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data for medical image registration. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a medical image registration method is implemented.
[0068] The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0069] In one embodiment, Figure 2 As shown, a medical image registration method is provided, which is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0070] S201, determining a first deformation field according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in a fixed image and a second image in a moving image, the first image being an image corresponding to an area of interest in the scanning area, and the second image being an image corresponding to the area of interest.
[0071] Since liver multi-phase includes three phases, the liver arterial phase, portal venous phase and delayed phase. In multi-phase registration, it is necessary to select one phase image from these three phases as a fixed image, and the remaining two phase images as two moving images, and then the moving images are registered to the fixed image. For example, the liver arterial phase image can be used as a fixed image, and the portal venous phase and delayed phase images can be used as moving images. At this time, it is necessary to register the liver arterial phase image and the portal venous phase image, and map the vascular information contained in the portal venous phase image to the liver arterial phase image, and to register the liver arterial phase image and the delayed phase image, and map the vascular information contained in the delayed phase image to the liver arterial phase image.
[0072] The segmentation algorithm is used to divide the region of interest from the fixed image to obtain the first image, and the region of interest is divided from the moving image to obtain the second image. For example, the label image Fixed Mask of the region of interest in the fixed image is obtained by the segmentation algorithm, and the Fixed Mask is multiplied with the fixed image to obtain the first image; the label image Moving Mask of the region of interest in the moving image is obtained by the segmentation algorithm, and the Moving Mask is multiplied with the moving image to obtain the second image. Among them, the Fixed Mask and the Moving Mask are both images composed of 0 and 1.
[0073] In this embodiment, a rigid registration algorithm can be used to register the fixed image and the moving image to determine a first registration matrix, the first image and the second image can be registered to determine a second registration matrix, and then the first registration matrix and the second registration matrix can be fused to obtain a first deformation field.
[0074] In one possible implementation, a first global deformation field can be determined based on a first registration matrix and a fixed image, a local deformation field can be determined based on a second registration matrix and the first image, and a second global deformation field can be further obtained based on the local deformation field, thereby obtaining the first deformation field based on the first global deformation field, the second global deformation field, and a fusion weight map determined by the first image and the second image.
[0075] Optionally, after obtaining the first global deformation field and the second global deformation field, the first global deformation field and the second deformation field may be composited to obtain the first deformation field.
[0076] It should be noted that in the embodiments of the present application, a rigid registration algorithm, an elastic registration algorithm, or a deep learning algorithm may be used for image registration.
[0077] S202: Determine a deformed second image according to the first deformation field and the second image.
[0078] In this embodiment, the first deformation field is applied to the second image to determine the deformed second image, and the first deformation field and the second image are used to assign a pixel value to each point in the blank image to obtain the deformed second image.
[0079] The pixel values in the second image may also be converted first and then multiplied by the first deformation field to obtain the deformed second image. For example, different weights may be assigned to the pixel values in the second image according to the importance of the region of interest, and the first deformation field may be applied to the second image multiplied by the weights to obtain the deformed second image.
[0080] S203: register the deformed second image with the first image to obtain a second deformation field.
[0081] In this embodiment, the deformed second image is registered with the first image to complete the local registration of the region of interest and obtain the second deformation field. For example, the first image and the second image are images containing the liver, and the deformed liver image and the liver image segmented from the fixed image are locally elastically registered to obtain the second deformation field. Elastic registration is performed on the liver image to improve the registration accuracy of the liver and its internal blood vessels without being disturbed by other images other than the liver.
[0082] S204: register other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field.
[0083] In this embodiment, the first deformation field and the second deformation field can be composited to obtain a new deformation field, the new deformation field is applied to the moving image to deform the moving image to obtain the deformed moving image, other images in the deformed moving image and other images in the fixed image are aligned to obtain a deformation field for the alignment of other images, and then the target deformation field is determined based on the deformation field obtained by compositely operating the deformation field with the first deformation field and the second deformation field.
[0084] In a possible implementation, the newly obtained deformation field can also be applied to a fixed image to deform the fixed image to obtain a deformed fixed image, and other images in the deformed fixed image and other images in the moving image can be aligned to obtain a deformation field for the alignment of other images, and then the target deformation field can be determined based on the deformation field obtained by compositely operating the deformation field with the first deformation field and the second deformation field.
[0085] S205 , registering the moving image to the fixed image according to the target deformation field to obtain a registered fused image.
[0086] In this embodiment, the target deformation field combines the second deformation field generated when the region of interest is registered and the deformation field generated when other images in the fixed image and other images in the moving image are registered. Therefore, the target deformation field is used to register the moving image to the fixed image, and the registration of the entire image can be completed to obtain a registered fused image. That is, the moving image is deformed using the target deformation field, and the vascular information in the moving image is fused and displayed on the fixed image. Therefore, the registered fused image includes the vascular information on the fixed image and the moving image.
[0087] In the above-mentioned medical image registration method, the first deformation field is determined according to the first registration matrix and the second registration matrix, the deformed second image is determined according to the first deformation field and the second image, the deformed second image and the first image are registered to obtain the second deformation field, and other images in the fixed image and other images in the moving image are registered according to the first deformation field and the second deformation field to determine the target deformation field, so as to register the moving image to the fixed image according to the target deformation field to obtain the registered fused image. Among them, the first registration matrix is a matrix for registering the fixed image and the moving image of the scanning area of the object to be detected; the second registration matrix is a matrix for registering the first image in the fixed image and the second image in the moving image, the first image is the image corresponding to the area of interest in the scanning area, and the second image is the image corresponding to the area of interest. After completing the global registration of the fixed image and the moving image, this embodiment first performs local registration on the first image and the second image containing the region of interest, and then performs registration on other images in the fixed image and other images in the moving image, fully considering the local registration of the region of interest, solving the problem of slight movement of the global image and large offset of the region of interest in medical image registration, and improving the registration accuracy of the region of interest and its internal blood vessels.
[0088] Figure 3 FIG. 1 is a schematic diagram of a process for determining a first deformation field in an embodiment. Figure 3 As shown, the embodiment of the present application relates to a possible implementation method of how to determine the first deformation field according to the first registration matrix and the second registration matrix, including the following steps:
[0089] S301, determining a first global deformation field according to a first registration matrix and a fixed image.
[0090] S302: Determine a local deformation field according to the second registration matrix and the first image.
[0091] In this embodiment, the first global deformation field can be obtained according to the first registration matrix and the coordinates of each point in the fixed image, and the local deformation field can be obtained according to the second registration matrix and the coordinates of each point in the first image. For example, the first registration matrix A and the coordinates Old_x of each point in the fixed image are multiplied to obtain the new coordinates New_x of each point in the fixed image, and the coordinates Old_x of each point in the fixed image are subtracted from the new coordinates New_x of each point in the fixed image to obtain the first global deformation field. Similarly, the local deformation field can also be determined by the same method.
[0092] S303: Determine a first deformation field according to the first global deformation field and the local deformation field.
[0093] In this embodiment, the local deformation field can be restored to the second global deformation field according to the positional relationship of the first image in the fixed image and the positional relationship of the second image in the moving image, so as to perform a fusion operation on the first global deformation field and the second global deformation field after the local deformation field is restored to determine the first deformation field.
[0094] In a possible implementation, the first global deformation field and the second global deformation field can be respectively applied to the fusion weight map according to the first global deformation field, the second global deformation field after the local deformation field is restored, and the fusion weight map determined by the first image and the second image to obtain the third global deformation field and the fourth global deformation field respectively, thereby determining the first deformation field according to the third global deformation field and the fourth global deformation field.
[0095] Figure 4 FIG. 1 is a schematic diagram of a process for determining a first deformation field in another embodiment. Figure 4 As shown, the embodiment of the present application relates to a possible implementation method of determining a first deformation field according to a first global deformation field and a local deformation field, including the following steps:
[0096] S401 : determining a second global deformation field according to a local deformation field, position information of a first image in a fixed image, and position information of the second image in the moving image.
[0097] In this embodiment, the local deformation field is restored to the second global deformation field according to the local deformation field, the position information of the first image in the fixed image, and the position information of the second image in the moving image. Assume that the global deformation field corresponding to the fixed image is a 10*10*10*3 matrix, the local deformation field is a 3*3*3*3 matrix, the starting position information of the first image in the fixed image is (4, 4, 4), and the initial deformation field corresponding to 10*10*10*3 values are all 0, and the starting position information of the second image in the moving image is (3, 3, 3). Add all the values in the local deformation field to the starting position information of the second image in the moving image (3, 3, 3), and then subtract the starting position information of the first image in the fixed image (4, 4, 4) to obtain the intermediate deformation field. Further, according to the position information of the first image in the fixed image, the intermediate deformation field is used to replace the values of the corresponding positions in the initial deformation field to obtain the second global deformation field.
[0098] S402: Determine a first deformation field according to the first global deformation field, the second global deformation field, the first image, and the second image.
[0099] In this embodiment, a fusion weight map can be determined according to the first image and the second image, the first global deformation field and the second global deformation field are respectively applied to the fusion weight map to obtain a corresponding global deformation field, and the first deformation field is determined according to the corresponding global deformation field.
[0100] In a possible implementation, the first global deformation field and the second global deformation field may be composited to obtain a new deformation field, which is then applied to the fusion weight map determined by the first image and the second image to obtain the first deformation field.
[0101] Figure 5 FIG. 4 is a flow chart of determining the first deformation field in another embodiment. Figure 5 As shown, the embodiment of the present application relates to a possible implementation method of determining the first deformation field according to the first global deformation field, the second global deformation field, the first image and the second image, including the following steps:
[0102] S501, generating a fusion weight map according to a first image and a second image.
[0103] In this embodiment, the union of the first image and the second image is taken, that is, the value at the intersection of the first image and the second image is taken as 1, and the maximum value of the first image and the second image is taken where they do not overlap, to obtain an initial fused image, and a fusion weight map is generated based on the initial fused image and a weight map generation method such as Gaussian weights and distance weights. For example, based on the label image Fixed Mask corresponding to the first image and the label image Moving Mask corresponding to the second image, the union of the two label images determines the final label image (also 0 and 1, compared with Fixed Mask and Moving Mask, the label covers a larger range). Then, the weight generation algorithm is used to determine the weight of the final label image, and the final image is a decimal value range between 0 and 1.
[0104] Among them, with the region of interest as the center, the farther away from the region of interest in the fusion weight map, the smaller the weight, and the closer to the region of interest, the larger the weight.
[0105] S502: Determine a first deformation field according to the first global deformation field, the second global deformation field and the fusion weight map.
[0106] In this embodiment, the first global deformation field and the second global deformation field can be respectively applied to the fusion weight map to obtain the first global deformation field with weight and the second global deformation field with weight. The first deformation field is determined by combining the first global deformation field with weight and the second global deformation field with weight.
[0107] In a possible implementation, the first global deformation field and the second global deformation field may be composited first, and the composited global deformation field may be applied to the fusion weight map to determine the first deformation field.
[0108] In the embodiment of the present application, a fusion weight map is generated according to the first image and the second image, and the first deformation field is determined according to the first global deformation field, the second global deformation field and the fusion weight map. In the embodiment of the present application, the first deformation field is determined by combining the first global deformation field, the second global deformation field and the fusion weight map, so that the determined first deformation field is more accurate, thereby realizing the mapping of vascular information in multi-phase images to a unified space, and providing doctors with rich vascular information of the liver and its surroundings during interventional planning and puncture surgeries.
[0109] Figure 6 FIG. 1 is a schematic diagram of a process for determining a first deformation field in another embodiment. Figure 6 As shown, the embodiment of the present application relates to a possible implementation method of determining the first deformation field according to the first global deformation field, the second global deformation field and the fusion weight map, including the following steps:
[0110] S601: Determine a third global deformation field according to the first global deformation field and the fusion weight map.
[0111] S602: Determine a fourth global deformation field according to the second global deformation field and the fusion weight map.
[0112] In this embodiment, if the rigid registration algorithm is used in the above embodiment to register the fixed image and the moving image to obtain the first registration matrix, and then the first deformation field is determined based on the first registration matrix and the second registration matrix, the third global deformation field can be determined according to (1-fusion weight map)*first global deformation field.
[0113] The second global deformation field and the fusion weight map are multiplied to obtain a fourth global deformation field.
[0114] S603: Determine a first deformation field according to the third global deformation field and the fourth global deformation field.
[0115] In this embodiment, the third global deformation field and the fourth global deformation field may be directly added to obtain the first deformation field.
[0116] Figure 7 FIG. 1 is a schematic diagram of a process for determining a target deformation field in an embodiment. Figure 7 As shown, the embodiment of the present application relates to a possible implementation method of how to register other images in a fixed image and other images in a moving image according to a first deformation field and a second deformation field to determine a target deformation field, including the following steps:
[0117] S701, performing a composite operation on the first deformation field and the second deformation field to obtain a third deformation field.
[0118] In this embodiment, according to the positional relationship between the fixed image and the first image, and the positional relationship between the second image after deformation by the first deformation field and the deformed moving image, the second deformation field is restored to a global deformation field of the same size as the fixed image, and then the restored global deformation field is composited with the first deformation field. The composite operation is performed by the following formula:
[0119]
[0120] in, is the first deformation field, To restore the second deformation field to a global deformation field of the same size as the fixed image, x is the image coordinate.
[0121] S702: Determine a deformed moving image according to the third deformation field and the moving image.
[0122] In this embodiment, the third deformation field is applied to the moving image to determine the deformed moving image. For example, two images are included, namely a blank image of the same size as the fixed image, a moving image, and a third deformation field. Assuming that x is the coordinate value of point A in the blank image, and the deformation field of point A in the third deformation field is dx, then the coordinate of point A corresponding to point B in the moving image is x+dx. After finding the coordinates of corresponding points A and B, the pixel value of point A is obtained by using an interpolation algorithm based on the pixel values of point B and its surrounding points. Repeat the above operation, traverse each point in the blank image, and then find the points in the moving image to which they correspond, and assign pixel values to each point in the blank image through interpolation operations to obtain the deformed moving image.
[0123] S703: register other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field.
[0124] In this embodiment, the first image and the second image are fixed, and the region of interest does not participate in the registration. Elastic registration or other methods can be used to register other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field. For example, the fixed image is an abdominal image, the region of interest is the liver, and the other images are images of other organs of the abdomen except the liver. The registration algorithm is used to register the images of other organs of the abdomen, so that the other organs of the abdomen are well registered, and the fourth deformation field is output.
[0125] S704: Determine a target deformation field according to the third deformation field and the fourth deformation field.
[0126] In this embodiment, since the first deformation field is determined according to the first registration matrix and the second registration matrix, the second image is deformed using the first deformation field to obtain the deformed second image, the deformed second image and the first image are registered to obtain the second deformation field, and the first deformation field and the second deformation field are composited to obtain the third deformation field. The fourth deformation field is a deformation field obtained by registering other images except the region of interest in the fixed image and other images except the region of interest in the moving image. The third deformation field and the fourth deformation field are composited to obtain a target deformation field that enables the entire image to be more accurately registered.
[0127] In a possible implementation, the third deformation field and the fourth deformation field are composited. The composite operation method of S701 can be used to restore the third deformation field and the fourth deformation field to global deformation fields of the same size as the fixed image, and then composite the two deformation fields.
[0128] In an embodiment of the present application, a third deformation field is obtained by performing a composite operation on the first deformation field and the second deformation field, and the deformed moving image is determined based on the third deformation field and the moving image, and other images in the fixed image and other images in the deformed moving image are registered to obtain a fourth deformation field, thereby determining the target deformation field based on the third deformation field and the fourth deformation field. In this embodiment, by realizing the registration of other images in the fixed image and other images in the moving image on the basis of the registration of the region of interest, it is possible to solve the problem in the traditional technology that when other images are obviously misaligned, their errors will be accumulated through Gaussian smoothing, resulting in affecting the registration of blood vessels in the region of interest. This method not only ensures the accuracy of blood vessel registration, but also enables organs in other images to be better registered.
[0129] Figure 8 In another embodiment, a medical image registration method is applied to Figure 1 The computer device shown, the method comprises the following steps:
[0130] For example, when used in liver surgery, the fixed image and the moving image are first subjected to global rigid registration of the abdomen to obtain a global rigid matrix (i.e., the first registration matrix). The liver image of the fixed image (i.e., the first image) and the liver image in the moving image (i.e., the second image) are segmented, and the segmented liver image is subjected to local rigid registration to obtain a local rigid matrix (i.e., the second registration matrix). The global rigid matrix and the local rigid matrix are fused to obtain a rigid deformation field (i.e., the first deformation field). The liver image in the moving image (i.e., the second image) is deformed using the rigid deformation field to obtain a deformed image of the liver image (i.e., the deformed second image). The deformed image of the liver image and the liver image in the fixed image (i.e., the first image) are then subjected to local elastic registration to obtain a local elastic deformation field. The rigid deformation field (i.e., the first deformation field) and the local elastic deformation field (i.e., the second deformation field) are composited to obtain a third deformation field, and the deformed moving image is determined according to the third deformation field and the moving image, and other images in the deformed moving image (other abdominal tissues and organs) are locally elastically registered with other images in the fixed image (other abdominal tissues and organs) to obtain a fourth deformation field, and the third deformation field and the fourth deformation field are composited to obtain a target deformation field, so that the vascular label on the moving image is propagated to the fixed image according to the target deformation field to obtain a registered fused image.
[0131] In the above embodiment, a first registration matrix is obtained by registering a fixed image and a moving image, a second registration matrix is obtained by registering the first image and the second image, a first deformation field is determined according to the first registration matrix and the second registration matrix, a deformed second image is determined according to the first deformation field and the second image, the deformed second image and the first image are registered to obtain a second deformation field, and a composite operation is performed on the first deformation field and the second deformation field to obtain a third deformation field, the moving image is deformed using the third deformation field to obtain a deformed moving image, other images in the fixed image and other images in the deformed moving image are further registered to obtain a fourth deformation field, a target deformation field is determined according to the third deformation field and the fourth deformation field, and the moving image is registered to the fixed image according to the target deformation field to obtain a registered fused image. After completing the global registration of the fixed image and the moving image, this embodiment first performs local registration on the first image and the second image containing the region of interest, and then performs registration on other images in the fixed image and other images in the moving image, fully considering the local registration of the region of interest, ensuring both the registration accuracy of the blood vessels and better registration of other abdominal tissues and organs, solving the problem of slight movement of the global image and large offset of the region of interest in medical image registration, and improving the registration accuracy of the region of interest and its internal blood vessels.
[0132] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0133] Based on the same inventive concept, the embodiment of the present application also provides a medical image registration device for implementing the medical image registration method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more medical image registration device embodiments provided below can refer to the limitations of the medical image registration method above, and will not be repeated here.
[0134] In one embodiment, Fig. 9 As shown, a medical image registration device is provided, comprising: a first determination module 11, a second determination module 12, a third determination module 13, a fourth determination module 14 and a fifth determination module 15, wherein:
[0135] A first determination module 11 is used to determine a first deformation field according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in a fixed image and a second image in a moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest;
[0136] A second determining module 12, configured to determine a deformed second image according to the first deformation field and the second image;
[0137] A third determination module 13 is used to register the deformed second image with the first image to obtain a second deformation field;
[0138] A fourth determination module 14 is used to register other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field;
[0139] The fifth determination module 15 is used to register the moving image to the fixed image according to the target deformation field to obtain a registered fused image.
[0140] In one embodiment, the first determining module includes:
[0141] A first determining unit, configured to determine a first global deformation field according to a first registration matrix and a fixed image;
[0142] A second determining unit, configured to determine a local deformation field according to a second registration matrix and the first image;
[0143] The third determining unit is used to determine the first deformation field according to the first global deformation field and the local deformation field.
[0144] In one embodiment, the third determination unit is also used to determine the second global deformation field based on the local deformation field, the position information of the first image in the fixed image and the position information of the second image in the moving image; and determine the first deformation field based on the first global deformation field, the second global deformation field, the first image and the second image.
[0145] In one embodiment, the third determination unit is further configured to generate a fusion weight map according to the first image and the second image; and determine the first deformation field according to the first global deformation field, the second global deformation field and the fusion weight map.
[0146] In one embodiment, the third determination unit is further used to determine the third global deformation field based on the first global deformation field and the fusion weight map; determine the fourth global deformation field based on the second global deformation field and the fusion weight map; and determine the first deformation field based on the third global deformation field and the fourth global deformation field.
[0147] In one embodiment, the fourth determining module includes:
[0148] A compound unit, used for performing a compound operation on the first deformation field and the second deformation field to obtain a third deformation field;
[0149] a fourth determining unit, configured to determine a deformed moving image according to the third deformation field and the moving image;
[0150] A registration unit, used for registering other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field;
[0151] The fifth determining unit is used to determine a target deformation field according to the third deformation field and the fourth deformation field.
[0152] Each module in the above-mentioned medical image registration device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0153] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (Near Field Communication) or other technologies. When the computer program is executed by the processor, a medical image registration method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0154] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0155] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0156] The first deformation field is determined according to the first registration matrix and the second registration matrix; the first registration matrix is a matrix for registering the fixed image and the moving image of the scanning area of the object to be detected; the second registration matrix is a matrix for registering the first image in the fixed image and the second image in the moving image, the first image is an image corresponding to the area of interest in the scanning area, and the second image is an image corresponding to the area of interest;
[0157] Determining a deformed second image according to the first deformation field and the second image;
[0158] Registering the deformed second image with the first image to obtain a second deformation field;
[0159] According to the first deformation field and the second deformation field, registering other images in the fixed image and other images in the moving image to determine a target deformation field;
[0160] According to the target deformation field, the moving image is registered to the fixed image to obtain a registered fused image.
[0161] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0162] determining a first global deformation field based on the first registration matrix and the fixed image;
[0163] determining a local deformation field based on the second registration matrix and the first image;
[0164] A first deformation field is determined according to the first global deformation field and the local deformation field.
[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0166] determining a second global deformation field according to the local deformation field, position information of the first image in the fixed image, and position information of the second image in the moving image;
[0167] A first deformation field is determined based on the first global deformation field, the second global deformation field, the first image, and the second image.
[0168] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0169] generating a fusion weight map according to the first image and the second image;
[0170] A first deformation field is determined according to the first global deformation field, the second global deformation field and the fusion weight map.
[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0172] Determine a third global deformation field according to the first global deformation field and the fusion weight map;
[0173] Determining a fourth global deformation field according to the second global deformation field and the fusion weight map;
[0174] The first deformation field is determined according to the third global deformation field and the fourth global deformation field. In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0175] Performing a composite operation on the first deformation field and the second deformation field to obtain a third deformation field;
[0176] Determine a deformed moving image according to the third deformation field and the moving image;
[0177] Registering other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field;
[0178] A target deformation field is determined according to the third deformation field and the fourth deformation field.
[0179] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0180] The first deformation field is determined according to the first registration matrix and the second registration matrix; the first registration matrix is a matrix for registering the fixed image and the moving image of the scanning area of the object to be detected; the second registration matrix is a matrix for registering the first image in the fixed image and the second image in the moving image, the first image is an image corresponding to the area of interest in the scanning area, and the second image is an image corresponding to the area of interest;
[0181] Determining a deformed second image according to the first deformation field and the second image;
[0182] Registering the deformed second image with the first image to obtain a second deformation field;
[0183] According to the first deformation field and the second deformation field, registering other images in the fixed image and other images in the moving image to determine a target deformation field;
[0184] According to the target deformation field, the moving image is registered to the fixed image to obtain a registered fused image.
[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0186] determining a first global deformation field based on the first registration matrix and the fixed image;
[0187] determining a local deformation field based on the second registration matrix and the first image;
[0188] A first deformation field is determined according to the first global deformation field and the local deformation field.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] determining a second global deformation field according to the local deformation field, position information of the first image in the fixed image, and position information of the second image in the moving image;
[0191] A first deformation field is determined based on the first global deformation field, the second global deformation field, the first image, and the second image.
[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0193] generating a fusion weight map according to the first image and the second image;
[0194] A first deformation field is determined according to the first global deformation field, the second global deformation field and the fusion weight map.
[0195] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0196] Determine a third global deformation field according to the first global deformation field and the fusion weight map;
[0197] Determining a fourth global deformation field according to the second global deformation field and the fusion weight map;
[0198] The first deformation field is determined according to the third global deformation field and the fourth global deformation field. In one embodiment, when the computer program is executed by the processor, the following steps are also implemented:
[0199] Performing a composite operation on the first deformation field and the second deformation field to obtain a third deformation field;
[0200] Determine a deformed moving image according to the third deformation field and the moving image;
[0201] Registering other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field;
[0202] A target deformation field is determined according to the third deformation field and the fourth deformation field.
[0203] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0204] The first deformation field is determined according to the first registration matrix and the second registration matrix; the first registration matrix is a matrix for registering the fixed image and the moving image of the scanning area of the object to be detected; the second registration matrix is a matrix for registering the first image in the fixed image and the second image in the moving image, the first image is an image corresponding to the area of interest in the scanning area, and the second image is an image corresponding to the area of interest;
[0205] Determining a deformed second image according to the first deformation field and the second image;
[0206] Registering the deformed second image with the first image to obtain a second deformation field;
[0207] According to the first deformation field and the second deformation field, registering other images in the fixed image and other images in the moving image to determine a target deformation field;
[0208] According to the target deformation field, the moving image is registered to the fixed image to obtain a registered fused image.
[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0210] determining a first global deformation field based on the first registration matrix and the fixed image;
[0211] determining a local deformation field based on the second registration matrix and the first image;
[0212] A first deformation field is determined according to the first global deformation field and the local deformation field.
[0213] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0214] determining a second global deformation field according to the local deformation field, position information of the first image in the fixed image, and position information of the second image in the moving image;
[0215] A first deformation field is determined based on the first global deformation field, the second global deformation field, the first image, and the second image.
[0216] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0217] generating a fusion weight map according to the first image and the second image;
[0218] A first deformation field is determined according to the first global deformation field, the second global deformation field and the fusion weight map.
[0219] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0220] Determine a third global deformation field according to the first global deformation field and the fusion weight map;
[0221] Determining a fourth global deformation field according to the second global deformation field and the fusion weight map;
[0222] The first deformation field is determined according to the third global deformation field and the fourth global deformation field. In one embodiment, when the computer program is executed by the processor, the following steps are also implemented:
[0223] Performing a composite operation on the first deformation field and the second deformation field to obtain a third deformation field;
[0224] Determine a deformed moving image according to the third deformation field and the moving image;
[0225] Registering other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field;
[0226] A target deformation field is determined according to the third deformation field and the fourth deformation field.
[0227] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0228] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0229] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0230] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A medical image registration method, characterized in that: The method comprises: The first deformation field is determined according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest; determining a deformed second image according to the first deformation field and the second image; registering the deformed second image and the first image to obtain a second deformation field; registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field; The moving image is registered to the fixed image according to the target deformation field to obtain a registered fused image.
2. The method according to claim 1, characterized in that The determining of the first deformation field according to the first registration matrix and the second registration matrix comprises: determining a first global deformation field based on the first registration matrix and the fixed image; determining a local deformation field according to the second registration matrix and the first image; The first deformation field is determined according to the first global deformation field and the local deformation field.
3. The method according to claim 2, characterized in that The determining the first deformation field according to the first global deformation field and the local deformation field comprises: determining a second global deformation field according to the local deformation field, the position information of the first image in the fixed image, and the position information of the second image in the moving image; The first deformation field is determined according to the first global deformation field, the second global deformation field, the first image and the second image.
4. The method according to claim 3, characterized in that The determining the first deformation field according to the first global deformation field, the second global deformation field, the first image and the second image comprises: generating a fusion weight map according to the first image and the second image; The first deformation field is determined according to the first global deformation field, the second global deformation field and the fusion weight map.
5. The method according to claim 4, characterized in that The determining the first deformation field according to the first global deformation field, the second global deformation field and the fusion weight map comprises: Determining a third global deformation field according to the first global deformation field and the fusion weight map; Determining a fourth global deformation field according to the second global deformation field and the fusion weight map; The first deformation field is determined according to the third global deformation field and the fourth global deformation field.
6. The method according to any one of claims 1 to 5, characterized in that: The registering other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field to determine a target deformation field includes: Performing a composite operation on the first deformation field and the second deformation field to obtain a third deformation field; determining a deformed moving image according to the third deformation field and the moving image; registering other images in the fixed image and other images in the deformed moving image to obtain a fourth deformation field; The target deformation field is determined according to the third deformation field and the fourth deformation field.
7. A medical image registration device, characterized in that: The device comprises: A first determination module is used to determine a first deformation field according to a first registration matrix and a second registration matrix; the first registration matrix is a matrix for registering a fixed image and a moving image of a scanning area of an object to be detected; the second registration matrix is a matrix for registering a first image in the fixed image and a second image in the moving image, the first image is an image corresponding to a region of interest in the scanning area, and the second image is an image corresponding to the region of interest; A second determining module, configured to determine a deformed second image according to the first deformation field and the second image; a third determining module, configured to register the deformed second image with the first image to obtain a second deformation field; a fourth determination module, configured to register other images in the fixed image and other images in the moving image according to the first deformation field and the second deformation field, so as to determine a target deformation field; The fifth determination module is used to register the moving image to the fixed image according to the target deformation field to obtain a registered fused image.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Swallowing disorder screening system based on computer vision
CN121861018A
Computer vision-based dysphagia screening system
CN121861018B
