Image registration and neural network training method, device and equipment

Through the combination of neural network feature extraction and PNP algorithm, the problem of image registration between different types of imaging equipment is solved, the accuracy and stability of image fusion is improved, and effective information fusion between imaging equipment is achieved.

CN112884819BActive Publication Date: 2024-10-01HANGZHOU SANTAN MEDICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911200249.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-29
Publication Date
2024-10-01
Estimated Expiration
2039-11-29

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively achieve image registration between different types of imaging devices, resulting in insufficient information accuracy and robustness during the image fusion process.

Method used

The neural network is used to extract features from the two-dimensional image to be registered, and combined with the PNP algorithm, the pose information of the camera is determined to improve the accuracy and stability of image registration.

Benefits of technology

It improves the accuracy and robustness of image registration information, enhances the stability of tracking and determination of camera pose data, and achieves effective fusion between different types of imaging equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112884819B_ABST
    Figure CN112884819B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and equipment for image registration and neural network training, the method comprising: determining a two-dimensional image to be registered; inputting the two-dimensional image to be registered into a neural network; extracting features of the two-dimensional image to be registered through the neural network, and determining the coordinates of the projection points in the two-dimensional image to be registered based on the extracted features; calculating the coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera. The technical solution of the present application can determine the registration information of the two-dimensional image to be registered on the basis of accurately obtaining the feature information in the two-dimensional image to be registered, thereby improving the accuracy of the determined registration information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a method, device and equipment for image registration and neural network training. Background Art

[0002] With the rapid development of imaging technology, various imaging devices emerge in an endless stream. At the same time, the introduction of new imaging devices and the continued improvement of existing imaging devices have made imaging technology widely used in more and more industries.

[0003] Based on the different imaging methods of different types of imaging devices, the images obtained by different types of imaging devices have different characteristics and application values. Therefore, how to integrate the strengths of various imaging devices and realize the comprehensive utilization of different types of images has unprecedented research significance. Among them, how to fuse the images obtained by different imaging devices in the same scene or similar scenes is the key process to obtain the comprehensive utilization value of different types of images. Summary of the invention

[0004] In view of this, the present application provides an image registration and neural network training method, device and equipment, which determine the registration information of the two-dimensional image to be registered based on accurately obtaining the feature information in the two-dimensional image to be registered, thereby improving the accuracy of the determined registration information.

[0005] To achieve the above objectives, this application provides the following technical solutions:

[0006] According to a first aspect of the present application, an image registration method is proposed, the method comprising:

[0007] Determine a two-dimensional image to be registered, wherein the two-dimensional image to be registered contains an imaging pattern of a current radiation object;

[0008] Inputting the two-dimensional image to be registered into a neural network, wherein the neural network is pre-trained using two-dimensional image samples including projection point coordinate annotation information, wherein the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample;

[0009] Extracting features of the two-dimensional image to be registered through the neural network, and determining the coordinates of projection points in the two-dimensional image to be registered according to the extracted features, wherein the projection points in the two-dimensional image to be registered correspond to feature points of a three-dimensional bounding box of the current radiation object in the three-dimensional image;

[0010] The coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image are calculated according to the PNP algorithm to determine the position information of the camera.

[0011] Optionally, the coordinates of the feature points of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the current radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the current radioactive object in the three-dimensional image; the feature points of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image.

[0012] Optionally, the two-dimensional image sample includes:

[0013] A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or an actual two-dimensional image of the sample radiation object obtained based on an imaging device.

[0014] Optionally, the posture change includes:

[0015] Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

[0016] Optionally, the two-dimensional image to be registered is obtained when the projection distance of the imaging device meets a preset value.

[0017] According to a second aspect of the present application, a neural network training method for image registration is proposed, the method comprising:

[0018] At least a two-dimensional image sample as a training sample is input into the neural network, wherein the training sample includes projection point coordinate annotation information corresponding to the two-dimensional image to be registered, and the projection point coordinate annotation information is the coordinates of the projection point of the feature point of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample;

[0019] Extracting features of the input two-dimensional image samples through the neural network, and determining the predicted projection point coordinate information corresponding to the two-dimensional image samples according to the extracted features;

[0020] Determining the difference between the predicted projection point coordinate information and the projection point coordinate annotation information;

[0021] A network model parameter of the neural network is adjusted based on the difference.

[0022] Optionally, the feature point coordinates of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image.

[0023] Optionally, the two-dimensional image samples used as training samples include:

[0024] A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or an actual two-dimensional image of the sample radiation object obtained based on an imaging device.

[0025] Optionally, the posture change includes:

[0026] Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

[0027] Optionally, the two-dimensional image sample is obtained when the projection distance of the imaging device meets a preset value.

[0028] According to a third aspect of the present application, an image registration device is proposed, the device comprising:

[0029] A determination unit, which determines a two-dimensional image to be registered, wherein the two-dimensional image to be registered contains an imaging pattern of a current radiation object;

[0030] An input unit inputs the two-dimensional image to be registered into a neural network, wherein the neural network is pre-trained using two-dimensional image samples including projection point coordinate annotation information, and the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample;

[0031] a feature extraction unit, which extracts features of the two-dimensional image to be registered through the neural network, and determines the coordinates of projection points in the two-dimensional image to be registered according to the extracted features, wherein the projection points in the two-dimensional image to be registered correspond to feature points of a three-dimensional bounding box of the current radiation object in the three-dimensional image;

[0032] The calculation unit calculates the coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera.

[0033] Optionally, the coordinates of the feature points of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the current radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the current radioactive object in the three-dimensional image; the feature points of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image.

[0034] Optionally, the two-dimensional image sample includes:

