WO2024130705A1 - 一种图像配准方法、装置、设备和存储介质 - Google Patents
一种图像配准方法、装置、设备和存储介质 Download PDFInfo
- Publication number
- WO2024130705A1 WO2024130705A1 PCT/CN2022/141486 CN2022141486W WO2024130705A1 WO 2024130705 A1 WO2024130705 A1 WO 2024130705A1 CN 2022141486 W CN2022141486 W CN 2022141486W WO 2024130705 A1 WO2024130705 A1 WO 2024130705A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- sequence
- images
- registered
- registration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
Definitions
- the present application relates to the technical field of image registration, and in particular to an image registration method, device, equipment and storage medium.
- Image registration is an important technology in the field of image processing research. Its purpose is to align multiple images of the same object taken under different conditions or a sequence of images taken continuously.
- the properties of registration algorithms include rigidity, affine, elasticity and other directions.
- An existing image registration method is based on feature point matching. This method mainly finds several pairs of matching feature point pairs in two images that need to be aligned. Each feature point pair includes two feature points, which belong to the two images respectively. Then, the feature point pairs are used to establish a feature description vector. According to the feature description vector, one image is transformed to align it with the other image.
- the problem with the above method is that for images taken in some special scenarios, such as multiple images of the same sample taken continuously in the medical field, it is difficult to find a sufficient number of feature point pairs, so the above method cannot align this type of images.
- the present application provides an image registration method, apparatus, device and storage medium for rigid registration of images in the medical field.
- the first aspect of the present application provides an image registration method, comprising:
- the image registration model is used to extract the transformation matrix corresponding to each image in the image sequence to be registered; wherein the transformation matrix includes three parameters: vertical offset, horizontal offset and rotation angle;
- the image is processed using a transformation matrix corresponding to the image to obtain a registration result image corresponding to the image.
- obtaining the image sequence to be registered includes:
- the sizes of the multiple images are cropped to a preset target size to obtain a sequence of images to be registered.
- the step of training an image registration model using the image sequence to be registered includes:
- the image registration model is obtained by training using the training sequence and the result sequence.
- determining a training sequence and a result sequence according to the image sequence to be registered includes:
- Each image except the first image in the sequence of images to be registered, and each image except the first image that is horizontally flipped, are used to form a result sequence.
- determining a training sequence and a result sequence according to the image sequence to be registered includes:
- the result sequence is composed of the other one of the two images and the other images, and the image after the other one of the two images and the other images are horizontally flipped.
- the order of the multiple images in the training sequence is a randomly determined order, or an order set according to a user instruction, or an order in the sequence of images to be registered;
- the order of the multiple images in the result sequence is a randomly determined order, or an order set according to a user instruction, or an order in the sequence of images to be registered.
- processing the image using a transformation matrix corresponding to the image to obtain a registration result image corresponding to the image includes:
- the transformed image or the transformed flipped image is determined as the registration result of the image; wherein the subsequent image refers to the image that is located after the image in the image sequence to be registered.
- obtaining the image sequence to be registered includes:
- the sizes of the multiple images are cropped to a preset target size to obtain a sequence of images to be registered.
- a second aspect of the present application provides an image registration method, comprising:
- the image is processed using the transformation matrix corresponding to the image to obtain a registration result of the image.
- the process of training the registration model includes:
- the image registration model is obtained by training using the training sequence and the result sequence.
- the process of training the registration model includes:
- the image registration model is obtained by training using the training sequence and the result sequence.
- the using a transformation matrix corresponding to the image to process the image to obtain a registration result of the image includes:
- the transformed image or the transformed flipped image is determined as the registration result of the image; wherein the subsequent image refers to the image that is located after the image in the image sequence to be registered.
- a third aspect of the present application provides an image registration device, comprising:
- An acquisition unit used for acquiring a sequence of images to be registered
- a training unit used for training an image registration model using the image sequence to be registered
- An extraction unit used to extract the transformation matrix corresponding to each image in the image sequence to be registered by using the image registration model; wherein the transformation matrix includes three parameters: vertical offset, horizontal offset and rotation angle;
- the processing unit is used to process each image in the sequence of images to be registered by using the transformation matrix corresponding to the image to obtain a registration result image corresponding to the image.
- the obtaining unit obtains the image sequence to be registered, it is specifically used to:
- the sizes of the multiple images are cropped to a preset target size to obtain a sequence of images to be registered.
- the training unit obtains the image registration model by training the image sequence to be registered, it is specifically used to:
- the image registration model is obtained by training using the training sequence and the result sequence.
- the training unit determines the training sequence and the result sequence according to the image sequence to be registered, it is specifically used to:
- Each image except the first image in the sequence of images to be registered, and each image except the first image that is horizontally flipped, are used to form a result sequence.
- the training unit determines the training sequence and the result sequence according to the image sequence to be registered, it is specifically used to:
- the result sequence is composed of the other one of the two images and the other images, and the image after the other one of the two images and the other images are horizontally flipped.
- the order of the multiple images in the training sequence is a randomly determined order, or an order set according to a user instruction, or an order in the sequence of images to be registered;
- the order of the multiple images in the result sequence is a randomly determined order, or an order set according to a user instruction, or an order in the sequence of images to be registered.
- the processing unit processes each image in the sequence of images to be registered by using a transformation matrix corresponding to the image to obtain a registration result image corresponding to the image, specifically for:
- the transformed image or the transformed flipped image is determined as the registration result of the image; wherein the subsequent image refers to the image that is located after the image in the image sequence to be registered.
- the obtaining unit obtains the image sequence to be registered, it is specifically used to:
- the sizes of the multiple images are cropped to a preset target size to obtain a sequence of images to be registered.
- a fourth aspect of the present application provides an electronic device, including a memory and a processor
- the memory is used to store computer programs
- the processor is used to execute the computer program, and when the computer program is executed, it is specifically used to implement the image registration method provided in any one of the first aspect or the second aspect of the present application.
- the fifth aspect of the present application provides a computer storage medium for storing a computer program.
- the computer program When executed, it is specifically used to implement the image registration method provided in any one of the first aspect or the second aspect of the present application.
- the present application provides an image registration method, apparatus, device and storage medium, the method comprising: obtaining a sequence of images to be registered; using the sequence of images to be registered to train an image registration model; using the image registration model to extract a transformation matrix corresponding to each image in the sequence of images to be registered; the transformation matrix includes three parameters: vertical offset, horizontal offset and rotation angle; for each image in the sequence of images to be registered, using the transformation matrix corresponding to the image to process the image, and obtaining a registration result image corresponding to the image.
- This solution does not need to rely on feature points in the image during the registration process, so it can also effectively perform rigid registration for medical images (or other similar images) where it is difficult to extract feature points.
- FIG1 is a flow chart of a method for training an image registration model provided in an embodiment of the present application
- FIG2 is an example of image flipping provided by an embodiment of the present application.
- FIG3 is a flow chart of an image registration method provided in an embodiment of the present application.
- FIG4 is an exemplary diagram of an image registration process provided by an embodiment of the present application.
- FIG5 is a schematic diagram of an image registration effect provided by an embodiment of the present application.
- FIG6 is a schematic diagram of a registration result of an image sequence provided in an embodiment of the present application.
- FIG7 is a schematic diagram of the structure of an image registration device provided in an embodiment of the present application.
- FIG8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- the present application provides an imaging method and an imaging system for improving the comprehensiveness of image display.
- the image registration method provided in the embodiment of the present application can be used to register medical images, and can also be used to register other images with similar features to medical images (such as grayscale images with a mainly black background).
- the image registration method provided in the embodiment of the present application needs to first train an image registration model using the image sequence to be registered, and then use the image registration model to register each image in the image sequence to be registered.
- FIG. 1 is a flowchart of a method for training a sequence of images to be registered provided in an embodiment of the present application.
- the method may include the following steps.
- the image sequence to be registered can be obtained by first continuously photographing the same object to obtain multiple images, then cropping each image, cropping the size of each image to a preset target size, and the image sequence composed of the cropped multiple images is the image sequence to be registered.
- the sizes of the multiple images are cropped to a preset target size to obtain a sequence of images to be registered.
- the image sequence to be registered may be obtained by photographing multiple slices of the same object separately to obtain multiple images, wherein each image shows a slice of the object, and then cropping the multiple images to a preset target size, and the cropped images constitute the image sequence to be registered.
- the same object here may be a biological tissue sample used for experiments, such as a mouse heart.
- the size of the multiple images obtained by shooting is the preset target size, cropping may not be performed, and the image sequence formed by the multiple images obtained by shooting may be directly determined as the image sequence to be registered.
- S102 Decompose the image sequence to be registered into a first image sequence and a second image sequence.
- step S102 a variety of methods may be used to decompose the first image sequence and the second image sequence. As examples, two optional decomposition methods are described below.
- the first image sequence includes every image in the image sequence to be registered except the last image
- the second image sequence includes every image in the image sequence to be registered except the first image
- the image sequence to be registered includes n images, which are sequentially recorded as image 1 to image n, then the first image sequence includes image 1 to image n-1, and the second image sequence includes image 2 to image n.
- the second decomposition method is:
- Two images are randomly selected from the image sequence to be registered, one of the two randomly selected images is placed in the first image sequence, and the other is placed in the second image sequence, and then all remaining unselected images are placed in the first image sequence and the second image sequence at the same time.
- the image sequence to be registered includes images 1 to 6, and image 1 and image 3 are randomly selected, and image 1 is placed in the first image sequence, image 3 is placed in the second image sequence, and the remaining unselected image 2 and images 4 to 6 are placed in the first image sequence and the second image sequence at the same time.
- the first image sequence includes image 1, image 2, image 4 to image 6; the second image sequence includes image 3, image 2, image 4 to image 6.
- the order of images in the first image sequence and the second image sequence may be consistent with the order in the original image sequence to be registered, or may be inconsistent with the order in the original image sequence to be registered and arranged randomly, or may be arranged in a custom order set according to user instructions.
- step S104 is executed; if there is a flipping in the sequence of images to be registered, step S105 is executed.
- FIG. 2 the direction of the arrow of image a in FIG. 2 is opposite to the direction of the arrow of image b, so it can be considered that image a is flipped relative to image b.
- step S103 if at least one image in the image sequence to be registered is flipped, it is determined that the image sequence to be registered is flipped; if no image in the image sequence to be registered is flipped, it is determined that the image sequence to be registered is not flipped.
- each image in the images to be registered is flipped can be calibrated in advance by manual calibration, or by using a specific recognition algorithm to identify it, and then the calibration or recognition result is marked on each image.
- S104 determine the first image sequence as a training sequence, and determine the second image sequence as a result sequence.
- the training sequence can be expressed as: (image 1, image 2, ... image n-1), and the result sequence can be expressed as: (image 2, image 3, ... image n).
- step S105 L may be added after the image number to indicate the flipped image.
- the image obtained by horizontally flipping image 2 may be recorded as image 2L.
- the flipped image sequence may be represented as (image 2L, image 3L . . . image nL).
- step S106 the copy of the first image sequence may be spliced at the end of the first image sequence, and the flipped image sequence may be spliced at the end of the second image sequence.
- the training sequence can be represented as (image 1, image 2, ... image n-1, image 1, image 2, ... image n-1), and the result sequence can be represented as (image 2, image 3, ... image n, image 2L, image 3L ... image nL).
- step S102 to step S106 is equivalent to determining a training sequence and a result sequence according to the image sequence to be registered.
- determining the training sequence and the result sequence according to the image sequence to be registered may include:
- Each image except the last image in the image sequence to be registered is used to form a training sequence, and each image except the first image in the image sequence to be registered is used to form a result sequence;
- Each image except the last image in the image sequence to be registered is used to form a training sequence
- Each image except the first image in the image sequence to be registered and each image except the first image is horizontally flipped to form a result sequence.
- determining the training sequence and the result sequence according to the image sequence to be registered may include:
- One of the two images and the other images are used to form a training sequence; wherein the other image refers to an unselected image in the image sequence to be registered;
- the resulting sequence is composed of the other of the two images and the other images, and the other of the two images and the other images being horizontally flipped.
- the image registration model to be trained may be a deep learning model pre-constructed based on any existing deep learning network structure. This embodiment does not limit the specific structure of the image registration model to be trained.
- the image registration model to be trained can be a convolutional neural network (CNN) model including multiple convolutional layers (for example, three), or a recurrent neural network (RNN attention) model based on an attention mechanism.
- CNN convolutional neural network
- RNN attention recurrent neural network
- step S107 may include:
- A1 first use the image registration model to be trained to process each image in the training sequence to obtain the transformation matrix corresponding to each image in the training sequence.
- the above process of obtaining the transformation matrix of the image is determined by the specific structure of the image registration model, and this embodiment does not limit this.
- the process of obtaining the transformation matrix can be to use multiple convolutional layers in the CNN model to extract features of an input image one by one, and the feature output by the last convolutional layer is the transformation matrix of the input image.
- the CNN model includes three convolutional layers.
- the first convolutional layer first extracts features to obtain the first image features
- the second convolutional layer extracts features from the first image features to obtain the second image features
- the third convolutional layer extracts features from the second image features to obtain the transformation matrix corresponding to the image.
- the transformation matrix may be a 2*3 matrix, that is, a matrix with 2 rows and 3 columns, and the value of each element in the matrix depends on the vertical offset y, the horizontal offset x and the rotation angle ⁇ .
- the transformation matrix can be expressed as:
- A2 for each image in the training sequence, the image is processed using the transformation matrix corresponding to the image to obtain the training result image corresponding to the image.
- image 1 is processed with the transformation matrix corresponding to image 1 to obtain the corresponding training result image
- image 2 is processed with the transformation matrix corresponding to image 2 to obtain the corresponding training result image 2, and so on.
- the specific process of processing an image with a transformation matrix can be, for each pixel in the image, performing a matrix multiplication operation using the coordinates of the pixel and the transformation matrix corresponding to the image to obtain the transformed coordinates, and then moving the pixel to the transformed coordinates. After performing the above operation on all pixels in the image, these pixels moved to the transformed coordinates constitute the processed training result image.
- x1 and y1 represent the original coordinates of the pixel
- x2 and y2 represent the transformed coordinates
- A3 calculate the deviation between the training result image corresponding to each image in the training sequence and each image in the result sequence to obtain the model loss value.
- step A3 for each image in the training sequence, the deviation between the training result image corresponding to the image and the image at the same position as the image in the result sequence is calculated, and then the model loss value is determined based on the multiple deviations.
- the images in the training sequence and the images in the result sequence are located at the same position, which means that the two images are arranged in the same order in the sequences to which they belong.
- the training sequence is (image 1, image 2, ... image n-1)
- the result sequence is (image 2, image 3, ... image n).
- the first image in the training sequence is image 1
- the first image in the result sequence is image 2. Therefore, it can be considered that image 1 in the training sequence and image 2 in the result sequence are located at the same position, that is, both are the first images in their respective sequences; similarly, image 2 in the training sequence and image 3 in the result sequence are both the second images in their respective sequences, and it can be considered that image 2 in the training sequence and image 3 in the result sequence are located at the same position.
- the corresponding training result image 1 is obtained after processing in A2.
- the deviation between the training result image 1 and the first image of the result sequence, that is, image 2 can be calculated.
- step A3 the deviation between the training result image 1 and the image 2 of the result sequence, the deviation between the training result image 2 and the image 3 of the result sequence, the deviation between the training result image 3 and the image 4 of the result sequence, and so on are calculated in sequence.
- the deviation between the two images can be represented by the mean square error (MSE), or other indicators, which are not limited in this embodiment.
- MSE mean square error
- the specific calculation method of the mean square error of the two images can refer to the relevant prior art literature.
- each calculated deviation can be determined as the model loss value, the largest deviation among all the calculated deviations can be determined as the model loss value, or the sum of all the calculated deviations can be determined as the model loss value.
- This embodiment does not limit the specific method of determining the model loss value based on the deviations of multiple images.
- step S109 is executed; if the model loss value meets the convergence condition, step S110 is executed.
- the convergence condition may be that the model loss value is less than a preset convergence threshold.
- the convergence condition may be that each model loss value is less than the convergence threshold.
- step S109 the process returns to step S107 and uses the registration model with updated parameters to process the images in the training sequence again, thereby obtaining a new model loss value.
- a back propagation algorithm may be used to determine the update amount corresponding to each parameter in the registration model to be trained according to the model loss value, and then the value of each parameter in the model is updated according to the determined update amount.
- step S108 If it is determined in step S108 that the model loss value meets the convergence condition, then the registration model at this time is the trained registration model.
- step S101 all steps after step S101 are equivalent to:
- the image registration model is trained using the image sequence to be registered.
- a training sequence and a result sequence are determined according to the image sequence to be registered.
- the training sequence includes every image in the image sequence to be registered except the last image, and the result sequence includes every image in the image sequence to be registered except the first image;
- the training sequence includes each image except the last image in the image sequence to be registered and its copy
- the result sequence includes each image except the first image in the image sequence to be registered and the image after each image except the first image is horizontally flipped.
- the image registration model is obtained by training the training sequence and the result sequence.
- FIG3 is a flow chart of the image registration method provided in an embodiment of the present application. The method may include the following steps.
- step S301 is consistent with step S101 and will not be repeated here.
- step S302 may refer to step A1 in the embodiment corresponding to FIG1 , and will not be described in detail.
- step S103 Whether each image in the image sequence to be registered is flipped can be calibrated in advance by manual calibration, or recognized by a specific recognition algorithm, and then the calibration or recognition result is marked on each image. Therefore, in step S303, it can be determined whether each image is flipped based on the calibration result or recognition result of each image in the image sequence to be registered.
- step S304 is executed to obtain the registration result corresponding to the image.
- step S305 is performed to obtain a registration result corresponding to the image.
- step S304 for a flipped image in the sequence of images to be registered, the image may be processed in the manner described in step A2 using the transformation matrix corresponding to the image obtained in S302 to obtain a transformed image.
- the transformed image is compared with the next image of the flipped image to obtain a first deviation value; and the transformed image is compared with the image after the next image is flipped to obtain a second deviation value.
- the first deviation value and the second deviation value can be the mean square error of the two compared images, or can also be other indicators that can measure the deviation of the two images, without limitation.
- the image corresponding to the smaller deviation between the first deviation and the second deviation is selected as the registration result image of the flipped image.
- image 1 in the image sequence to be registered is flipped.
- image 2 is image 2.
- Image 1 is processed with the transformation matrix corresponding to image 1 to obtain the transformed image, which is recorded as transformed image 1.
- 1L is the flipped image 1.
- Image 1L is processed with the transformation matrix corresponding to image 1L to obtain the transformed image, which is recorded as transformed image 1L.
- the transformed image 1 and image 2 are compared to obtain a first deviation value; the transformed image 1L and image 2 are compared to obtain a second deviation value. If the first deviation value is smaller than the second deviation value, the transformed image 1 is determined as the output result corresponding to image 1, that is, as the registration result image.
- the transformed image 1L is determined as the output result corresponding to the image 1, that is, as the registration result image.
- step S304 The beneficial effect of step S304 is that, by comparing the image deviations, an image with a smaller deviation is selected as the registration result image of the flipped image, thereby improving the accuracy of the registration of the flipped image.
- S305 Process the image that has not been flipped using the corresponding transformation matrix to obtain a registration result of the image.
- step S305 the non-flipped image is processed by the image registration model to obtain a corresponding transformation matrix, and then the non-flipped image is processed using the transformation matrix according to the processing method in step A2 to obtain the highlighted registration result image.
- step S302 image 5 is processed using the image registration model to obtain the transformation matrix corresponding to image 5, and then image 5 is processed using the transformation matrix corresponding to image 5 in the manner described in step A2 to obtain the registration result image corresponding to image 5.
- steps S303 to S305 is equivalent to:
- the image is processed using the transformation matrix corresponding to the image to obtain the registration result image corresponding to the image.
- step S303 is equivalent to: for each image in the sequence of images to be registered, determining whether the image is flipped.
- Step S304 is equivalent to:
- the coordinates of each pixel in the image are adjusted according to the transformation matrix of the image to obtain the registration result image corresponding to the image.
- Step S305 is equivalent to:
- the coordinates of each pixel in the image are adjusted according to the image transformation matrix to obtain the transformed image corresponding to the image.
- the image registration result image is determined based on the deviation between the transformed image, the previous image in the image sequence to be registered, and the image after the previous image is horizontally flipped.
- FIG. 4 is an example diagram of an image registration process provided in this embodiment.
- the input image is first input into the trained image registration model to obtain the transformation matrix corresponding to the input image, which is equivalent to step S302 of the embodiment shown in FIG3. Then, according to the transformation matrix corresponding to the input image, the input image is registered to obtain the output image, that is, the registration result image corresponding to the input image, which is equivalent to steps S303 to S305 of the embodiment shown in FIG3.
- the input image may be each image in the sequence of images to be registered described in step S301 , for example, it may be image 1, image 2, etc. in the sequence of images to be registered.
- Fig. 5 is a schematic diagram of an image registration effect provided by an embodiment of the present application. As shown in Fig. 5, after the k-th image in the image sequence to be registered is registered using the image registration model, a registration result image corresponding to the k-th image is obtained.
- Figure 6 is a schematic diagram of a registration result obtained after registering the entire sequence of images to be registered provided in an embodiment of the present application, wherein Figure (1) is a sequence of images to be registered obtained after multiple consecutive shots of a mouse heart, and Figure (2) is a sequence of registration result images obtained after registering the sequence of images to be registered in Figure (1) according to the registration method provided in this embodiment.
- the beneficial effect of the image registration method provided in the embodiment of the present application is that the image registration model trained by the image sequence to be registered is used to extract the transformation matrix of each image in the image sequence to be registered, and then for each image in the image sequence to be registered, the image is processed using the transformation matrix of the image to obtain a registration result image.
- This solution does not need to rely on feature points in the image during the registration process, so it can effectively perform rigid registration on medical images (or other similar images) where feature points are difficult to extract.
- the embodiment of the present application also provides an image registration device, please refer to Figure 7, the device may include the following units.
- the obtaining unit 701 is used to obtain a sequence of images to be registered.
- the training unit 702 is used to train the image registration model using the image sequence to be registered.
- the extraction unit 703 is used to extract the transformation matrix corresponding to each image in the image sequence to be registered by using the image registration model.
- the processing unit 704 is used to process each image in the sequence of images to be registered using the transformation matrix corresponding to the image to obtain a registration result image corresponding to the image.
- the obtaining unit 701 obtains the image sequence to be registered, it is specifically used to:
- the sizes of multiple images are cropped to a preset target size to obtain an image sequence to be registered.
- the obtaining unit 701 obtains the image sequence to be registered, it is specifically used to:
- the sizes of multiple images are cropped to a preset target size to obtain an image sequence to be registered.
- the training unit 702 obtains the image registration model by training the image sequence to be registered, it is specifically used to:
- the image registration model is obtained by training the training sequence and the result sequence.
- the training unit 702 determines the training sequence and the result sequence according to the image sequence to be registered, it is specifically used to:
- Each image except the last image in the image sequence to be registered is used to form a training sequence, and each image except the first image in the image sequence to be registered is used to form a result sequence;
- Each image except the last image in the image sequence to be registered is used to form a training sequence
- Each image except the first image in the image sequence to be registered and each image except the first image after being horizontally flipped are used to form a result sequence.
- the training unit 702 determines the training sequence and the result sequence according to the image sequence to be registered, it is specifically used to:
- One of the two images and the other images are used to form a training sequence; wherein the other image refers to an unselected image in the image sequence to be registered;
- the resulting sequence is composed of the other of the two images and the other images, and the other of the two images and the other images being horizontally flipped.
- the order of the multiple images in the training sequence is a randomly determined order, or an order set according to a user instruction, or an order in the sequence of images to be registered;
- the order of the multiple images in the result sequence is a randomly determined order, or an order set according to a user instruction, or an order in the sequence of images to be registered.
- the processing unit 704 processes each image in the sequence of images to be registered using a transformation matrix corresponding to the image to obtain a registration result image corresponding to the image, specifically for:
- the coordinates of each pixel in the image are adjusted according to the transformation matrix of the image to obtain the registration result image corresponding to the image;
- the coordinates of each pixel in the image are adjusted according to the transformation matrix of the image to obtain the transformed image corresponding to the image;
- the image is horizontally flipped to obtain a flipped image, and the coordinates of each pixel in the flipped image are adjusted according to the transformation matrix of the image to obtain a transformed flipped image corresponding to the flipped image;
- the transformed image or the transformed flipped image is determined as the image registration result; wherein the subsequent image refers to the image located after the image in the image sequence to be registered.
- the present application provides an image registration device, which includes an acquisition unit 701 that obtains a sequence of images to be registered; a training unit 702 that uses the sequence of images to be registered to obtain an image registration model; an extraction unit 703 that uses the image registration model to extract a transformation matrix corresponding to each image in the sequence of images to be registered; and a processing unit 704 that processes each image in the sequence of images to be registered using the transformation matrix corresponding to the image to obtain a registration result image corresponding to the image.
- This solution does not need to rely on feature points in the image during the registration process, so it can also effectively perform rigid registration on medical images (or other similar images) for which feature points are difficult to extract.
- An embodiment of the present application further provides an electronic device, see FIG. 8 , which includes a memory 801 and a processor 802 .
- the memory 801 is used to store computer programs.
- the processor 802 is used to execute a computer program. When the computer program is executed, it is specifically used to implement the image registration method provided in any embodiment of the present application.
- An embodiment of the present application also provides a computer storage medium for storing a computer program.
- the computer program When executed, it is specifically used to implement the image registration method provided in any embodiment of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (15)
- 一种图像配准方法,其特征在于,包括:获得待配准图像序列;利用所述待配准图像序列训练得到图像配准模型;利用所述图像配准模型提取所述待配准图像序列中每一张图像对应的变换矩阵;其中,所述变换矩阵包括竖直偏移量,水平偏移量和旋转角度三项参数;针对所述待配准图像序列中的每一张图像,利用所述图像对应的变换矩阵处理所述图像,获得所述图像对应的配准结果图像。
- 根据权利要求1所述的方法,其特征在于,所述获得待配准图像序列,包括:获得对同一物体连续拍摄得到的多张图像;将所述多张图像的尺寸均裁剪为预设的目标尺寸,得到待配准图像序列。
- 根据权利要求1所述的方法,其特征在于,所述利用所述待配准图像序列训练得到图像配准模型,包括:根据所述待配准图像序列确定训练序列和结果序列;利用所述训练序列和所述结果序列训练得到图像配准模型。
- 根据权利要求3所述的方法,其特征在于,所述根据所述待配准图像序列确定训练序列和结果序列,包括:用所述待配准图像序列中除末张图像以外的每一张图像组成训练序列,并用所述待配准图像序列中除首张图像以外的每一张图像组成结果序列;或者,用所述待配准图像序列中除末张图像以外的每一张图像组成训练序列;用所述待配准图像序列中除首张图像以外的每一张图像,以及除首张图像以外的每一张图像被水平翻转后的图像,组成结果序列。
- 根据权利要求3所述的方法,其特征在于,所述根据所述待配准图像序列确定训练序列和结果序列,包括:随机选中所述待配准图像序列的两张图像;用所述两张图像中的一张和其他图像组成训练序列;其中,所述其他图像 指代所述待配准图像序列中未选中的图像;用所述两张图像中的另一张和其他图像组成结果序列;或者,用所述两张图像中的另一张和其他图像,以及所述两张图像中的另一张和其他图像被水平翻转后的图像,组成结果序列。
- 根据权利要求3或4所述的方法,其特征在于,所述训练序列中多张图像的顺序为随机确定的顺序,或者根据用户指令设定的顺序,或者在所述待配准图像序列中的顺序;所述结果序列中多张图像的顺序为随机确定的顺序,或者根据用户指令设定的顺序,或者在所述待配准图像序列中的顺序。
- 根据权利要求1所述的方法,其特征在于,所述针对所述待配准图像序列中的每一张图像,利用所述图像对应的变换矩阵处理所述图像,获得所述图像对应的配准结果图像,包括:针对所述待配准图像序列的每一张图像,判断所述图像是否发生翻转;若所述图像未发生翻转,根据所述图像的变换矩阵调整所述图像中各像素的坐标,获得所述图像对应的配准结果图像;若所述图像发生翻转,根据所述图像的变换矩阵调整所述图像中各像素的坐标,获得所述图像对应的变换后图像;对所述图像进行水平翻转得到翻转图像,并根据所述图像的变换矩阵调整所述翻转图像中各像素的坐标,获得所述翻转图像对应的变换后翻转图像;根据所述变换后图像相对于后一张图像的偏差,以及所述变换后翻转图像相对于所述后一张图像的偏差,将所述变换后图像或者所述变换后翻转图像确定为所述图像的配准结果;其中,所述后一张图像指代所述待配准图像序列中位于所述图像后一张的图像。
- 根据权利要求1所述的方法,其特征在于,所述获得待配准图像序列,包括:获得分别拍摄同一物体的多个切片而得到的多张图像;其中,每一张所述图像均显示所述物体的一个切片;将所述多张图像的尺寸均裁剪为预设的目标尺寸,得到待配准图像序列。
- 一种图像配准方法,其特征在于,包括:获得待配准图像序列;利用预先训练好的配准模型逐一处理所述待配准图像序列的每一张图像,获得每一张所述图像对应的变换矩阵;针对每一张所述图像,利用所述图像对应的变换矩阵处理所述图像,获得所述图像的配准结果。
- 根据权利要求9所述的方法,其特征在于,训练所述配准模型的过程,包括:用所述待配准图像序列中除末张图像以外的每一张图像组成训练序列;用所述待配准图像序列中除首张图像以外的每一张图像组成结果序列;或者,用所述待配准图像序列中除首张图像以外的每一张图像,以及除首张图像以外的每一张图像被水平翻转后的图像,组成结果序列;利用所述训练序列和所述结果序列训练得到图像配准模型。
- 根据权利要求9所述的方法,其特征在于,训练所述配准模型的过程,包括:随机选中所述待配准图像序列的两张图像;用所述两张图像中的一张和其他图像组成训练序列;其中,所述其他图像指代所述待配准图像序列中未选中的图像;用所述两张图像中的另一张和其他图像组成结果序列;或者,用所述两张图像中的另一张和其他图像,以及所述两张图像中的另一张和其他图像被水平翻转后的图像,组成结果序列;利用所述训练序列和所述结果序列训练得到图像配准模型。
- 根据权利要求9至11任意一项所述的方法,其特征在于,所述利用所述图像对应的变换矩阵处理所述图像,获得所述图像的配准结果,包括:若所述图像未发生翻转,根据所述图像的变换矩阵调整所述图像中各像素的坐标,获得所述图像对应的配准结果图像;若所述图像发生翻转,根据所述图像的变换矩阵调整所述图像中各像素的 坐标,获得所述图像对应的变换后图像;对所述图像进行水平翻转得到翻转图像,并根据所述图像的变换矩阵调整所述翻转图像中各像素的坐标,获得所述翻转图像对应的变换后翻转图像;根据所述变换后图像相对于后一张图像的偏差,以及所述变换后翻转图像相对于所述后一张图像的偏差,将所述变换后图像或者所述变换后翻转图像确定为所述图像的配准结果;其中,所述后一张图像指代所述待配准图像序列中位于所述图像后一张的图像。
- 一种图像配准装置,其特征在于,包括:获得单元,用于获得待配准图像序列;训练单元,用于利用所述待配准图像序列训练得到图像配准模型;提取单元,用于利用所述图像配准模型提取所述待配准图像序列中每一张图像对应的变换矩阵;其中,所述变换矩阵包括竖直偏移量,水平偏移量和旋转角度三项参数;处理单元,用于针对所述待配准图像序列中的每一张图像,利用所述图像对应的变换矩阵处理所述图像,获得所述图像对应的配准结果图像。
- 一种电子设备,其特征在于,包括存储器和处理器;其中,所述存储器用于存储计算机程序;所述处理器用于执行所述计算机程序,所述计算机程序被执行时,具体用于实现如权利要求1至12任意一项所述的图像配准方法。
- 一种计算机存储介质,其特征在于,用于存储计算机程序,所述计算机程序被执行时,具体用于实现如权利要求1至12任意一项所述的图像配准方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/141486 WO2024130705A1 (zh) | 2022-12-23 | 2022-12-23 | 一种图像配准方法、装置、设备和存储介质 |
| CN202280102252.8A CN120303692A (zh) | 2022-12-23 | 2022-12-23 | 一种图像配准方法、装置、设备和存储介质 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/141486 WO2024130705A1 (zh) | 2022-12-23 | 2022-12-23 | 一种图像配准方法、装置、设备和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024130705A1 true WO2024130705A1 (zh) | 2024-06-27 |
Family
ID=91587599
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/141486 Ceased WO2024130705A1 (zh) | 2022-12-23 | 2022-12-23 | 一种图像配准方法、装置、设备和存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN120303692A (zh) |
| WO (1) | WO2024130705A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109035316A (zh) * | 2018-08-28 | 2018-12-18 | 北京安德医智科技有限公司 | 核磁共振图像序列的配准方法及设备 |
| CN109472817A (zh) * | 2018-09-27 | 2019-03-15 | 浙江工业大学 | 一种基于循环生成对抗网络的多序列磁共振图像配准方法 |
| CN110853082A (zh) * | 2019-10-21 | 2020-02-28 | 科大讯飞股份有限公司 | 医学图像配准方法、装置、电子设备及计算机存储介质 |
| US20200380703A1 (en) * | 2019-05-31 | 2020-12-03 | Mitsubishi Electric Research Laboratories, Inc. | Robust Image Registration For Multiple Rigid Transformed Images |
| CN113963037A (zh) * | 2021-09-29 | 2022-01-21 | 上海联影医疗科技股份有限公司 | 图像配准方法、装置、计算机设备和存储介质 |
-
2022
- 2022-12-23 WO PCT/CN2022/141486 patent/WO2024130705A1/zh not_active Ceased
- 2022-12-23 CN CN202280102252.8A patent/CN120303692A/zh active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109035316A (zh) * | 2018-08-28 | 2018-12-18 | 北京安德医智科技有限公司 | 核磁共振图像序列的配准方法及设备 |
| CN109472817A (zh) * | 2018-09-27 | 2019-03-15 | 浙江工业大学 | 一种基于循环生成对抗网络的多序列磁共振图像配准方法 |
| US20200380703A1 (en) * | 2019-05-31 | 2020-12-03 | Mitsubishi Electric Research Laboratories, Inc. | Robust Image Registration For Multiple Rigid Transformed Images |
| CN110853082A (zh) * | 2019-10-21 | 2020-02-28 | 科大讯飞股份有限公司 | 医学图像配准方法、装置、电子设备及计算机存储介质 |
| CN113963037A (zh) * | 2021-09-29 | 2022-01-21 | 上海联影医疗科技股份有限公司 | 图像配准方法、装置、计算机设备和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120303692A (zh) | 2025-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3939006B1 (en) | Feature point detection | |
| CN112669348B (zh) | 一种鱼体姿势估计和鱼体表型数据测量方法及装置 | |
| CN111582220B (zh) | 一种基于移位图卷积神经网络骨骼点行为识别系统及其识别方法 | |
| CN110084236A (zh) | 一种图像的矫正方法及装置 | |
| CN114972789A (zh) | 一种大尺寸导光板缺陷可视化检测方法、系统及存储介质 | |
| CN110689501A (zh) | 一种畸变校正方法、装置、电子设备及计算机可读存储介质 | |
| CN110992411A (zh) | 图像配准模型的训练方法和装置 | |
| CN109685772B (zh) | 一种基于配准失真表示的无参照立体图像质量评估方法 | |
| CN104867111A (zh) | 一种基于分块模糊核集的非均匀视频盲去模糊方法 | |
| CN106204422B (zh) | 基于区块子图搜索的超大幅影像快速匹配拼接方法 | |
| CN112712518A (zh) | 鱼类计数方法、装置、电子设备及存储介质 | |
| CN109934765B (zh) | 高速相机全景图像拼接方法 | |
| CN106296587A (zh) | 轮胎模具图像的拼接方法 | |
| CN114581340A (zh) | 一种图像校正方法及设备 | |
| CN115294086A (zh) | 医学影像分割方法、分割模型训练方法、介质及电子设备 | |
| CN107895145A (zh) | 基于卷积神经网络结合超高斯去噪估测手指受力的方法 | |
| WO2024065701A1 (zh) | 图像修复方法、装置、设备和非瞬态计算机存储介质 | |
| CN114092862A (zh) | 一种基于最优帧选取的动作评估方法 | |
| CN112883983A (zh) | 特征提取方法、装置和电子系统 | |
| CN111968160A (zh) | 图像匹配方法和存储介质 | |
| CN116757936B (zh) | 图像匹配关系获取方法及其图像拼接方法 | |
| CN117422921A (zh) | 基于Mask RCNN的花椒锈病图像识别方法及系统 | |
| WO2024130705A1 (zh) | 一种图像配准方法、装置、设备和存储介质 | |
| CN115063822B (zh) | 文档检测方法、装置、电子设备及存储介质 | |
| CN115359000B (zh) | 一种无参考图像质量评价方法、装置及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22968992 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202280102252.8 Country of ref document: CN |
|
| WWP | Wipo information: published in national office |
Ref document number: 202280102252.8 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22968992 Country of ref document: EP Kind code of ref document: A1 |
