Dual-energy subtraction image registration method, device, equipment and readable storage medium
Through the combination of global rigid registration and local elastic registration, the problem of insufficient registration accuracy of dual-energy subtraction images caused by a single similarity measure is solved, significantly improving image quality and enhancing the accuracy of medical diagnosis.
Patent Information
- Application Number
- CN202110145488.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-02-02
AI Technical Summary
In the existing technology, when a single similarity measure is used for dual-energy subtraction image registration, it has insufficient accuracy and poor universality, resulting in poor motion artifact correction, which significantly reduces image quality, especially when the patient moves involuntarily.
After adopting global rigid registration processing, local elastic registration is performed. Through the search strategy of multi-scale feature matrix and target control points, precise registration from coarse to fine is achieved, which improves the quality of dual-energy subtraction images.
It effectively improves the registration accuracy of dual-energy subtraction images, reduces artifacts, and improves the accuracy of medical diagnosis.
Smart Images

Figure CN112927274B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image processing, and in particular to a dual-energy subtraction image registration method, device, equipment and readable storage medium. Background Art
[0002] Diagnostic equipment with a digital radiography (DR) system is one of the most popular medical diagnostic equipment at present, with the advantages of good economy and high diagnostic value. With the continuous development of DR technology, the quality of DR images has been greatly improved, providing more and more accurate tissue imaging information for medical diagnosis. However, since DR photography is a two-dimensional imaging, the distribution of tissues in the axial direction of the rays will inevitably produce image overlap. For example, for conventional chest AP radiographs, in the screening of lung nodules, missed diagnosis may occur due to the obstruction of nodule tissue by the ribs, while in the examination of rib fractures, the fracture may not be accurately diagnosed due to the obstruction of soft tissue. To address this problem, dual-energy subtraction imaging technology was proposed and has played an effective role in actual clinical applications.
[0003] However, in the actual technical implementation process, a more prominent problem is the existence of motion artifacts. During the two exposures, due to the patient's involuntary body movement, as well as the movement of organ tissues such as breathing and heartbeat, different degrees of motion artifacts will appear in the final subtraction result, which will significantly reduce the quality of the subtraction image. In the prior art, a single similarity measure is generally used as an energy function to measure the relative motion between the high-energy image and the low-energy image in the dual-energy image, and the dual-energy image is registered, which generally has the problem of insufficient accuracy.
[0004] For example, the "Dual Energy Subtraction Method Based on DR Machine" with the authorization number CN106296613B uses an improved SIFT algorithm to register dual energy images, but only considers the motion amplitude within a 2-second time interval, and only performs single-precision registration. For longer time intervals and larger motion amplitudes, the artifact correction effect is limited. Therefore, in practical applications, a single similarity measure often has the defects of insufficient accuracy and poor universality, and the correction effect of dual energy image motion artifacts is not ideal, and the algorithm robustness is not high. For example, the mutual information measure is used. For two highly autocorrelated images, or more commonly, for a certain area in two images that corresponds, its accuracy is obviously insufficient. Summary of the invention
[0005] The main purpose of the present invention is to provide a dual-energy subtraction image registration method, device, equipment and readable storage medium, aiming to solve the technical problem of insufficient registration accuracy of dual-energy subtraction images using a single similarity measure as an energy function.
[0006] In addition, to achieve the above object, the present invention also provides a dual-energy subtraction image registration method, the dual-energy subtraction image registration method comprising the following steps:
[0007] Acquiring a dual-energy subtraction image to be registered;
[0008] Performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image;
[0009] The rigid registration image is subjected to local elastic registration processing to obtain a target dual-energy image.
[0010] Optionally, the dual-energy subtraction image includes a high-energy image and a low-energy image, and the step of performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image includes:
[0011] Sampling the dual-energy subtraction image to obtain a dual-energy sampling image corresponding to the dual-energy subtraction image;
[0012] Taking the first sampling image in the dual-energy sampling image as a reference, transforming the second sampling image in the dual-energy sampling image to construct a first characteristic matrix between the high-energy image and the low-energy image in the dual-energy subtraction image;
[0013] According to the first characteristic matrix, a rigid transformation is performed on the dual-energy subtraction image to obtain a rigid registration image.
[0014] Optionally, the step of performing local elastic registration processing on the rigidly registered image comprises:
[0015] Obtaining box parameters, and performing box processing on the rigid registration image according to the box parameters to obtain a dual image layer;
[0016] Setting a target control point in the dual image layer and creating a search strategy for searching for a target registration parameter corresponding to the target control point;
[0017] According to the search strategy, searching for target registration parameters corresponding to the target control points;
[0018] According to the target registration parameters, elastic transformation processing is performed on the rigid registration image;
[0019] It is determined whether the box parameter is the last box parameter. If not, the process returns to and executes the step of obtaining the box parameter, and binning the rigid registration image according to the box parameter to obtain a dual image layer.
[0020] Optionally, the step of binning the rigidly registered image according to the bin parameters to obtain a dual image layer comprises:
[0021] determining a box region on the rigidly registered image according to the box parameters;
[0022] According to the box regions, the rigid registration image is subjected to non-overlapping box division processing to obtain a dual image layer.
[0023] Optionally, the dual image layer includes a high-energy image layer and a low-energy image layer, and the step of searching for the target registration parameter corresponding to the target control point according to the search strategy includes:
[0024] Determine a target area of interest corresponding to the target control point;
[0025] Searching the target interest region according to preset search space parameters to construct a second feature matrix in the target interest region between the high-energy image layer and the low-energy image layer in the dual image layers;
[0026] According to the second feature matrix, a target registration parameter corresponding to the target control point is determined.
[0027] Optionally, the step of performing elastic transformation processing on the rigid registration image according to the target registration parameter comprises:
[0028] According to the target registration parameters, performing inverse binning processing on the dual image layer to map the target registration parameters into the rigid registration image;
[0029] According to the target registration parameters, the rigid registration image is interpolated, and the target grayscale values of the pixels in the rigid registration image are calculated to elastically transform the rigid registration image.
[0030] Optionally, the step of performing interpolation processing on the rigid registration image according to the target registration parameter, and calculating the target grayscale value of the pixel point in the rigid registration image to perform elastic transformation on the rigid registration image includes:
[0031] Determining a target registration sub-parameter corresponding to each pixel in the rigid registration image according to the target registration parameter;
[0032] Performing interpolation processing on the rigid registration image according to the target registration sub-parameters, and calculating target grayscale values of pixels in the rigid registration image;
[0033] The grayscale value of the rigid registration image is replaced by the target grayscale value to complete the elastic transformation of the rigid registration image.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a dual-energy subtraction image registration device, the dual-energy subtraction image registration device comprising:
[0035] An image acquisition module, used for acquiring a dual-energy subtraction image to be registered;
[0036] A rigid registration module, used for performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image;
[0037] The elastic registration module is used to perform local elastic registration processing on the rigid registration image to obtain a target dual-energy image.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a dual-energy subtraction image registration device, which includes: a memory, a processor, and a dual-energy subtraction image registration program stored in the memory and executable on the processor, and when the dual-energy subtraction image registration program is executed by the processor, the steps of the dual-energy subtraction image registration method as described above are implemented.
[0039] In addition, to achieve the above objectives, the present invention also provides a readable storage medium, on which a dual-energy subtraction image registration program is stored. When the dual-energy subtraction image registration program is executed by a processor, the steps of the dual-energy subtraction image registration method as described above are implemented.
[0040] The embodiment of the present invention proposes a dual-energy subtraction image registration method, device, equipment and readable storage medium. Compared with the prior art, which uses a single similarity measure as an energy function to perform registration of dual-energy subtraction images with insufficient accuracy, in the embodiment of the present invention, by acquiring a dual-energy subtraction image to be registered, a global rigid registration process is performed on the dual-energy subtraction image to obtain a rigid registration image, and a local elastic registration process is performed on the rigid registration image to obtain a target dual-energy image. First, the large-scale translational motion between the dual-energy images is corrected through global rigid registration to obtain a rigid registration image. On the basis of the rigid registration image, multi-scale local elastic registration is performed, and finally, precise registration from coarse to fine is achieved, thereby improving the registration accuracy, and thus effectively improving the quality of the dual-energy subtraction image. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the hardware structure of an implementation of a device provided in an embodiment of the present invention;
[0042] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the dual-energy subtraction image registration method of the present invention;
[0043] Figure 3 It is a schematic diagram of the flow chart of the second embodiment of the dual-energy subtraction image registration method of the present invention;
[0044] Figure 4 A schematic diagram of binning processing of the dual-energy subtraction image registration method of the present invention;
[0045] Figure 5 It is a schematic diagram of functional modules of an embodiment of a dual-energy subtraction image registration device of the present invention.
[0046] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0048] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0049] The dual-energy subtraction image registration terminal (also called terminal, device or terminal device) of the embodiment of the present invention may be a PC, or a mobile terminal device with a display function such as a smart phone, a tablet computer and a portable computer.
[0050] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0051] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0052] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] like Figure 1 As shown, the memory 1005 as a readable storage medium may include an operating system, a network communication module, a user interface module, and a dual-energy subtraction image registration program.
[0054] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the dual-energy subtraction image registration program stored in the memory 1005. When the dual-energy subtraction image registration program is executed by the processor, the operations in the dual-energy subtraction image registration method provided in the following embodiment are implemented.
[0055] Based on the above-mentioned device hardware structure, an embodiment of the dual-energy subtraction image registration method of the present invention is proposed.
[0056] Reference Figure 2 In a first embodiment of the dual-energy subtraction image registration method of the present invention, the dual-energy subtraction image registration method comprises:
[0057] Step S10, obtaining a dual-energy subtraction image to be registered;
[0058] The dual-energy subtraction image in this embodiment may be a dual-energy X-ray subtraction image, and the following takes a dual-energy X-ray subtraction image (hereinafter referred to as a dual-energy subtraction image) as an example for explanation. The dual-energy subtraction image utilizes the attenuation property of X-rays, and obtains tissue images of the same part of the acquisition target under different energy spectra through two exposures of different energy spectra, and then automatically performs subtraction processing or data separation and integration processing on the acquired tissue images with the help of digital image processing technology to achieve image separation of soft tissue and bone, thereby obtaining a dual-energy subtraction image, wherein the two energy spectra include one high energy and one low energy, and the acquisition target is the object of the dual-energy subtraction image to be acquired, and the object may be a patient to be diagnosed, including but not limited to humans or animals. The dual-energy subtraction image can meet different diagnostic needs, but when acquiring the dual-energy subtraction image of the acquisition target, due to the patient's involuntary body movement, as well as the movement of organ tissues such as breathing and heartbeat, the dual-energy subtraction image obtained usually has artifacts, and the presence of artifacts will not only reduce the quality of the dual-energy subtraction image, but also cause difficulties in diagnosis. The dual-energy subtraction images to be registered in this embodiment include but are not limited to the low-quality dual-energy subtraction images with artifacts acquired by the above-mentioned diagnostic and treatment equipment, wherein the dual-energy subtraction images to be registered include high-energy images and low-energy images.
[0059] Step S20, performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image;
[0060] After acquiring the dual-energy subtraction image to be registered, the dual-energy subtraction image to be registered is first subjected to global rigid registration processing. Rigid registration processing is for the registration of rigid movement in the dual-energy subtraction image. It is known that the rigidity of an object means that the object will not deform when a collision occurs. Therefore, the rigid movement of an object means that the object is not deformed due to differential deformation caused by collision or compression. For example, when the patient is collecting dual-energy subtraction images, the body involuntarily sways due to inconvenience in movement or unstable standing, resulting in artifacts caused by rigid movement in the collected dual-energy subtraction images. Performing global rigid registration on the dual-energy subtraction images
[0061] By processing, artifacts caused by large-scale rigid movement in the dual-energy image can be corrected to obtain a rigid registration image, wherein the rigid registration image includes a high-energy rigid registration image and a low-energy rigid registration image.
[0062] Step S30, performing local elastic registration processing on the rigidly registered image to obtain a target dual-energy image.
[0063] On the basis of the rigid registration image, a multi-scale local elastic registration process is performed. In this embodiment, the rigid registration image is subjected to a multi-scale local elastic registration process, and accurate registration from coarse to fine can be achieved. Local elastic registration is used to correct the artifacts of the image caused by the deformation of the tissue or organ in the examination area in the dual-energy subtraction image. For example, when acquiring a dual-energy subtraction image, the movement of the patient's tissue or organ causes compression of the tissue or organ in the examination area, resulting in deformation of the tissue or organ in the examination area, such as the contraction and expansion of the heart and lungs caused by heartbeat and breathing, which may cause artifacts in the acquired dual-energy subtraction image. The acquired dual-energy subtraction image is first subjected to a global rigid registration to correct the influence of the rigid movement on the image. On this basis, the image is subjected to a multi-scale local elastic registration, and local correction is performed from coarse to fine to obtain the target dual-energy image.
[0064] It should be noted that when performing elastic registration on the basis of rigid registration, iterative registration can be performed, that is, when the quality of the dual-energy image to be registered is too poor or there are too many artifacts, the dual-energy subtraction image to be registered can be iteratively registered using different iteration parameters until the ideal target dual-energy image is obtained.
[0065] The detailed steps of step S20 include steps A1-A3:
[0066] Step A1, sampling the dual-energy subtraction image to obtain a dual-energy sampling image corresponding to the dual-energy subtraction image;
[0067] Step A2, taking the first sampling image in the dual-energy sampling image as a reference, transforming the second sampling image in the dual-energy sampling image to construct a first characteristic matrix between the high-energy image and the low-energy image in the dual-energy subtraction image;
[0068] Step A3: performing a rigid transformation on the dual-energy subtraction image according to the first characteristic matrix to obtain a rigid registration image.
[0069] Specifically, the process of globally rigidly registering the acquired dual-energy subtraction image to be registered includes sampling the high-energy image and the low-energy image in the dual-energy subtraction image respectively to obtain the dual-energy sampling image corresponding to the dual-energy subtraction image, wherein the dual-energy sampling image includes a high-energy sampling image obtained by sampling the high-energy image and a low-energy sampling image obtained by sampling the low-energy image, and then the similarity between the high-energy image and the low-energy image in the dual-energy subtraction image is determined by performing translation, rotation and other processing on the sampling images, and a feature matrix is constructed, wherein the constructed feature matrix is a similarity matrix. The constructed similarity matrix is calculated to determine the motion parameters of the acquisition target of the dual-energy subtraction image during image acquisition, and the dual-energy subtraction image is rigidly transformed according to the motion parameters to complete the rigid registration.
[0070] In this embodiment, when sampling the dual-energy subtraction image, the sampling method used includes but is not limited to downsampling. Furthermore, when converting the sampled image, it is necessary to use one of the high-energy sampling image and the low-energy sampling image of the dual-energy sampling image as a reference, and perform operations such as translation and rotation transformation on the other. Generally, the image with better quality among the high-energy image and the low-energy image is used as a reference. The reference image can also be determined according to the order of image acquisition. It can be seen that if the acquisition target of the dual-energy subtraction image undergoes translation or other movements during the image acquisition process, the high-energy and low-energy images in the dual-energy subtraction image correspond to two states of the movement of the acquisition target, respectively. With the image of one state as a reference, the image of the other state is corrected to eliminate the influence of translation on the acquired image. In this embodiment, the low-energy sampling image is used as a reference, and the high-energy image is translated, rotated, and transformed. The specific process of performing global rigid registration on the dual-energy subtraction image is shown in the following formula:
[0071] (1)
[0072] (2)
[0073] (3)
[0074] In formula 1, D is the original size of the dual-energy subtraction image, and the symbol Indicates rounding operation. n is the sampling multiple of downsampling, and the dual-energy subtraction image is downsampled to obtain the dual-energy sampling image. Taking the low-energy sampling image in the dual-energy sampling image as a reference, according to the preset search space parameters, the similarity matrix between the high-energy image and the low-energy image in the dual-energy subtraction image is constructed through translation and rotation transformation, as shown in Formula 2. In Formula 2, S is the constructed feature matrix diagram, where MI is the mutual information, EA is the edge alignment, MI and EA are the similarity measures of the dual-energy subtraction image, ais the weight factor. In formula 3, H(A) and H(B) are the entropies of images A and B respectively, H(A,B) is the joint entropy of images A and B, E(A) and E(B) are the edge images of images A and B obtained by edge detection algorithms such as Canny (an edge detection algorithm), the symbol && represents the AND operation, and the symbol || represents the OR operation.
[0075] The value of the preset search space parameter determines the search range of the image to be registered when performing global rigid registration. It can be set according to the actual maximum motion amplitude of the acquisition target. For example, the value of the search space parameter can be set between 5 and 15. If the translation amplitude of the acquisition target is large, it can be set to a larger value to obtain a better registration effect. If the translation amplitude of the acquisition target is small, it can be set to a smaller value. When the value of the search space parameter is small, the registration speed can be significantly improved, and the flexibility of rigid registration is improved.
[0076] For MI and EA shown in formula 2-3, their values are monotonically increasing with the matching degree between high-energy image and low-energy image, that is, the higher the matching degree between high-energy image and low-energy image, the larger the MI and EA values are. When the high-energy image and low-energy image are fully registered, the MI and EA values reach the maximum. By adjusting the weight factor a (value range 0~1), the proportion of the two measurement components can be adjusted, thereby improving the universality of the rigid registration algorithm.
[0077] The adjustment parameters of the dual-energy subtraction image are determined according to the similarity matrix S. The adjustment parameters of the dual-energy subtraction image include but are not limited to motion parameters, such as motion vectors. In this example, the motion vector is taken as an example, and the low-energy image is used as a reference. According to the motion vector corresponding to the maximum value of the feature matrix S, the high-energy image is rigidly transformed to complete the global rigid registration. Since the motion vector includes the direction and distance of movement, according to the motion vector corresponding to the maximum value of the feature matrix S, the pixel points in the high-energy image are moved in the opposite direction of the motion vector and the same distance as the motion vector, so that the pixel points in the high-energy image are at the same position as the pixel points in the low-energy image, thereby completing the global rigid registration.
[0078] In this embodiment, by acquiring the dual-energy subtraction image to be registered, performing global rigid registration processing on the dual-energy subtraction image to obtain a rigid registration image, and performing local elastic registration processing on the rigid registration image to obtain a target dual-energy image. First, the large-scale rigid motion between the dual-energy images is corrected by global rigid registration to obtain a rigid registration image. On the basis of the rigid registration image, multi-scale local elastic registration is performed by weighting multiple similarity measures, and finally, accurate registration from coarse to fine is achieved, the registration accuracy is improved, and the quality of the dual-energy subtraction image is effectively improved.
[0079] Further, refer to Figure 3 , based on the above-mentioned embodiment of the present invention, a second embodiment of the method of the present invention is proposed.
[0080] This embodiment is a refinement of step S30 in the first embodiment, including steps S31-S35:
[0081] Step S31, obtaining box parameters, and performing box processing on the rigid registration image according to the box parameters to obtain a dual image layer;
[0082] Step S32, setting a target control point in the dual image layer, and creating a search strategy for searching for a target registration parameter corresponding to the target control point;
[0083] Step S33, searching for target registration parameters corresponding to the target control points according to the search strategy;
[0084] Step S34: performing elastic transformation processing on the rigid registration image according to the target registration parameters to obtain a target dual-energy image.
[0085] Step S35, determining whether the box parameter is the last box parameter, if not, returning to and executing the step of obtaining the box parameter, and binning the rigid registration image according to the box parameter to obtain a dual image layer.
[0086] When performing local elastic registration on the rigidly registered image, the rigidly registered image is used as the original image and a binning operation is performed. First, the bin parameters are obtained. The bin parameters include bin size and number. The bin size is used to determine the size of the divided bin area, that is, how many pixels are included in the bin area. The number of bin parameters corresponds to the number of bin sizes. The number of bin parameters determines how many times the rigidly registered image is binned. The bin parameters can be customized by the user according to actual needs. The first bin parameter in the bin parameters set by the user is obtained, and the rigidly registered image is binned according to the bin size corresponding to the bin parameter, so as to decompose the rigidly registered image into a dual image layer. The dual image layer includes a high-energy image layer and a low-energy image layer, which are obtained by binning the high-energy image and the low-energy image in the rigidly registered image. The target control point is set in the dual image layer to determine the elastic registration parameters. Generally, the bin parameters are arranged in ascending or descending order according to the size of the bins. Generally, binning is performed from the parameter with the largest bin size to obtain the dual image layer of the corresponding bin size and perform elastic registration processing on the rigid registration image. When elastic transformation processing is performed from the image layer with the largest bin size in the dual image layer, the registration parameters are determined only in the image of the dual image layer, and then the registration parameters are mapped layer by layer to the rigid registration image. The rigid registration image is used as the original image for elastic transformation processing and elastic transformation processing is performed on the rigid registration image. The main purpose of binning the rigid registration image is to obtain the elastic transformation parameters of the rigid registration image at different bin sizes. The binning processing and inverse binning elastic transformation processing of the rigid registration image are performed in the order of bin size from large to small, that is, the elastic registration results of the current scale binning processing and inverse binning processing are used as the image of the next scale binning processing and inverse binning elastic transformation. In this way, the rigid registration image is iteratively elastically registered according to the different bin sizes in the obtained bin parameters until the elastic registration processing of all scales is completed, and finally the target dual-energy image is obtained.
[0087] In this embodiment, the elastic registration parameter is explained by taking the motion vector in the above motion parameter as an example, wherein the dual image layer includes a high energy image layer and a low energy image layer. The target control point set in the dual image layer includes multiple control points. When each layer of the image in the dual image layer is used as the target layer image of the elastic transformation, multiple control points can be set. The target control point includes all control points of the high energy image and the low energy image in the dual image layer. When setting the target control point in the dual image layer, the control points can be evenly set on the image of each layer. For example, the control points are set at equal intervals in rows and columns in the image. Taking an image of size 3072*3072 as an example, after binning with a bin size of 16, the grayscale mean of each 16*16 bin area is used as the pixel value of the pixel point in the bin area, and the image layer size obtained is 192*192. On the image layer, the control points are evenly set. For example, if the interval between each control point is 16 pixels, the grid matrix formed by all the control points of the layer is 12*12. At the same time, a search strategy is created to control the registration parameters corresponding to the target control point search. According to the registration parameters, the rigid registration image is elastically transformed to obtain the target dual-energy image.
[0088] Specifically, when elastic transformation is performed on the rigidly registered image, the registration result of the image processing in the previous dual image layer is used as the original image processed in the current layer, and new box parameters are obtained on this basis for binning and elastic transformation. During the elastic transformation, the elastic registration parameters of the current layer image are mapped through the inverse binning operation, and the elastic registration result of the current layer is obtained. It is determined whether the box parameter corresponding to the current dual image layer is the last box parameter. If so, after completing the elastic transformation of this dual image layer, the target dual energy image is obtained. If not, it returns and executes the step of obtaining the box parameters, and binning the rigidly registered image according to the box parameters to obtain the dual image layer, obtains the new box parameters, and performs binning and inverse binning based on the rigidly registered image of this elastic transformation to complete the elastic transformation of the rigidly registered image.
[0089] The refinement of step S31 includes steps B1-B2:
[0090] Step B1, determining a box area on the rigid registration image according to the box parameters;
[0091] Step B2: performing non-overlapping binning processing on the rigidly registered image according to the bin area to obtain a dual image layer.
[0092] According to the different box sizes in the box parameters, the rigid registration image is processed by non-overlapping binning to obtain a dual image layer under the box size, where the size of the image in the dual image layer is related to the size of the box size. Through different box sizes, the box areas of different sizes of the original image are reduced to one pixel point, and the resulting image of the binning process is a low-frequency image of the original image. The larger the box size, the larger the area in the original image is reduced to one pixel, thus obtaining a larger scale image layer.
[0093] like Figure 4 As shown, Figure 4 In the figure, the image is binned to obtain a schematic diagram of a dual image layer based on multiple scales. Figure 4 In , the box parameters b = 16, 8, 4, 2 are set, a total of 4 different box sizes. When the rigid registration image is binned, it starts from the larger box size, that is, Figure 4 In the binning process shown, the segmentation is started according to each box region containing 16 pixels to obtain an image layer. After the elastic transformation of the rigid registration image is completed, the rigid registration image after the elastic transformation of the dual image layer with a bin size of 16 is segmented according to each box region containing 8 pixels to obtain another image layer. And so on, finally a total of 4 layers of binning are performed on the rigid registration image. Among them, the binning process of the rigid registration image also includes, after obtaining the dual image layer by dividing the box region, calculating the pixel value of the pixel points in each box region, and setting the calculation result as the pixel value of the pixel point in the box region, for example, calculating the pixel average value of the pixel points in the box region, using the average value to replace the pixel value of the original pixel points in the box region, and after completing the calculation of the pixel value of each layer of the image, the dual image layer is obtained.
[0094] The refinement of step S33 includes steps C1-C3:
[0095] Step C1, determining the target interest area corresponding to the target control point in the dual image layer;
[0096] Step C2, searching the target interest region according to preset search space parameters to construct a second feature matrix in the target interest region between the high-energy image layer and the low-energy image layer in the dual image layers;
[0097] Step C3: determining the target registration parameters corresponding to the target control points according to the second feature matrix.
[0098] Further, according to the created search strategy, when searching for the registration parameters corresponding to the target control point, the neighborhood area of the control point is determined in the dual image layer, for example, a circular area with the target control point as the center and 30 pixels around the control point as the radius, and the area is set as the target interest area, which is the interest area of elastic registration. According to the preset search space parameters, the target interest area is searched, and the second feature matrix in the target interest area between the high-energy image layer and the low-energy image layer in the dual image layer is constructed through translation, rotation transformation and other processing. The second feature matrix can also be a similarity matrix. Taking the similarity matrix as an example, the target registration parameter corresponding to the target control point is the motion vector corresponding to the maximum value of the similarity matrix of the target interest area. All control points in the target control point are traversed to obtain the corresponding motion vector, and the target registration parameter corresponding to the target control point is obtained.
[0099] The refinement of step S34 includes steps D1-D2:
[0100] Step D1, performing inverse binning processing on the dual image layer according to the target registration parameters to map the target registration parameters into the rigid registration image;
[0101] Step D2: performing interpolation processing on the rigid registration image according to the target registration parameters, and calculating the target grayscale values of the pixels in the rigid registration image to perform elastic transformation on the rigid registration image.
[0102] by Figure 4 Taking the 4-layer dual image layer shown in the figure, as well as the target control points and target interest areas as examples, the target layer image in the dual image layer is subjected to inverse binning, which is the opposite of binning. The image is processed starting from the image layer with a larger box size, and the rigid registration image is binned and inversely binned layer by layer according to different box sizes. The registration parameters of the dual image layer are mapped to the rigid registration image for elastic transformation. The dual image layer is obtained by segmentation according to the largest box size, and then the target registration parameters corresponding to the target control points in the dual image layer are mapped to the rigid registration image. Figure 4 As shown, the target layer image is an image layer with a box size of 16. The registration parameters of the dual image layer are mapped to the rigid registration image, and the rigid registration image is interpolated. The interpolation process can be bilinear interpolation. The pixels of the rigid registration image are calculated using the bilinear interpolation process in combination with the target registration parameters to obtain the pixel values of the rigid registration image. The rigid registration image is bilinearly interpolated according to the first registration parameter, and the target grayscale values corresponding to all pixels in the rigid registration image are calculated to elastically transform the rigid registration image. It can be seen that the target grayscale value includes multiple values.
[0103] The refinement of step D2 includes steps D21-D23:
[0104] Step D21, determining the target registration sub-parameter corresponding to each pixel point in the rigid registration image according to the target registration parameter;
[0105] Step D22, performing interpolation processing on the rigid registration image according to the target registration sub-parameters, and calculating the target grayscale values of the pixels in the rigid registration image;
[0106] Step D23: replacing the grayscale value of the rigidly registered image with the target grayscale value to complete the elastic transformation of the rigidly registered image.
[0107] Furthermore, when bilinear interpolation is performed on the rigidly registered image according to the target registration parameters, the motion vector of each pixel in the rigidly registered image, that is, the target registration sub-parameter, can be first obtained through traversal, and the grayscale value of each pixel can be calculated through bilinear interpolation according to the motion vector of each pixel, and the calculated grayscale value is used to replace the original grayscale value, thereby completing the elastic transformation of the rigidly registered image.
[0108] The rigid registration image after the registration processing of the image layer corresponding to the target registration parameters continues to become the original image for the next box-sized image layer to be binned and elastically transformed, and then the elastic registration processing of the next box-sized image layer is performed. Figure 4 Taking the multi-scale decomposition shown in the figure as an example, through the continuous iteration of multi-scale image layers, the box sizes of the image layers are 16, 8, 4, and 2, that is, the scale is getting smaller and smaller, and the registration is getting more and more refined. When the last layer of images, that is, the image layer with a box size of 2, is elastically transformed on the rigid registration image, the local elastic registration of this round is ended, and the image obtained by the registration processing is the final target dual-energy image.
[0109] In this embodiment, the bin parameters are obtained, and the rigid registration image is binned according to the bin parameters to obtain a dual image layer, a target control point is set in the dual image layer, and a search strategy for searching the target registration parameter corresponding to the target control point is created, and the target registration parameter corresponding to the target control point is searched according to the search strategy, and the rigid registration image is elastically transformed according to the target registration parameter, and it is determined whether the bin parameter is the last bin parameter. If not, the bin parameter is obtained and binned according to the bin parameter to obtain the dual image layer. That is, by performing multi-scale decomposition based on different bin sizes on the rigid registration image, a multi-scale dual image layer is obtained, and multi-precision registration is performed on the rigid registration image through the dual image layers of different bin sizes, thereby improving the registration accuracy.
[0110] In addition, refer to Figure 5The embodiment of the present invention further provides a dual-energy subtraction image registration device, the dual-energy subtraction image registration device comprising:
[0111] An image acquisition module 10 is used to acquire a dual-energy subtraction image to be registered;
[0112] A rigid registration module 20, configured to perform global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image;
[0113] The elastic registration module 30 is used to perform local elastic registration processing on the rigidly registered image to obtain a target dual-energy image.
[0114] Optionally, the rigid registration module 20 includes:
[0115] A sampling unit, used for sampling the dual-energy subtraction image to obtain a dual-energy sampling image corresponding to the dual-energy subtraction image;
[0116] a conversion unit, configured to convert a second sampling image in the dual-energy sampling image with the first sampling image in the dual-energy sampling image as a reference, so as to construct a first characteristic matrix between a high-energy image and a low-energy image in the dual-energy subtraction image;
[0117] The rigid transformation unit is used to perform a rigid transformation on the dual-energy subtraction image according to the first characteristic matrix to obtain a rigid registration image.
[0118] Optionally, the elastic registration module 30 includes:
[0119] A multi-scale decomposition unit, used for obtaining box parameters, and performing box processing on the rigid registration image according to the box parameters to obtain a dual image layer;
[0120] A search strategy creation unit, used for setting a target control point in the dual image layer and creating a search strategy for searching for a target registration parameter corresponding to the target control point;
[0121] A searching unit, configured to search for a target registration parameter corresponding to the target control point according to the searching strategy;
[0122] An elastic transformation unit, used for performing elastic transformation processing on the rigid registration image according to the target registration parameter;
[0123] The loop unit is used to determine whether the box parameter is the last box parameter. If not, it returns and executes the step of obtaining the box parameter, and binning the rigid registration image according to the box parameter to obtain a dual image layer.
[0124] Optionally, the multi-scale decomposition unit includes:
[0125] A box division unit, used for determining a box area on the rigid registration image according to the box parameters;
[0126] The box processing subunit is used to perform non-overlapping box processing on the rigid registration image according to the box area to obtain a dual image layer.
[0127] Optionally, the search unit includes:
[0128] a marking subunit, configured to determine a target region of interest corresponding to the target control point in the dual image layer;
[0129] A conversion subunit, configured to search the target interest region according to a preset search space parameter to construct a second feature matrix in the target interest region between the high-energy image layer and the low-energy image layer in the dual image layers;
[0130] The parameter determination subunit is used to determine the target registration parameters corresponding to the target control points according to the second feature matrix.
[0131] Optionally, the elastic transformation unit includes:
[0132] an inverse binning processing subunit, configured to perform inverse binning processing on the dual image layer according to the target registration parameter, so as to map the target registration parameter into the rigid registration image;
[0133] The elastic transformation subunit is used to perform interpolation processing on the rigid registration image according to the target registration parameters, and calculate the target grayscale value of the pixel points in the rigid registration image to perform elastic transformation on the rigid registration image.
[0134] Optionally, the elastic transformation unit further includes:
[0135] A parameter acquisition subunit, used to determine the target registration sub-parameter corresponding to each pixel point in the rigid registration image according to the target registration parameter;
[0136] An interpolation subunit, configured to perform interpolation processing on the rigid registration image according to the target registration subparameters, and calculate target grayscale values of pixels in the rigid registration image;
[0137] The transformation subunit is used to replace the gray value of the rigid registration image with the target gray value to complete the elastic transformation of the rigid registration image.
[0138] In addition, an embodiment of the present invention further proposes a readable storage medium, on which a dual-energy subtraction image registration program is stored. When the dual-energy subtraction image registration program is executed by a processor, the operations in the dual-energy subtraction image registration method provided in the above embodiment are implemented.
[0139] The methods executed by the above-mentioned program modules can refer to the various embodiments of the method of the present invention, and will not be described in detail here.
[0140] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0141] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment. The device embodiment described above is only illustrative, and the units described as separate components may or may not be physically separated. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the present invention. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0142] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the dual-energy subtraction image registration method described in each embodiment of the present invention.
[0144] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A dual-energy subtraction image registration method, characterized in that: The dual-energy subtraction image registration method comprises the following steps: Acquiring a dual-energy subtraction image to be registered; Performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image; Performing local elastic registration processing on the rigid registration image to obtain a target dual-energy image; The dual-energy subtraction image includes a high-energy image and a low-energy image, and the step of performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image includes: Down-sampling the dual-energy subtraction image to obtain a dual-energy sampling image corresponding to the dual-energy subtraction image; Taking the first sampling image in the dual-energy sampling image as a reference, transforming the second sampling image in the dual-energy sampling image to construct a similarity matrix between the high-energy image and the low-energy image in the dual-energy subtraction image; Determining adjustment parameters corresponding to the dual-energy subtraction image according to the similarity matrix, the adjustment parameters comprising: a motion vector; Based on the moving direction and moving distance of the motion vector corresponding to the maximum value of the similarity matrix, the dual-energy subtraction image is rigidly transformed to obtain a rigid registration image; The step of performing local elastic registration processing on the rigid registration image comprises: Obtaining box parameters, and performing box processing on the rigid registration image according to the box parameters to obtain a dual image layer, wherein the number of box parameters is used to determine the number of times the rigid registration image is boxed; Setting a target control point in the dual image layer and creating a search strategy for searching for a target registration parameter corresponding to the target control point; According to the search strategy, searching for target registration parameters corresponding to the target control points; According to the target registration parameters, elastic transformation processing is performed on the rigid registration image; During the elastic transformation, the elastic registration parameters of the current layer image are mapped by an inverse binning operation to obtain the elastic registration result of the current layer, and it is determined whether the box parameter is the last box parameter. If not, the step of obtaining the box parameter is returned and executed, and the rigid registration image is binned according to the box parameter to obtain a dual image layer. The step of binning the rigid registration image according to the decomposition strategy to obtain a dual image layer includes: determining a box region on the rigidly registered image according to the box parameters; After obtaining a dual image layer by dividing the box area, calculating the pixel values of the pixels in the box area to obtain a pixel average value of the pixels in the box area; The pixel average value is used to replace the pixel value of the original pixel point in the box area, so as to obtain a dual image layer when the calculation of the pixel value of each layer of the image is completed.
2. The dual-energy subtraction image registration method according to claim 1, characterized in that: The dual image layer includes a high-energy image layer and a low-energy image layer, and the step of searching for the target registration parameter corresponding to the target control point according to the search strategy includes: Determining a target region of interest corresponding to the target control point in the dual image layer; Searching the target interest region according to preset search space parameters to construct a second feature matrix in the target interest region between the high-energy image layer and the low-energy image layer in the dual image layers; According to the second feature matrix, target registration parameters corresponding to the dual image layers are determined.
3. The dual-energy subtraction image registration method according to claim 1, characterized in that: The step of performing elastic transformation processing on the rigid registration image according to the target registration parameters comprises: According to the target registration parameters, performing inverse binning processing on the dual image layer to map the target registration parameters into the rigid registration image; According to the target registration parameters, the rigid registration image is interpolated, and the target grayscale values of the pixels in the rigid registration image are calculated to elastically transform the rigid registration image.
4. The dual-energy subtraction image registration method according to claim 3, characterized in that: The step of performing interpolation processing on the rigid registration image according to the target registration parameters and calculating the target grayscale values of the pixels in the rigid registration image to perform elastic transformation on the rigid registration image comprises: Determining a target registration sub-parameter corresponding to each pixel in the rigid registration image according to the target registration parameter; Performing interpolation processing on the rigid registration image according to the target registration sub-parameters, and calculating target grayscale values of pixels in the rigid registration image; The grayscale value of the rigid registration image is replaced by the target grayscale value to complete the elastic transformation of the rigid registration image.
5. A dual-energy subtraction image registration device, characterized in that: The dual-energy subtraction image registration device comprises: An image acquisition module, used for acquiring a dual-energy subtraction image to be registered; A rigid registration module, used for performing global rigid registration processing on the dual-energy subtraction image to obtain a rigidly registered image; An elastic registration module, used to perform local elastic registration processing on the rigid registration image to obtain a target dual-energy image; The dual-energy subtraction image includes a high-energy image and a low-energy image, and the rigid registration module is further used to downsample the dual-energy subtraction image to obtain a dual-energy sampling image corresponding to the dual-energy subtraction image; using the first sampling image in the dual-energy sampling image as a reference, converting the second sampling image in the dual-energy sampling image to construct a similarity matrix between the high-energy image and the low-energy image in the dual-energy subtraction image; determining adjustment parameters corresponding to the dual-energy subtraction image according to the similarity matrix, the adjustment parameters including: a motion vector; based on the moving direction and moving distance of the motion vector corresponding to the maximum value of the similarity matrix, rigidly transforming the dual-energy subtraction image to obtain a rigid registration image; The elastic registration module is also used to obtain box parameters, and perform binning processing on the rigidly registered image according to the box parameters to obtain a dual image layer, and the number of box parameters is used to determine the number of times the rigidly registered image is binned; set a target control point in the dual image layer, and create a search strategy for searching the target registration parameters corresponding to the target control point; search for the target registration parameters corresponding to the target control point according to the search strategy; perform elastic transformation processing on the rigidly registered image according to the target registration parameters; during the elastic transformation, map the elastic registration parameters of the current layer image through an inverse binning operation to obtain the elastic registration result of the current layer, and determine whether the box parameter is the last box parameter. If not, return and execute the step of obtaining the box parameter, and perform binning processing on the rigidly registered image according to the box parameter to obtain a dual image layer; The elastic registration module is also used to determine a box area on the rigid registration image according to the box parameters; after obtaining a dual image layer by dividing the box area, the pixel values of the pixels in the box area are calculated to obtain a pixel average value of the pixels in the box area; and the pixel average value is used to replace the pixel value of the original pixel in the box area, so as to obtain a dual image layer when the calculation of the pixel value of each layer of the image is completed.
6. A dual-energy subtraction image registration device, characterized in that: The dual-energy subtraction image registration device includes: a memory, a processor, and a dual-energy subtraction image registration program stored in the memory and executable on the processor. When the dual-energy subtraction image registration program is executed by the processor, the steps of the dual-energy subtraction image registration method according to any one of claims 1 to 4 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores a dual-energy subtraction image registration program, and when the dual-energy subtraction image registration program is executed by a processor, the steps of the dual-energy subtraction image registration method according to any one of claims 1 to 4 are implemented.