[0035] A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or an actual two-dimensional image of the sample radiation object obtained based on an imaging device.

[0036] Optionally, the posture change includes:

[0037] Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

[0038] Optionally, the two-dimensional image to be registered is obtained when the projection distance of the imaging device meets a preset value.

[0039] According to a fourth aspect of the present application, a neural network training device for image registration is proposed, the device comprising:

[0040] An input unit is configured to input at least a two-dimensional image sample as a training sample into a neural network, wherein the training sample includes projection point coordinate annotation information corresponding to the two-dimensional image to be registered, and the projection point coordinate annotation information is the coordinates of the projection point of the feature point of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample;

[0041] A feature extraction unit, which extracts features from the input two-dimensional image samples through the neural network, and determines the predicted projection point coordinate information corresponding to the two-dimensional image samples according to the extracted features;

[0042] A determination unit, which determines a difference between the predicted projection point coordinate information and the projection point coordinate annotation information;

[0043] A parameter adjustment unit adjusts the network model parameters of the neural network based on the difference.

[0044] Optionally, the feature point coordinates of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image.

[0045] Optionally, the two-dimensional image samples used as training samples include:

[0046] A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or an actual two-dimensional image of the sample radiation object obtained based on an imaging device.

[0047] Optionally, the posture change includes:

[0048] Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

[0049] Optionally, the two-dimensional image sample is obtained when the projection distance of the imaging device meets a preset value.

[0050] Optionally, the determining unit and the parameter adjusting unit are specifically configured to:

[0051] Determine the loss function corresponding to the regression model including the network model parameters; and determine the network model parameters when the loss function obtains the minimum value based on the loss function, the predicted projection point coordinate information and the projection point coordinate annotation information.

[0052] Optionally, the loss function is Where N = 9, To predict the projection point coordinate information, Label the projection point coordinates.

[0053] According to a fifth aspect of the present application, an electronic device is provided, comprising:

[0054] processor;

[0055] a memory for storing processor-executable instructions;

[0056] The processor is configured to execute instructions to implement the method described in the first aspect above.

[0057] According to a sixth aspect of the present application, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0058] According to a seventh aspect of the present application, an electronic device is provided, comprising:

[0059] processor;

[0060] a memory for storing processor-executable instructions;

[0061] The processor is configured to execute instructions to implement the method described in the second aspect above.

[0062] According to an eighth aspect of the present application, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the second aspect are implemented.

[0063] It can be seen from the above technical scheme that for the determined two-dimensional image to be registered that contains the imaging pattern of the current radiation object, the feature extraction of the two-dimensional image to be registered is performed through a neural network, and then the coordinates of the projection points in the two-dimensional image to be registered are determined according to the extracted features, thereby improving the accuracy and robustness of determining the coordinates of the projection points formed in the two-dimensional image to be registered, and then for determining the camera's posture data according to the PNP algorithm, the accuracy of the determined posture data is also correspondingly improved, thereby enhancing the stability of tracking and determining the camera's posture data. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 is a flow chart of an image initial registration method according to an exemplary embodiment of the present application;

[0065] Figure 2 is a flow chart of a neural network training method for image registration according to an exemplary embodiment of the present application;

[0066] Figure 3 is a flow chart of another image registration method according to an exemplary embodiment of the present application;

[0067] Figure 4 A schematic diagram of determining camera pose information according to an exemplary embodiment of the present application is shown;

[0068] Figure 5 is a flow chart of another neural network training method for image registration according to an exemplary embodiment of the present application;

[0069] Figure 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application;

[0070] Figure 7 is a block diagram of an image registration device according to an exemplary embodiment of the present application;

[0071] Figure 8is a schematic structural diagram of another electronic device according to an exemplary embodiment of the present application;

[0072] Fig. 9 It is a block diagram of a neural network training device for image registration according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0074] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0075] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0076] With the rapid development of imaging technology, the introduction of new imaging equipment and the continued improvement of existing imaging equipment, imaging technology has been widely used in more and more industries. Based on the different imaging methods of different types of imaging equipment, the images obtained by different types of imaging equipment have different characteristics and application values. For example, the high density resolution based on CT enables CT images to better display organs composed of soft tissues. Of course, CT images are also very clear for bones; nuclear magnetic resonance uses a strong magnetic field to vibrate the water in the body, and uses the vibration difference of water in different tissues to form images, so that MRI images have clearer imaging effects on soft tissues; ultrasound images have the advantages of strong real-time performance and no radiation, while ensuring high resolution and strong contrast for soft tissue structures.

[0077] In view of the different application values ​​of images obtained by different types of imaging devices, there is an urgent need to use the images obtained based on multiple imaging devices in a comprehensive manner and to fuse different types of image information in actual applications. Image registration technology has emerged as the times require. Through image registration, one (or a series of) spatial transformations can be performed on multiple images of the same object obtained based on different imaging angles and different imaging devices, so that the multiple images can achieve spatial consistency about the same corresponding points. Registration technology is widely used in disease diagnosis, surgical navigation, human brain mapping and various medical evaluations. Typical image registrations include: registration of CT images and PET images, registration of CT images and MRI images, registration of ultrasound images and CT images, registration of fMRI image sequences, registration between different MR weighted images, etc.

[0078] In order to improve the accuracy of the registration information between images, the present application provides an image registration and neural network training method, device and equipment, which accurately obtains the feature information of the two-dimensional image and determines the registration information of the two-dimensional image to be registered based on the obtained feature information of the two-dimensional image, thereby improving the accuracy of the registration information. The technical solution of the present application is described in detail below through specific embodiments.

[0079] Please refer to Figure 1 , Figure 1 is a flow chart of an image initial registration method according to an exemplary embodiment of the present application. Figure 1 As shown, the method may include the following steps:

[0080] Step 101 : determining a two-dimensional image to be registered, wherein the two-dimensional image to be registered contains an imaging pattern of a current radiation object.

[0081] In the present application, the imaging pattern of the current radiation object can be represented by the two-dimensional image to be registered, wherein the current radiation object can be the same radiation object as the sample radiation object used as the training sample, or the current radiation object can also be a radiation object belonging to the same category as the sample radiation object used as the training sample.

[0082] In actual application, the two-dimensional image to be registered can be obtained when the projection distance of the imaging device meets a preset value. The preset value can be the parameter information of the imaging device when it leaves the factory, or the distance between the camera of the imaging device and the current radiation object can be measured in real time, and then the projection distance of the imaging device is adjusted according to the result of the real-time measurement, so that the projection distance of the imaging device when obtaining the two-dimensional image to be registered or each two-dimensional image sample remains consistent.

[0083] In one embodiment, the determined two-dimensional image to be registered may be an actual two-dimensional image or a two-dimensional reconstructed image, wherein the actual two-dimensional image may be a two-dimensional image actually determined based on the irradiation of the radiation object by the imaging device; the two-dimensional reconstructed image may be a plurality of two-dimensional images determined by digital simulation of a three-dimensional image based on a plurality of transformed posture data by performing a posture transformation on the radiation object, and multiple groups of two-dimensional reconstructed images are determined by adding them to the training samples of the neural network through the posture transformation of the radiation object, thereby improving the regularization of the samples used to train the neural network model, thereby solving the problem of overfitting or underfitting of the trained neural network due to specific samples.

[0084] Step 102, input the two-dimensional image to be registered into a neural network, wherein the neural network is pre-trained using two-dimensional image samples including projection point coordinate annotation information, and the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample.

[0085] In one embodiment, the feature point coordinates of the three-dimensional bounding box may be pre-marked, specifically, at least three points among eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radiation object in the three-dimensional image.

[0086] In another embodiment, the two-dimensional image sample repository used as training samples includes a two-dimensional reconstructed image corresponding to a three-dimensional image of a sample radiation object after posture change; or an actual two-dimensional image of the sample radiation object acquired based on an imaging device.

[0087] Furthermore, based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiating the object is changed by a first preset value, the displacement value of the irradiating object is changed by a second preset value, or the angle value of the sample irradiating the object is changed by a first preset value and the displacement value of the irradiating object is changed by a second preset value along the preset direction.

[0088] Step 103, extracting features of the two-dimensional image to be registered through the neural network, and determining the coordinates of the projection points in the two-dimensional image to be registered according to the extracted features, wherein the projection points in the two-dimensional image to be registered correspond to the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image.

[0089] Step 104 , calculating the coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera.

[0090] The three-dimensional coordinates of the N feature points in the three-dimensional bounding box of the current radioactive object in the three-dimensional image can be understood as the coordinates in the world coordinate system. The coordinates of the projection point of the current radioactive object in the imaging pattern of the two-dimensional image to be registered based on the neural network are the coordinates in the camera coordinate system. The coordinates of the projection point in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radioactive object in the three-dimensional image can be calculated according to the PNP algorithm to obtain the camera's pose information. Furthermore, the feature points of the three-dimensional bounding box of the current radioactive object can be pre-annotated, specifically, at least three points of the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the current radioactive object in the three-dimensional image.

[0091] Through the above-mentioned embodiments, for the determined two-dimensional image to be registered that contains the imaging pattern of the current radiation object, feature extraction is performed on the two-dimensional image to be registered through a neural network, and then the coordinates of the projection points in the two-dimensional image to be registered are determined according to the extracted features, thereby improving the accuracy and robustness of determining the coordinates of the projection points formed in the two-dimensional image to be registered, and then for determining the camera's posture data according to the PNP algorithm, the accuracy of the determined posture data is also correspondingly improved, thereby enhancing the stability of tracking and determining the camera's posture data.

[0092] Figure 2 is a flowchart of a neural network training method for image registration according to an exemplary embodiment of the present application, such as Figure 2 As shown, the method may include the following steps:

[0093] In step 201, at least two-dimensional image samples as training samples are input into a neural network, wherein the training samples include projection point coordinate annotation information corresponding to the two-dimensional image to be registered, and the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample.

[0094] In one embodiment, the feature point coordinates of the 3D bounding box may be pre-marked. Further, the feature points of the 3D bounding box of the sample radiation object in the 3D image may be at least three points of the eight vertex coordinates and one center point coordinate of the 3D bounding box of the sample radiation object in the 3D image.

[0095] In another embodiment, the two-dimensional image sample for constructing the sample data can be a two-dimensional image obtained by digital simulation after the radiation object is transformed in posture. The two-dimensional image sample can be based on the two-dimensional image of the sample radiation object acquired by the imaging device. Specifically, the two-dimensional image sample can be obtained when the projection distance of the imaging device meets a preset value.

[0096] In the process of acquiring sample radioactive objects, the sample radioactive objects can be transformed in posture, and then the corresponding two-dimensional images can be determined based on the radioactive objects after the posture transformation. Through the posture transformation of the radioactive objects, multiple groups of two-dimensional reconstructed images are determined to be added to the training samples of the neural network, which improves the regularization of the samples used to train the neural network model, thereby solving the problem of overfitting or underfitting of the trained neural network due to specific samples.

[0097] Furthermore, the posture transformation of the sample radiation object is a rigid body transformation. The specific posture transformation method may include changing the angle value of the radiation object by a first preset value based on a preset direction in the spatial coordinate system of the imaging device, changing the displacement value of the radiation object along the preset direction by a second preset value, or changing the displacement value of the radiation object along the preset direction by a second preset value and changing the rotation angle value along the preset direction by a first preset value.

[0098] Step 202: extract features from the input two-dimensional image samples through the neural network, and determine the predicted projection point coordinate information corresponding to the two-dimensional image samples according to the extracted features.

[0099] Step 203: Determine the difference between the predicted projection point coordinate information and the projection point coordinate annotation information.

[0100] Step 204: adjusting network model parameters of the neural network based on the difference.

[0101] In one embodiment, the constructed neural network regression model may be composed of several convolutional layers, pooling layers, fully connected layers, etc., so that the neural network extracts image features based on several convolutional layers, pooling layers, etc. In the actual application process, the number of input layers, hidden layers and input layers in the neural network regression model can be set, such as a perceptron neural network with an input layer of 8 neurons, a hidden layer of 12 neurons, and an output layer of 6 neurons can be constructed, but the present application does not limit the specific number of input layers, hidden layers, and output layers. It can be understood that the construction of a neural network regression model with an input layer of 10 neurons, a hidden layer of 14 neurons, and an output layer of 6 neurons is also applicable to the technical solution of the present application.

[0102] The contour information in the two-dimensional image as a training sample input by the neural network is subjected to feature extraction, and then the predicted registration information corresponding to the contour information in the two-dimensional image is output according to the extracted features. Specifically, the contour information of the input two-dimensional image can be subjected to feature extraction through a combination of several convolutional layers, several pooling layers, i.e., several fully connected layers in the neural network.

[0103] After calculation by the neural network, the predicted alignment information corresponding to the contour information of the pattern in the input two-dimensional image can be obtained. Based on the pre-annotated alignment information in the two-dimensional image sample, the difference between the predicted alignment information and the pre-annotated actual alignment information can be determined. The loss value of the loss function can be determined according to the difference between the pre-annotated actual alignment information and the predicted alignment information in the two-dimensional image sample, and then the determined loss value is fed back to the neural network so that the network parameters of the neural network are adjusted according to the received loss value. The adjusted network parameters include the weights of the fully connected layer in the neural network, the value of the convolution kernel, etc.

[0104] The loss function used to determine the loss value may be predetermined, and the selected loss function may be Where N = 9, To predict the projection point coordinate information, The projection point coordinates are marked with information. After receiving the loss value, the neural network can adjust the network parameters in the network structure to reduce the loss value, and when the preset training end condition is reached, it is determined that the training of the network parameters of the neural network is completed, wherein the preset training end condition can be that the loss value obtained based on the determined loss function reaches the minimum value, or the number of network parameter optimization iterations reaches a preset threshold.

[0105] To explain the technical solution of the present application in detail, the technical solution of the present application is described in detail through two embodiments below:

[0106] Figure 3 is a flow chart of another image registration method according to an exemplary embodiment of the present application. Figure 3 As shown, the method may include the following steps:

[0107] Step 301 : determining a two-dimensional image to be registered that includes an imaging pattern of a current radiation object.

[0108] The imaging pattern of the current radiation object is characterized in the two-dimensional image to be registered, wherein the current radiation object may be the same radiation object as the sample radiation object used as the training sample, such as the left calf of the same patient A as the current radiation object and the sample radiation object; similarly, the current radiation object may also be a radiation object belonging to the same category as the sample radiation object used as the training sample, such as the current radiation object and the sample radiation object are both human chest cavities, and accordingly, the two-dimensional image to be registered may be an X-ray image containing a human chest cavity, and in this application scenario, the imaging pattern presented by the X-ray image is a human chest cavity pattern. It is easy to understand that the current radiation object and the sample radiation object may be any object, and the present application does not limit the specific content of the current radiation object and the sample radiation object or the specific form of expression of the two-dimensional image to be registered.

[0109] In one embodiment, the two-dimensional image to be registered is acquired when the projection distance of the imaging device meets a preset value. The projection distance of the imaging device may be parameter information of the imaging device when it leaves the factory, and the parameter information reflects the optimal imaging distance of the current radiation object compared to the imaging device when acquiring the two-dimensional image; or, before acquiring the two-dimensional image to be registered, the distance between the camera of the imaging device and the current radiation object is measured in real time, and the imaging distance when determining the two-dimensional image sample used for training the neural network is compared based on the measured real-time information, and the distance between the camera of the imaging device used for real-time measurement and the current radiation object is adjusted according to the comparison result to ensure that the two-dimensional image to be registered is acquired based on the projection distance between the camera in the imaging device and the sample radiation object when determining the two-dimensional image sample.

[0110] Step 302, determining a neural network pre-trained by two-dimensional image samples containing projection point coordinate annotation information.

[0111] The two-dimensional image samples used to train the neural network can be actual two-dimensional images or two-dimensional reconstructed images. The actual two-dimensional images are two-dimensional images actually determined based on the irradiation of the radioactive object by the imaging device; the two-dimensional reconstructed images can be multiple two-dimensional images determined by digital simulation of three-dimensional images based on multiple transformed posture data by performing posture transformation on the radioactive object. Multiple groups of two-dimensional reconstructed images are determined by the posture transformation of the radioactive object and added to the training samples of the neural network, which improves the regularization of the samples used to train the neural network model, thereby solving the problem of overfitting or underfitting of the trained neural network due to specific samples.

[0112] Specifically, in the process of using actual two-dimensional images as two-dimensional reconstructed images of training samples, two-dimensional reconstructed images that match the actual two-dimensional images can be screened out in the two-dimensional reconstructed image set based on a similarity algorithm, and then the posture data of the screened out two-dimensional reconstructed images can be determined as the posture data information of the three-dimensional image of the radioactive object represented by the pattern in the actual two-dimensional image; in another embodiment, it can also be based on the actual two-dimensional image of the sample radioactive object actually obtained by the imaging device, and the posture data of the three-dimensional image of the radioactive object is determined when the actual two-dimensional image is obtained. The present application does not limit the method for determining the posture data of the three-dimensional image of the radioactive object represented by the two-dimensional reconstructed image or the two-dimensional image.

[0113] The process of transforming the posture of the radiation object can be: based on a preset direction in the spatial coordinate system of the imaging device, changing the angle value of the radiation object by a first preset value, changing the displacement value of the radiation object along the preset direction by a second preset value, or changing the displacement value of the radiation object along the preset direction by a second preset value and changing the rotation angle value along the preset direction by a first preset value.

[0114] In actual application, the position data of the radiation object can be a displacement value or a rotation angle value in a single direction along the coordinate axis x, y, or z. x ,t y ,t z Respectively represent the offset in three directions relative to the x, y, and z coordinate axes, θ x ,θ y ,θ z Respectively represent the rotation angle values ​​relative to the x, y, and z axes, which can be set with t x ,t y ,t z and θ x ,θ y ,θ z The radioactive object is rigidly transformed according to the relevant change rules, and then the three-dimensional image of the radioactive object after different rigid body transformations and the two-dimensional image corresponding to the three-dimensional image are uniquely marked according to the displacement value and rotation angle value after the rigid body transformation. That is, the position data of the radioactive object corresponding to the three-dimensional image after the rigid body transformation of the radioactive object can be used as the actual registration annotation information. Figure 4 This will be described in detail in the corresponding embodiments and will not be explained in this embodiment.

[0115] The training samples used to train the neural network include two-dimensional image samples containing projection point coordinate annotation information, where the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample.

[0116] Step 303: input the determined two-dimensional image to be registered into the trained neural network, so as to determine the coordinates of the projection points in the two-dimensional image to be registered based on the features extracted by the neural network from the two-dimensional image to be registered.

[0117] The two-dimensional image of the current radioactive object to be registered is input into the trained neural network, and the pre-trained neural network extracts features of the input intersection information, and then determines the coordinates of the projection points of the feature points of the three-dimensional bounding box of the current radioactive object in the three-dimensional image in the two-dimensional image to be registered based on the extracted features.

[0118] Step 304 , determining the three-dimensional coordinates of the feature points of the three-dimensional boundary box of the current radiation object in the three-dimensional image.

[0119] In the present application, the coordinates of the feature points of the three-dimensional bounding box of the radiation object in the three-dimensional image can be pre-marked, that is, the coordinates of the feature points of the three-dimensional bounding box of the radiation object in the three-dimensional image are read and marked in real time when the three-dimensional image of the radiation object is acquired.

[0120] The determined feature points of the three-dimensional bounding box of the radioactive object in the three-dimensional image may be eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the radioactive object in the three-dimensional image; or the determined feature points may also be at least three points among the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the radioactive object in the three-dimensional image.

[0121] Step 305 , calculate the coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera when the two-dimensional image is acquired.

[0122] The three-dimensional coordinates of N feature points in the three-dimensional bounding box of the known current radioactive object in the three-dimensional image can be understood as the coordinates in the world coordinate system. The coordinates of the projection points of the current radioactive object in the imaging pattern of the two-dimensional image to be registered predicted by the neural network are the coordinates in the camera coordinate system. The coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radioactive object in the three-dimensional image can be calculated according to the PNP algorithm to obtain the camera's posture information.

[0123] In practical applications, the obtained camera pose information can be simplified by the camera's external parameter matrix [R|t], where R is the rotation matrix and t is the translation matrix. The rotation matrix R can be determined based on the Rodriguez formula, that is, the rotation in three-dimensional space can be expressed as a combination of rotation angle and vector. Correspondingly, if the coordinate corresponding to the world coordinate system is X and the coordinate corresponding to the camera coordinate system is X', then the obtained camera pose information satisfies X'=[R|t]*X, such as Figure 4 As shown, Figure 4 According to an exemplary embodiment of the present application, a schematic diagram of determining camera posture information is shown. It is assumed that the three-dimensional coordinates of points A, B, and C in the figure are coordinates determined based on the world coordinate system, and points a, b, and c in the two-dimensional image m are coordinates determined based on the camera coordinates, and point a is the projection point of point A in the two-dimensional image m, point b is the projection point of point B in the two-dimensional image m, and point c is the projection point of point C in the two-dimensional image m, that is, triangle abc in the two-dimensional image m is an imaging pattern formed by the three-dimensional bounding box ABC of the radiating object in the two-dimensional image m. Then, by calculating the three-dimensional coordinates of points A, B, and C and the two-dimensional coordinates of points a, b, and c in the two-dimensional image m using the P3P algorithm, the posture information of camera P, that is, the external parameter matrix [R|t] of camera P, can be determined.

[0124] Through the above-mentioned embodiment, the coordinates of the projection points formed by the feature points of the three-dimensional bounding box of the current radiation object in the two-dimensional image to be registered are determined by training a neural network based on two-dimensional image samples containing projection point coordinate annotation information, thereby improving the accuracy and robustness of determining the coordinates of the projection points formed in the two-dimensional image to be registered, and further, for determining the camera's posture data based on the PNP algorithm, the accuracy of the posture data determined is also correspondingly improved, thereby enhancing the stability of tracking and determining the camera's posture data.

[0125] Figure 5 is a flowchart of another neural network training method for image registration according to an exemplary embodiment of the present application, such as Figure 5 As shown, the method may include the following steps:

[0126] Step 501: construct sample data of a two-dimensional image sample containing projection point coordinate annotation information.

[0127] Sample data including two-dimensional image samples can be constructed based on a two-dimensional reconstructed image or an actual two-dimensional image. The two-dimensional reconstructed image is a two-dimensional image obtained by digital simulation after the posture of the radiation object is transformed. The actual two-dimensional image is a two-dimensional image of a sample radiation object acquired based on an imaging device. Specifically, the two-dimensional image sample can be obtained when the projection distance of the imaging device meets a preset value.

[0128] In the process of acquiring sample radioactive objects, the sample radioactive objects can be transformed in posture, and then the corresponding two-dimensional images can be determined based on the radioactive objects after the posture transformation. Through the posture transformation of the radioactive objects, multiple groups of two-dimensional reconstructed images are determined to be added to the training samples of the neural network, which improves the regularization of the samples used to train the neural network model, thereby solving the problem of overfitting or underfitting of the trained neural network due to specific samples.

[0129] Specifically, in the process of using the actual two-dimensional image as the two-dimensional reconstructed image of the training sample, the two-dimensional reconstructed image that matches the actual two-dimensional image can be screened out in the two-dimensional reconstructed image set based on the similarity algorithm, and then the posture data of the screened two-dimensional reconstructed image is determined as the posture data information of the three-dimensional image of the radioactive object represented by the pattern in the actual two-dimensional image. When the two-dimensional image in the training sample is the actual two-dimensional image, the posture data of the three-dimensional image of the radioactive object can be determined when the actual two-dimensional image is obtained. This application does not limit the method for determining the posture data of the two-dimensional reconstructed image or the three-dimensional image of the radioactive object represented by the two-dimensional image.

[0130] Furthermore, the posture transformation of the sample radiation object is a rigid body transformation. The specific posture transformation method may include changing the angle value of the radiation object by a first preset value based on a preset direction in the spatial coordinate system of the imaging device, changing the displacement value of the radiation object along the preset direction by a second preset value, or changing the displacement value of the radiation object along the preset direction by a second preset value and changing the rotation angle value along the preset direction by a first preset value, such as sampling the radiation object once every 3 mm translation along the preset direction, or sampling once every 2° rotation of the angle value along the preset direction, or sampling once after translating 3 mm along the preset direction and rotating the angle value by 2°. It is easy to understand that the present application does not limit the offset direction and offset amount, rotation direction and rotation angle value used in actual applications.

[0131] In actual application, the position data of the radiation object can be a displacement value or a rotation angle value in a single direction along the coordinate axis x, y, or z. x ,t y ,t z Respectively represent the offset in three directions relative to the x, y, and z coordinate axes, θ x ,θ y ,θ z Respectively represent the rotation angle values ​​relative to the x, y, and z axes. Specifically, you can use Indicates the x-axis offset, y-axis offset, z-axis offset, rotation angle value relative to the x-axis, rotation angle value relative to the y-axis, and rotation angle value relative to the z-axis after changes according to preset rules.

[0132] Accordingly, you can set Implement rigid body transformation of the radiating object. For example, rotate the radiating object only along the x-axis. In this case, the three-dimensional coordinates of a point on the radiation object change from the original (x, y, z) to (x′, y′, z′), and the following mapping relationship is satisfied between (x, y, z) and (x′, y′, z′), namely:

[0133]

[0134] Among them To realize the homogeneous transformation matrix of the radiation object from the original coordinates (x, y, z) to (x', y', z').

[0135] Similarly, if we rotate the radiating object only along the y axis In this case, the three-dimensional coordinates of a point on the radiation object change from the original (x, y, z) to (x′, y′, z′), and the following mapping relationship is satisfied between (x, y, z) and (x′, y′, z′), namely:

[0136]

[0137] Among them To realize the homogeneous transformation matrix of the radiation object from the original three-dimensional coordinates (x, y, z) to (x', y', z').

[0138] Similarly, if we rotate the radiating object only along the z-axis In this case, the three-dimensional coordinates of a point on the radiation object change from the original (x, y, z) to (x′, y′, z′), and the following mapping relationship is satisfied between (x, y, z) and (x′, y′, z′), namely:

[0139]

[0140] Among them To realize the homogeneous transformation matrix of the radiation object from the original three-dimensional coordinates (x, y, z) to (x', y', z').

[0141] Similarly, if the radiation object is translated along the x, y, and z axes, such as translating the radiation object along the x axis Translation along the y axis Translation along the z-axis Then the three-dimensional coordinates of a point on the radiation object will change from the original (x, y, z) to (x', y', z'), and the following mapping relationship is satisfied between (x, y, z) and (x', y', z'), namely:

[0142]

[0143] Among them To realize the homogeneous transformation matrix of the radiation object from the original three-dimensional coordinates (x, y, z) to (x', y', z').

[0144] According to different rotation orders based on the x-axis, y-axis, and z-axis rotations, 6 different rotation conditions can be combined. Taking the transformation of the radiation object by rotating and translating along the x-axis, y-axis, and z-axis as an example, the three-dimensional coordinates of a point on the radiation object will change from the original (x, y, z) to (x′, y′, z′), and the following mapping relationship is satisfied between (x, y, z) and (x′, y′, z′), namely:

[0145]

[0146] Among them In order to realize the homogeneous transformation matrix of the radiation object from the original three-dimensional coordinates (x, y, z) to (x', y', z'), in order to make the representation uniform, the change rules that may be involved in the preset rules are unified by the homogeneous transformation matrix in the imaging device coordinate system Represents, where R is a 3*3 rotation transformation matrix, T is a 3*1 translation vector, and 0 is a 1*3 zero vector.

[0147] For a three-dimensional image of a radiation object that has changed according to multiple preset rules, a two-dimensional reconstructed image matching the three-dimensional image and the posture data of the three-dimensional image can be determined, and then a sample data set consisting of multiple two-dimensional reconstructed images annotated with posture data can be determined.

[0148] The constructed sample set is split into data to obtain a training set, a test set, and a validation set corresponding to the constructed sample set.

[0149] In one embodiment, after the sample set is constructed, the amount of data for establishing the training set, validation set, and test set can be randomly selected from the established sample data set according to a certain proportion. For example, 80% of the samples can be randomly selected from the established sample data set as the training set, 10% of the samples can be randomly selected as the validation set, and the remaining 10% of the samples can be randomly selected as the test set. This application does not limit the specific proportion value.

[0150] In another embodiment, the data set can be split into n parts. In practical applications, n is usually 5 or 10, and then one of them is taken as a test set each time without repetition, and the other (n-1) parts are taken as training sets for training models.

[0151] In practical applications, the sample set used as a training set is mainly used to train the parameters in the neural network. After the neural network is trained based on the training set, the validation set can be used to compare and judge the performance of each model. With the help of the validation set, the hyperparameters that cannot be optimized based on the training set can be trained and optimized. The evaluation indicators of the neural network model are obtained based on the samples of the test set.

[0152] Step 502: construct a neural network model for extracting features from two-dimensional image samples.

[0153] In one embodiment, the constructed neural network regression model may be composed of several convolutional layers, pooling layers, fully connected layers, etc., so that the neural network extracts image features based on several convolutional layers, pooling layers, etc. In the actual application process, the number of input layers, hidden layers and input layers in the neural network regression model can be set, such as a perceptron neural network with an input layer of 8 neurons, a hidden layer of 12 neurons, and an output layer of 6 neurons can be constructed, but the present application does not limit the specific number of input layers, hidden layers, and output layers. It can be understood that the construction of a neural network regression model with an input layer of 10 neurons, a hidden layer of 14 neurons, and an output layer of 6 neurons is also applicable to the technical solution of the present application.

[0154] Furthermore, the number of training rounds and batch size of the neural network can be set. In order to ensure the accuracy of the training results, the batch size of the constructed neural network model should not be too small. At the same time, in order to ensure the training efficiency of the neural network training, the batch size of the constructed neural network model should not be too large, so as to avoid excessive batches causing the equipment to run slowly or even crash. As an exemplary setting, the number of training rounds can be 20,000, and the batch size of the neural network model can be set to 10. It can be understood that this application also does not limit the number of training rounds and batches for constructing a neural network.

[0155] Step 503: extract features from the two-dimensional image samples used as training samples using the constructed neural network model.

[0156] In step 504, the neural network outputs the predicted projection point coordinate information corresponding to the two-dimensional image sample determined based on the extracted features.

[0157] The contour information in the two-dimensional image as a training sample input by the neural network is subjected to feature extraction, and then the predicted registration information corresponding to the contour information in the two-dimensional image is output according to the extracted features. Specifically, the contour information of the input two-dimensional image can be subjected to feature extraction through a combination of several convolutional layers, several pooling layers, i.e., several fully connected layers in the neural network.

[0158] Step 505: Adjust the network model parameters of the neural network based on the difference between the predicted projection point coordinate information and the projection point coordinate annotation information.

[0159] After calculation by the neural network, the predicted alignment information corresponding to the contour information of the pattern in the input two-dimensional image can be obtained. Based on the pre-annotated alignment information in the two-dimensional image sample, the difference between the predicted alignment information and the pre-annotated actual alignment information can be determined. The loss value of the loss function can be determined according to the difference between the pre-annotated actual alignment information and the predicted alignment information in the two-dimensional image sample, and then the determined loss value is fed back to the neural network so that the network parameters of the neural network are adjusted according to the received loss value. The adjusted network parameters include the weights of the fully connected layer in the neural network, the value of the convolution kernel, etc.

[0160] The loss function used to determine the loss value may be predetermined, and the selected loss function may be Where N = 9, To predict the projection point coordinate information, The projection point coordinates are marked with information. After receiving the loss value, the neural network can adjust the network parameters in the network structure to reduce the loss value, and when the preset training end condition is reached, it is determined that the training of the network parameters of the neural network is completed, wherein the preset training end condition can be that the loss value obtained based on the determined loss function reaches the minimum value, or the number of network parameter optimization iterations reaches a preset threshold.

[0161] After the neural network training model is trained, the validation set can be used to optimize the model selection and adjust the hyperparameters. Furthermore, the test set can be used to evaluate the model's fitting regression effect. In the actual application process, for one of the data set splitting methods, the data set used as the training set and the test set is split into n parts, and then one of them is taken as the test set each time without repetition, and the other (n-1) parts are used as the training set for the training model. Correspondingly, k evaluation results can be determined, and then the performance mean of the k evaluations can be used as the final evaluation result.

[0162] Figure 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. Figure 6 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an image registration device at the logical level. Of course, in addition to software implementations, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0163] Please refer to Figure 7 , Figure 7is a block diagram of an image registration device according to an exemplary embodiment of the present application. In a software implementation, the image registration device may include:

[0164] A determination unit 701 determines a two-dimensional image to be registered, wherein the two-dimensional image to be registered contains an imaging pattern of a current radiation object;

[0165] An input unit 702 inputs the two-dimensional image to be registered into a neural network, wherein the neural network is pre-trained using two-dimensional image samples including projection point coordinate annotation information, and the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample;

[0166] A feature extraction unit 703 extracts features from the two-dimensional image to be registered through a neural network, and determines the coordinates of a projection point in the two-dimensional image to be registered according to the extracted features, wherein the projection point in the two-dimensional image to be registered corresponds to a feature point of a three-dimensional bounding box of the current radiation object in the three-dimensional image;

[0167] The calculation unit 704 calculates the coordinates of the projection points in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera.

[0168] Optionally, the coordinates of the feature points of the three-dimensional bounding box are pre-marked feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image, including:

[0169] At least three points among the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the current radioactive object in the three-dimensional image; the feature points of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image include: at least three points among the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image.

[0170] Optionally, the two-dimensional image sample includes:

[0171] A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or

[0172] An actual two-dimensional image of the sample radiation object acquired by an imaging device.

[0173] Optionally, the posture change includes:

[0174] Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

[0175] Optionally, the two-dimensional image to be registered is obtained when the projection distance of the imaging device meets a preset value.

[0176] Figure 8 is a schematic structural diagram of another electronic device according to an exemplary embodiment of the present application. Figure 8 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a neural network training device for image registration at the logical level. Of course, in addition to software implementations, this application does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0177] Please refer to Fig. 9 , Fig. 9 is a block diagram of a neural network training device for image registration according to an exemplary embodiment of the present application. In a software implementation, the neural network training device for image registration may include:

[0178] An input unit 901 inputs at least a two-dimensional image sample as a training sample into a neural network, wherein the training sample includes projection point coordinate annotation information corresponding to the two-dimensional image to be registered, and the projection point coordinate annotation information is the coordinates of the projection point of the feature point of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample;

[0179] A feature extraction unit 902 extracts features from the input two-dimensional image sample through the neural network, and determines the predicted projection point coordinate information corresponding to the two-dimensional image sample according to the extracted features;

[0180] A determination unit 903 determines a difference between the predicted projection point coordinate information and the projection point coordinate annotation information;

[0181] The parameter adjustment unit 904 adjusts the network model parameters of the neural network based on the difference.

[0182] Optionally, the feature point coordinates of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image include: at least three points of eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radioactive object in the three-dimensional image.

[0183] Optionally, the two-dimensional image samples used as training samples include:

[0184] A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or

[0185] An actual two-dimensional image of the sample radiation object acquired by an imaging device.

[0186] Optionally, the posture change includes:

[0187] Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

[0188] Optionally, the two-dimensional image sample is obtained when the projection distance of the imaging device meets a preset value.

[0189] Optionally, determining a difference between the predicted projection point coordinate information and the projection point coordinate annotation information, and adjusting a network model parameter of the neural network based on the difference includes:

[0190] Determining a loss function corresponding to a regression model including the network model parameters;

[0191] Based on the loss function, the predicted projection point coordinate information and the projection point coordinate annotation information, the network model parameters are determined when the loss function obtains a minimum value.

[0192] Optionally, the loss function is Where N = 9, To predict the projection point coordinate information, Label the projection point coordinates.

[0193] The device corresponds to the above method, and more identical details are not repeated here.

[0194] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0195] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0196] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0197] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0198] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.

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

Claims

1. An image registration method, characterized in that: The method comprises: Determine a two-dimensional image to be registered, wherein the two-dimensional image to be registered contains an imaging pattern of a current radiation object; Inputting the two-dimensional image to be registered into a neural network, wherein the neural network is pre-trained using two-dimensional image samples including projection point coordinate annotation information, wherein the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample; Extracting features of the two-dimensional image to be registered through the neural network, and determining the coordinates of projection points in the two-dimensional image to be registered according to the extracted features, wherein the projection points in the two-dimensional image to be registered correspond to feature points of a three-dimensional bounding box of the current radiation object in the three-dimensional image; Calculating the coordinates of the projection point in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera; The feature point coordinates of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image include: at least three points of the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the current radiation object in the three-dimensional image; the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image include: at least three points of the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radiation object in the three-dimensional image.

2. The method according to claim 1, characterized in that: The two-dimensional image sample includes: A two-dimensional reconstructed image corresponding to the three-dimensional image of the sample radiation object after the posture change; or An actual two-dimensional image of the sample radiation object acquired by an imaging device.

3. The method according to claim 2, characterized in that: The posture change includes: Based on a preset direction in the spatial coordinate system of the imaging device, the angle value of the sample irradiation object is changed by a first preset value and / or the displacement value of the irradiation object is changed by a second preset value.

4. The method according to claim 1, characterized in that: The two-dimensional image to be registered is obtained when the projection distance of the imaging device meets a preset value.

5. An image registration device, characterized in that: The device comprises: A determination unit, which determines a two-dimensional image to be registered, wherein the two-dimensional image to be registered contains an imaging pattern of a current radiation object; An input unit inputs the two-dimensional image to be registered into a neural network, wherein the neural network is pre-trained using two-dimensional image samples including projection point coordinate annotation information, and the projection point coordinate annotation information is the coordinates of the projection points of the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image in the two-dimensional image sample; a feature extraction unit, which extracts features of the two-dimensional image to be registered through the neural network, and determines the coordinates of projection points in the two-dimensional image to be registered according to the extracted features, wherein the projection points in the two-dimensional image to be registered correspond to feature points of a three-dimensional bounding box of the current radiation object in the three-dimensional image; A calculation unit, which calculates the coordinates of the projection point in the two-dimensional image to be registered and the coordinates of the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image according to the PNP algorithm to determine the position information of the camera; The feature point coordinates of the three-dimensional bounding box are pre-marked, and the feature points of the three-dimensional bounding box of the current radiation object in the three-dimensional image include: at least three points of the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the current radiation object in the three-dimensional image; the feature points of the three-dimensional bounding box of the sample radiation object in the three-dimensional image include: at least three points of the eight vertex coordinates and one center point coordinate of the three-dimensional bounding box of the sample radiation object in the three-dimensional image.

6. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute instructions to implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.