Magnetic resonance image distortion correction method and device combined with depth camera

Acquisition of three-dimensional models to correct MRI image distortion through depth cameras solves the problems of complexity and high time cost of traditional methods, and achieves efficient and convenient image correction, which is suitable for a variety of equipment and conditions.

CN119850490BActive Publication Date: 2025-09-05INST OF ADVANCED TECH UNIV OF SCI & TECH OF CHINA +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510326584.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-09-05
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

The image distortion correction method in traditional MRI scans is complex in operation, high time cost and difficult to achieve high-precision correction, which affects the image visual quality and clinical diagnosis accuracy.

Method used

Combined with the depth camera, the real three-dimensional model of the head of the object to be tested is obtained, and the MRI image is corrected through point cloud processing and transformation functions, reducing dependence on the calibration model, and improving operational convenience and adaptability.

Benefits of technology

It shortens scan preparation time, improves correction efficiency and adaptability, has better correction effects, is suitable for different devices and scanning conditions, and reduces dependence on fixed reference images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119850490B_ABST
    Figure CN119850490B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for correcting magnetic resonance image distortion in combination with a depth camera, which belongs to the field of image processing. The method for correcting magnetic resonance image distortion in combination with a depth camera includes: processing the depth data corresponding to the object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured; obtaining a first magnetic resonance image corresponding to the object to be measured acquired by the magnetic resonance device in the target scanning space; processing the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model; obtaining a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set; correcting the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured. The method for correcting magnetic resonance image distortion in combination with a depth camera of the present invention has a good correction effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and in particular relates to a method and device for correcting magnetic resonance image distortion in combination with a depth camera. Background Art

[0002] Magnetic Resonance Imaging (MRI), as a non-invasive medical imaging technology, is widely used in clinical diagnosis and research due to its superior soft tissue contrast and multi-directional imaging capabilities. However, during traditional MRI scanning, geometric distortions often occur in the image due to factors such as magnetic field inhomogeneity, insufficient linearity of the gradient magnetic field, or improper system parameter settings. These distortions not only affect the visual quality of the image but may also have a negative impact on the accuracy of clinical diagnosis. Correction methods using geometric correction or machine learning exist in related technologies, but commonly used correction methods are complex to operate and time-consuming, and it is difficult to achieve high-precision correction, resulting in poor correction results. Summary of the Invention

[0003] The present invention aims to address at least one of the technical problems existing in the related art. To this end, the present invention proposes a method and apparatus for correcting magnetic resonance image distortion in conjunction with a depth camera. This method improves operational convenience, shortens scan preparation time, and thus enhances clinical efficiency. It also enhances the adaptability of the correction method to different equipment and scanning conditions, resulting in superior correction results.

[0004] In a first aspect, the present invention provides a method for correcting magnetic resonance image distortion in combination with a depth camera, the method comprising:

[0005] Processing depth data corresponding to the object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured; obtaining a first magnetic resonance image corresponding to the object to be measured acquired by the magnetic resonance device in a target scanning space; the first point cloud model and the first magnetic resonance image are in the same coordinate system;

[0006] processing the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model, wherein a plurality of first control points in the first control point set correspond one-to-one to a plurality of second control points in the second control point set;

[0007] acquiring a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set;

[0008] The first magnetic resonance image is corrected based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured.

[0009] According to the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention, distortion correction is performed by using a real three-dimensional model (first point cloud model) of the head of the object to be measured obtained by the depth camera, without the need for a calibration phantom, thereby improving the convenience of operation, shortening the scan preparation time, and thus improving the efficiency of clinical work; by directly comparing the real three-dimensional model reconstructed by the depth camera, a transformation function between the first magnetic resonance image to be corrected and the real three-dimensional model is obtained, and the first magnetic resonance image is corrected based on the transformation function, which reduces the dependence on a fixed reference image, improves the adaptability of the correction method under different equipment and scanning conditions, and has a good correction effect.

[0010] In an embodiment of the present invention, a method for correcting magnetic resonance image distortion in combination with a depth camera processes depth data corresponding to an object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured, including:

[0011] Acquire first depth data corresponding to the object to be measured collected by the depth camera at multiple angles before the object to be measured enters the target scanning space, and second depth data corresponding to the object to be measured collected by the depth camera in the target scanning space;

[0012] Processing the first depth data using a point cloud processing algorithm to obtain a three-dimensional head model corresponding to the first depth data;

[0013] Align the second depth data with the three-dimensional head model to obtain the first point cloud model.

[0014] In an embodiment of the present invention, a method for correcting magnetic resonance image distortion in combination with a depth camera, aligning the second depth data with the three-dimensional head model to obtain the first point cloud model includes:

[0015] Acquire at least one first feature point in the second depth data;

[0016] Acquire at least one second feature point matching the at least one first feature point from the three-dimensional head model;

[0017] Processing the at least one first feature point and the second feature point using an iterative closest point algorithm to obtain target registration parameters between the second depth data and the three-dimensional head model;

[0018] processing the second depth data based on the target registration parameters to align the second depth data to the three-dimensional head model;

[0019] The first point cloud model is acquired based on the aligned second depth data and the three-dimensional head model.

[0020] In an embodiment of the present invention, a method for correcting magnetic resonance image distortion in combination with a depth camera includes processing the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model, including:

[0021] performing contour extraction processing on the first magnetic resonance image and the first point cloud model respectively to obtain first contour information corresponding to the first magnetic resonance image and second contour information corresponding to the first point cloud model;

[0022] The first control point set and the second control point set are acquired based on first difference information between the first contour information and the second contour information.

[0023] In an embodiment of the present invention, a method for correcting magnetic resonance image distortion in combination with a depth camera, obtaining a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set includes:

[0024] Based on the formula:

[0025]

[0026] Get the target transformation function, where is the target transformation function, and are the affine transformation parameters, The position information of the target control point in the first control point set, is the nonlinear transformation weight, Position information of the control point corresponding to the target control point in the second control point set, is the radial basis function, is an index variable used to traverse all control points in the second control point set, is an integer in the range [1, N], where N is the total number of control points in the second control point set.

[0027] In an embodiment of the present invention, a method for correcting magnetic resonance image distortion in combination with a depth camera, correcting the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured, includes:

[0028] Correcting the first magnetic resonance image based on the target transformation function to obtain an initial magnetic resonance image corresponding to the object to be measured;

[0029] acquiring second difference information between the initial magnetic resonance image and the first point cloud model;

[0030] When the second difference information is smaller than a target difference threshold, the initial magnetic resonance image is determined as the target magnetic resonance image.

[0031] In a second aspect, the present invention provides a magnetic resonance image distortion correction device combined with a depth camera, comprising:

[0032] a first processing module, configured to process depth data corresponding to the object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured; and to obtain a first magnetic resonance image corresponding to the object to be measured acquired by the magnetic resonance device in a target scanning space; wherein the first point cloud model and the first magnetic resonance image are in the same coordinate system;

[0033] a second processing module, configured to process the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model, wherein a plurality of first control points in the first control point set correspond one-to-one to a plurality of second control points in the second control point set;

[0034] a third processing module, configured to obtain a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set;

[0035] The fourth processing module is configured to correct the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured.

[0036] According to an embodiment of the present invention, a magnetic resonance image distortion correction device combined with a depth camera is provided. Distortion correction is performed by using a real three-dimensional model (first point cloud model) of the head of the object to be measured obtained by the depth camera, without the need for a calibration phantom, thereby improving the convenience of operation, shortening the scanning preparation time, and thus improving the efficiency of clinical work; by directly comparing the real three-dimensional model reconstructed by the depth camera, a transformation function between the first magnetic resonance image to be corrected and the real three-dimensional model is obtained, and the first magnetic resonance image is corrected based on the transformation function, which reduces the dependence on a fixed reference image, improves the adaptability of the correction method under different equipment and scanning conditions, and has a good correction effect.

[0037] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for correcting magnetic resonance image distortion in combination with a depth camera as described in the first aspect above is implemented.

[0038] In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the magnetic resonance image distortion correction method combined with a depth camera as described in the first aspect above.

[0039] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the magnetic resonance image distortion correction method combined with a depth camera as described in the first aspect above.

[0040] The above one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects:

[0041] By using the real three-dimensional model of the head of the object to be tested (the first point cloud model) obtained by the depth camera to correct distortion, there is no need to use a calibration model, which improves the convenience of operation, shortens the scanning preparation time, and thus improves the efficiency of clinical work; by directly comparing the real three-dimensional model reconstructed by the depth camera to obtain the transformation function between the first magnetic resonance image to be corrected and the real three-dimensional model, the first magnetic resonance image is corrected based on the transformation function, which reduces the dependence on fixed reference images, improves the adaptability of the correction method under different equipment and scanning conditions, and has a better correction effect.

[0042] Furthermore, by adopting the thin plate spline method in combination with the first point cloud model provided by the depth camera, complex geometric distortions in the first magnetic resonance image can be accurately captured and corrected, with good correction effect.

[0043] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which:

[0045] Figure 1 This is one of the flow charts of the magnetic resonance image distortion correction method combined with a depth camera provided in an embodiment of the present invention;

[0046] Figure 2 This is one of the principle schematic diagrams of the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention;

[0047] Figure 3 This is a second flow chart of a method for correcting magnetic resonance image distortion using a depth camera according to an embodiment of the present invention;

[0048] Figure 4 This is the second principle schematic diagram of the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention;

[0049] Figure 5 This is the third principle schematic diagram of the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention;

[0050] Figure 6 This is the fourth principle diagram of the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention;

[0051] Figure 7 This is the fifth principle diagram of the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention;

[0052] Figure 8 is a schematic diagram of the results of a magnetic resonance image distortion correction method combined with a depth camera provided in an embodiment of the present invention;

[0053] Figure 9 1 is a schematic structural diagram of a magnetic resonance image distortion correction device combined with a depth camera provided in an embodiment of the present invention;

[0054] Figure 10 It is a structural diagram of an electronic device provided by an embodiment of the present invention.

[0055] Reference numerals:

[0056] First processing module 910; second processing module 920; third processing module 930; fourth processing module 940;

[0057] Electronic device 1000; processor 1001; memory 1002. DETAILED DESCRIPTION

[0058] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of the present invention.

[0059] The terms "first," "second," and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present invention can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0060] Below, in conjunction with the accompanying drawings, the magnetic resonance image distortion correction method combined with a depth camera, the magnetic resonance image distortion correction device combined with a depth camera, the electronic device and the readable storage medium provided by the embodiments of the present invention are described in detail through specific embodiments and their application scenarios.

[0061] The magnetic resonance image distortion correction method combined with a depth camera can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.

[0062] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer having a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).

[0063] In the following embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and a joystick.

[0064] An embodiment of the present invention provides a method for correcting magnetic resonance image distortion in combination with a depth camera. The execution subject of the method for correcting magnetic resonance image distortion in combination with a depth camera can be an electronic device or a functional module or functional entity in the electronic device that can implement the method for correcting magnetic resonance image distortion in combination with a depth camera. The electronic devices mentioned in the embodiment of the present invention include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The following uses an electronic device as an example of the execution subject to illustrate the method for correcting magnetic resonance image distortion in combination with a depth camera provided in an embodiment of the present invention.

[0065] like Figure 1 As shown, the magnetic resonance image distortion correction method combined with a depth camera includes: step 110, step 120, step 130 and step 140.

[0066] Step 110: Process the depth data corresponding to the object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured; and obtain a first magnetic resonance image corresponding to the object to be measured acquired by the magnetic resonance device in the target scanning space;

[0067] In this step, the depth camera can obtain the distance information between the object and the camera, which can be used to generate a 3D scene.

[0068] The depth camera emits infrared structured light or laser and receives the signal reflected by the object. It calculates the distance between the object and the sensor based on the time difference or intensity difference of the signal. This distance information is recorded to form depth data.

[0069] Each pixel in the depth data is used to represent the actual distance from the depth camera.

[0070] The depth camera can capture images of the head or face of the object to be measured and obtain the head data or facial data of the object to be measured.

[0071] The head data of the object to be tested may be used to represent the complete head information of the object to be tested, and the facial data may be used to represent part of the head or facial information of the object to be tested.

[0072] The object to be tested is a target entity that needs to undergo magnetic resonance imaging, for example, a human body.

[0073] The first point cloud model is used to represent the complete head information of the object to be measured in the coordinate system corresponding to the magnetic resonance device.

[0074] Before and after the object to be measured enters the target scanning space, a depth camera can be used to capture images of the object to be measured to obtain complete depth data corresponding to the object to be measured and depth data in the coordinate system corresponding to the magnetic resonance device, and then a first point cloud model is obtained based on the two depth data.

[0075] The target scanning space may be a scanning space of a magnetic resonance device.

[0076] like Figure 2 As shown, when it is necessary to perform a magnetic resonance examination on the object to be tested, the object to be tested can lie flat on the testing table, and the depth camera can be set directly above or diagonally above the face of the object to be tested. The present invention is not limited to this. The head of the object to be tested can be completely within the target scanning space of the magnetic resonance equipment, and the head can be wrapped by an open coil.

[0077] The first magnetic resonance image may be a two-dimensional or three-dimensional image, which may be selected based on user needs.

[0078] The first point cloud model and the first magnetic resonance image are in the same coordinate system, that is, the first point cloud model and the first magnetic resonance image may have position coordinate information in a scanning coordinate system corresponding to the magnetic resonance device.

[0079] Step 120: Process the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model;

[0080] In this step, the first control point set includes a plurality of first control points, and the second control point set includes a plurality of second control points.

[0081] The plurality of first control points and the plurality of second control points correspond one to one.

[0082] The first control point may be a key point of a head feature in the first magnetic resonance image, and the second control point may be a key point of a head feature in the first point cloud model. For example, the multiple control points may include key positions of the head, such as the forehead, cheekbones, and chin. Each control point may correspond to position information, such as coordinate information in a magnetic resonance scanning coordinate system.

[0083] Multiple groups of one-to-one corresponding control points can be obtained through automatic matching algorithms (such as nearest neighbor matching or KD tree algorithm, etc.) or manual labeling, which is not limited in the present invention.

[0084] The nearest neighbor matching algorithm can calculate the geometric distance between each control point in the first magnetic resonance image and all control points in the first point cloud model, and select the point with the closest distance as a matching pair;

[0085] The KD tree (K-Dimensional Tree) algorithm is a tree data structure used to organize multidimensional spatial data. It is suitable for searching key data in multidimensional space, such as range search and nearest neighbor search.

[0086] Based on the automatic matching algorithm, users can make manual adjustments. For example, if the automatic matching is inaccurate or ambiguous, users can make adjustments to improve the accuracy and robustness of control point matching.

[0087] In some embodiments, the matching results may be verified to ensure accurate correspondence of the control points in the first magnetic resonance image and the first point cloud model, for example, by calculating the error between the matched control points or by using other verification methods.

[0088] Step 130: Acquire a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set;

[0089] In this step, the matching first control point set and the second control point set can be used to calculate the transformation function from the coordinate system of the first magnetic resonance image to the coordinate system of the first point cloud model. The transformation function can be a rigid transformation (involving only rotation and translation), or it can be an affine transformation (including scaling, rotation and translation), or it can be a non-rigid transformation (including local deformation, etc.).

[0090] The transformation parameters can be estimated by minimizing the error between sets of control points using, for example, the least squares method or the Iterative Closest Point (ICP) algorithm.

[0091] For example, the first magnetic resonance image can be transformed according to the calculated initial transformation parameters, and the degree of alignment between the transformed first magnetic resonance image and the first point cloud model can be evaluated. If the degree of alignment is not ideal, the parameters of the transformation function can be adjusted through an iterative optimization process until the alignment requirements are met.

[0092] The quality of the transformation function can be assessed using quantitative metrics such as the root mean square error or Hausdorff distance.

[0093] Step 140 : Correct the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured.

[0094] The target transformation function may be applied to the pixel or voxel coordinates of the first magnetic resonance image, for example, the position of each pixel or voxel may be transformed from the coordinate system of the first magnetic resonance image to the coordinate system of the first point cloud model.

[0095] When the target transformation function is a rigid transformation, the coordinates of the first magnetic resonance image may be directly transformed. When the target transformation function is a non-rigid transformation, an interpolation method may be used to recalculate pixel values ​​in the transformed image.

[0096] The transformation may result in the new coordinates not corresponding to integer pixel positions in the original image. Image resampling can be performed. For example, an interpolation algorithm (such as nearest neighbor interpolation, bilinear interpolation, or cubic interpolation) can be used to estimate the pixel values ​​at non-integer coordinates in the transformed image.

[0097] The transformation may cause part of the image content to exceed the boundaries of the original image. You can choose to crop the parts that exceed the boundaries or use specific boundary conditions (such as mirror boundary conditions or periodic boundary conditions) to fill these areas.

[0098] The quality of the rectified MRI images can be assessed using quantitative metrics such as image registration error or anatomical consistency, and a visual inspection can be performed to ensure that the rectified images are anatomically consistent with the first point cloud model.

[0099] According to the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention, distortion correction is performed by using a real three-dimensional model (first point cloud model) of the head of the object to be measured obtained by the depth camera, without the need for a calibration phantom, thereby improving the convenience of operation, shortening the scan preparation time, and thus improving the efficiency of clinical work; by directly comparing the real three-dimensional model reconstructed by the depth camera, a transformation function between the first magnetic resonance image to be corrected and the real three-dimensional model is obtained, and the first magnetic resonance image is corrected based on the transformation function, which reduces the dependence on a fixed reference image, improves the adaptability of the correction method under different equipment and scanning conditions, and has a good correction effect.

[0100] In some embodiments, processing the depth data corresponding to the object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured may include:

[0101] Obtaining first depth data corresponding to the object to be measured collected by the depth camera at multiple angles before the object to be measured enters the target scanning space, and second depth data corresponding to the object to be measured collected by the depth camera in the target scanning space;

[0102] Processing the first depth data using a point cloud processing algorithm to obtain a three-dimensional head model corresponding to the first depth data;

[0103] The second depth data and the three-dimensional head model are aligned to obtain a first point cloud model.

[0104] In this embodiment, Figure 4 As shown, before the object to be measured enters the target scanning space, a depth camera can be used to collect depth data of the object to be measured from multiple angles, namely, first depth data. Multi-angle collection helps to capture comprehensive information of the object to be measured to reconstruct a three-dimensional model of the head of the object to be measured.

[0105] After the subject to be tested enters the target scanning space, the depth camera can be used again to collect depth data, i.e., the second depth data. When the subject to be tested is lying in the magnetic resonance scanning space, the subject's head is usually wrapped by an open coil, and the depth camera can obtain depth data of part of the face.

[0106] A point cloud processing algorithm, such as the PCL (Point Cloud Library) library or the Open3D library, can be used to process the first depth data to construct a three-dimensional model based on the depth information. During the three-dimensional model reconstruction process, a noise filtering algorithm can be applied to remove noise points in the point cloud. The point clouds scanned from different angles can be aligned to form a complete head model.

[0107] Surface reconstruction algorithms (such as Poisson surface reconstruction or Delaunay triangulation) can be used to convert point cloud data into a three-dimensional mesh model. The reconstructed three-dimensional model can be smoothed to reduce the unevenness and roughness of the model surface. For example, this can be achieved using algorithms such as Laplace smoothing or mesh simplification.

[0108] The second depth data and the three-dimensional head model may be converted into a scanning coordinate system corresponding to the magnetic resonance device, and the second depth data and the three-dimensional head model may be aligned in the same coordinate system.

[0109] For example, feature points of more prominent parts of the face can be extracted from the second depth data, and corresponding feature points can be extracted on the three-dimensional head model at the same time. Then, a feature matching algorithm (such as the ICP algorithm or the RANSAC (Random Sample Consensus) algorithm) can be used to match the feature points in the second depth data with the feature points on the three-dimensional head model. Then, based on the result of the feature matching, the second depth data can be translated, rotated, scaled, and other operations can be performed to align it with the three-dimensional head model in space.

[0110] After alignment, the second depth data may be fused with the three-dimensional head model to obtain a first point cloud model having accurate position coordinate information in a scanning coordinate system of the magnetic resonance device.

[0111] In some embodiments, aligning the second depth data with the three-dimensional head model to obtain the first point cloud model may include:

[0112] Acquire at least one first feature point in the second depth data;

[0113] Acquire at least one second feature point that matches the at least one first feature point from the three-dimensional head model;

[0114] Processing the at least one first feature point and the second feature point using an iterative closest point algorithm to obtain target registration parameters between the second depth data and the three-dimensional head model;

[0115] processing the second depth data based on the target registration parameter to align the second depth data to the three-dimensional head model;

[0116] A first point cloud model is obtained based on the aligned second depth data and the three-dimensional head model.

[0117] In this embodiment, the first feature points are significant and stable feature points in the second depth data. For example, the at least one first feature point may include key points of key parts such as facial contour, glasses, nose and mouth.

[0118] The matched feature points can be processed using an iterative closest point algorithm, which can optimize the alignment of two point clouds by iteratively finding the closest point pairs and minimizing the distance between them.

[0119] After multiple iterations, the iterative closest point algorithm can output a transformation matrix (including rotation and translation parameters), namely the target registration parameters, which can then be used to transform the second depth data so that it is spatially aligned with the three-dimensional head model.

[0120] like Figure 5 As shown, in the actual implementation process, the key feature points (first feature points) in the partial point cloud (i.e., the second depth data) can be extracted first, and the corresponding second feature points can be found in the complete three-dimensional head model. By minimizing the distance error between the two, the alignment parameters are gradually optimized, and finally the seamless fusion of the two parts of the point cloud is achieved. After the alignment is completed, the generated complete head point cloud model (first point cloud model) will have accurate position coordinates in the coordinate system scanned by the magnetic resonance equipment, so that the subsequent image processing steps can be performed in the same coordinate system.

[0121] like Figure 6 As shown, in some embodiments, step 120 may include:

[0122] Performing contour extraction processing on the first magnetic resonance image and the first point cloud model respectively to obtain first contour information corresponding to the first magnetic resonance image and second contour information corresponding to the first point cloud model;

[0123] A first control point set and a second control point set are acquired based on first difference information between the first contour information and the second contour information.

[0124] In this embodiment, for the first magnetic resonance image, an edge detection algorithm (such as Canny edge detection or Sobel operator, etc.) can be applied to extract the outer contour of the head, that is, the first contour information, and the two-dimensional contour point set can be mapped to the three-dimensional space as needed for comparison with the three-dimensional first point cloud model.

[0125] For the first point cloud model, a grid-based edge detection algorithm or a voxel-based surface extraction method can be used to obtain the outer contour point set of the head, that is, the second contour information.

[0126] For example, an isosurface extraction algorithm (Marching Cubes) can be used to extract a surface mesh from the first point cloud model, and then the outer contour boundary can be identified using edge detection technology.

[0127] By comparing the first contour information and the second contour information, the geometric distortion region in the first magnetic resonance image can be identified and located, and according to the comparison result, a group of corresponding control points can be selected.

[0128] In some embodiments, step 130 may include:

[0129] The thin plate spline method is used to process the first control point set and the second control point set to obtain the target transformation function.

[0130] In this embodiment, a thin plate splines (TPS) method can calculate a transformation function according to a selected set of control points. The TPS transformation function includes an affine transformation part and a nonlinear transformation part, and can effectively capture and correct complex geometric distortions.

[0131] like Figure 7 As shown, the optimal TPS transformation parameters can be determined based on the source control point set (first control point set) and the target control point set (second control point set) by minimizing the transformation energy function.

[0132] In some embodiments, step 130 may include:

[0133] Based on the formula:

[0134]

[0135] Get the target transformation function.

[0136] In this embodiment, is the target transformation function, and are the affine transformation parameters, is the location information of the target control point in the first control point set, is the nonlinear transformation weight, is the control point corresponding to the target control point in the second control point set ( control points), is the radial basis function, is the index variable used to traverse all control points in the second control point set, is an integer in the range [1, N], where N is the total number of control points in the second control point set.

[0137] Among them, the radial basis function is usually: , for and The Euclidean distance between them.

[0138] In some embodiments, the weight parameters in the TPS transformation function may be dynamically adjusted according to the importance of different control points to enhance the flexibility and accuracy of the transformation effect.

[0139] In some embodiments, parallel computing or graphics processing unit (GPU) acceleration technology may be used to reduce computing time and improve the efficiency of transformation calculations.

[0140] According to the magnetic resonance image distortion correction method combined with a depth camera provided in an embodiment of the present invention, by adopting a thin plate spline method combined with a first point cloud model provided by the depth camera, it is possible to accurately capture and correct complex geometric distortions in the first magnetic resonance image, and the correction effect is good.

[0141] In some embodiments, step 140 may include:

[0142] Correcting the first magnetic resonance image based on the target transformation function to obtain an initial magnetic resonance image corresponding to the object to be measured;

[0143] acquiring second difference information between the initial magnetic resonance image and the first point cloud model;

[0144] When the second difference information is smaller than the target difference threshold, the initial magnetic resonance image is determined as the target magnetic resonance image.

[0145] In this embodiment, applying the target transformation function to the first magnetic resonance image can minimize the difference between the first magnetic resonance image and the first point cloud model.

[0146] The initial magnetic resonance image is an image that is close to the first point cloud model after the first magnetic resonance image is corrected.

[0147] Second difference information between the initial magnetic resonance image and the first point cloud model may be compared, and the second difference information may include a degree of spatial alignment, shape similarity, and a degree of feature point matching between the image and the point cloud.

[0148] The second difference information may be a quantitative value, for example, an error value between the initial magnetic resonance image and the first point cloud model. The target difference threshold may be user-defined, for example, the target difference threshold may be 5%, or 2%, or may be other values, which are not limited in the present invention.

[0149] For example, a quantitative evaluation method may be used to calculate a mean square error (MSE) or a mean absolute error (MAE) between the initial magnetic resonance image and the first point cloud model to obtain second difference information.

[0150] When the second difference information is less than the target difference threshold, it can be determined that the initial magnetic resonance image is sufficiently close to the first point cloud model, and the initial magnetic resonance image can be determined as the target magnetic resonance image.

[0151] In the case that the second difference information is greater than or equal to the target difference threshold, the target transformation function may be readjusted and the correction process may be repeated until the condition is met.

[0152] like Figure 8 A schematic diagram comparing the first magnetic resonance image before and after correction is shown. Tests by the inventors show that using the magnetic resonance image distortion correction method combined with a depth camera provided by an embodiment of the present invention to correct the first magnetic resonance image, the mean square error between the target magnetic resonance image obtained and the first point cloud model is reduced by approximately 30% compared to conventional calibration phantom-based methods. This present invention can more effectively reduce image distortion and improve image geometric consistency.

[0153] The calculation time of the correction process is shortened by about 40% compared with traditional image registration and deep learning methods, which can meet the demand for fast image processing in clinical diagnosis, optimize system resource utilization, and reduce dependence on high-performance computing equipment.

[0154] Furthermore, the present invention demonstrates consistent correction results on MRI devices of different models and brands, with a stable error range of less than 1 mm. It is applicable to different devices and scanning conditions, has a wide range of application scenarios, and has high reliability and consistency of correction results.

[0155] The embodiment of the present invention provides a method for correcting magnetic resonance image distortion in combination with a depth camera. The corrected magnetic resonance image can more realistically reflect the head structure of the subject to be tested, helping medical workers to more accurately identify and analyze lesions in the image. It also provides more reliable reference data for areas that require precise preoperative planning, reducing surgical risks and improving the safety and effectiveness of treatment.

[0156] An embodiment of the present invention further provides a magnetic resonance image distortion correction system combined with a depth camera.

[0157] The magnetic resonance image distortion correction system combined with a depth camera includes: a depth camera module, a magnetic resonance imaging module, an image processing module, a TPS conversion module, and a display and verification module.

[0158] In this embodiment, Figure 3As shown, the subject is in the scanning room, and the depth camera module can use a high-precision depth camera to perform a multi-angle depth scan of the subject's head to obtain three-dimensional depth data (first depth data). The first depth data can be converted into a high-precision three-dimensional head model using a point cloud processing algorithm.

[0159] The Magnetic Resonance Imaging (MRI) module uses an MRI device (magnetic resonance imaging) to scan the head of the same subject, acquiring geometrically distorted two-dimensional or three-dimensional MRI images (first MRI images). These acquired MRI images are then transmitted via an interface to the Image Processing Module, where they undergo preprocessing, including denoising and normalization, to improve image quality and consistency.

[0160] In the image processing module, since the human head is wrapped in an open coil when lying in the MRI scanning space, the depth camera can only capture a portion of the facial point cloud image. This partial point cloud must first be aligned with the complete point cloud reconstructed in the previous step to obtain the position coordinates of the complete head point cloud under MRI. In this way, the MRI image and the complete head point cloud image can be displayed in the same coordinate system.

[0161] Then, a grid-based edge detection algorithm can be used to extract the outer contour point set from the three-dimensional head model reconstructed by the depth camera, and the Canny edge detection algorithm can be used to process the MRI image to extract the outer contour of the head and map it to the three-dimensional space through stereo matching or three-dimensional reconstruction methods. The system can select the corresponding control point set to make the first control point set and the second control point set accurately correspond in the MRI image and the depth camera model.

[0162] The TPS transformation module can calculate the transformation function based on the selected control point set using the thin plate spline (TPS) method. After the calculation is completed, the target transformation function is applied to the original MRI image, and the geometric mapping from the distorted image to the true model is achieved through the bilinear interpolation algorithm to generate a corrected high-precision MRI image (target magnetic resonance image).

[0163] The corrected image is verified through the display and verification module. The MRI images before and after correction can be superimposed and displayed with the first point cloud model reconstructed by the depth camera through visual comparison to intuitively check the correction effect of the geometric distortion. The system can then use quantitative evaluation methods, such as calculating the mean square error (MSE) and mean absolute error (MAE), to evaluate the accuracy and robustness of the correction results to ensure the geometric accuracy and reliability of the corrected MRI images in clinical applications.

[0164] In this invention, a multimodal data fusion method is used to integrate the multi-view depth data from the depth camera with the MRI image. The depth data acquired through multi-angle scanning is aligned and fused using the ICP point cloud fusion algorithm to generate a more complete and accurate three-dimensional head model. The synchronous optimization algorithm in the image processing module ensures the spatial and temporal consistency of the MRI image and the three-dimensional model. By combining rigid and non-rigid registration, the accuracy of multimodal data fusion is improved.

[0165] The system can adopt a multi-dimensional correction result verification method. First, the MRI images before and after correction can be superimposed and displayed with the 3D model reconstructed by the depth camera through the visual comparison function to visually check the correction effect of geometric distortion, such as Figure 8 The diagram below shows a comparison of MRI images before and after correction, clearly demonstrating the consistency of the geometric structure after distortion correction.

[0166] Secondly, the system uses a quantitative error assessment module to calculate geometric error metrics between the image and the 3D model before and after correction, such as mean squared error (MSE), mean absolute error (MAE), and Hausdorff distance. Statistical analysis verifies the superiority of the present method in these error metrics. For example, in experiments, the MSE of images corrected using the present method was reduced by approximately 30%, the MAE by 25%, and the Hausdorff distance by 20%, compared to traditional methods, thereby improving correction accuracy.

[0167] Finally, the system was tested in a real-world clinical setting, with doctors performing diagnostic tests on MRI images corrected using the method. Data on diagnostic accuracy and time efficiency were collected. The test results showed that the corrected images helped doctors more accurately identify and locate lesions, shortening diagnostic time by approximately 15% and improving diagnostic accuracy by approximately 20%. These data validate the practicality and effectiveness of the method provided by the present invention in clinical applications.

[0168] The following describes the magnetic resonance image distortion correction device combined with a depth camera provided by the present invention. The magnetic resonance image distortion correction device combined with a depth camera described below and the magnetic resonance image distortion correction method combined with a depth camera described above can be referenced to each other.

[0169] The method for correcting magnetic resonance image distortion in combination with a depth camera provided in an embodiment of the present invention may be performed by a magnetic resonance image distortion correction device in combination with a depth camera. In this embodiment of the present invention, the magnetic resonance image distortion correction device in combination with a depth camera performs the method for correcting magnetic resonance image distortion in combination with a depth camera as an example to illustrate the magnetic resonance image distortion correction device in combination with a depth camera provided in an embodiment of the present invention.

[0170] An embodiment of the present invention further provides a magnetic resonance image distortion correction device combined with a depth camera.

[0171] like Figure 9 As shown, the magnetic resonance image distortion correction device combined with a depth camera includes: a first processing module 910, a second processing module 920, a third processing module 930 and a fourth processing module 940.

[0172] A first processing module 910 is configured to process depth data corresponding to the object to be measured acquired by the depth camera to obtain a first point cloud model corresponding to the object to be measured; and to obtain a first magnetic resonance image corresponding to the object to be measured acquired by the magnetic resonance device within the target scanning space; the first point cloud model and the first magnetic resonance image are in the same coordinate system;

[0173] A second processing module 920 is configured to process the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model, wherein the plurality of first control points in the first control point set correspond one-to-one to the plurality of second control points in the second control point set;

[0174] A third processing module 930 is configured to obtain a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set;

[0175] The fourth processing module 940 is configured to correct the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured.

[0176] According to an embodiment of the present invention, a magnetic resonance image distortion correction device combined with a depth camera is provided. Distortion correction is performed by using a real three-dimensional model (first point cloud model) of the head of the object to be measured obtained by the depth camera, without the need for a calibration phantom, thereby improving the convenience of operation, shortening the scanning preparation time, and thus improving the efficiency of clinical work; by directly comparing the real three-dimensional model reconstructed by the depth camera, a transformation function between the first magnetic resonance image to be corrected and the real three-dimensional model is obtained, and the first magnetic resonance image is corrected based on the transformation function, which reduces the dependence on a fixed reference image, improves the adaptability of the correction method under different equipment and scanning conditions, and has a good correction effect.

[0177] In some embodiments, the first processing module 910 may also be configured to:

[0178] Obtaining first depth data corresponding to the object to be measured collected by the depth camera at multiple angles before the object to be measured enters the target scanning space, and second depth data corresponding to the object to be measured collected by the depth camera in the target scanning space;

[0179] Processing the first depth data using a point cloud processing algorithm to obtain a three-dimensional head model corresponding to the first depth data;

[0180] The second depth data and the three-dimensional head model are aligned to obtain a first point cloud model.

[0181] In some embodiments, the first processing module 910 may also be configured to:

[0182] Acquire at least one first feature point in the second depth data;

[0183] Acquire at least one second feature point that matches the at least one first feature point from the three-dimensional head model;

[0184] Processing the at least one first feature point and the second feature point using an iterative closest point algorithm to obtain target registration parameters between the second depth data and the three-dimensional head model;

[0185] processing the second depth data based on the target registration parameter to align the second depth data to the three-dimensional head model;

[0186] A first point cloud model is obtained based on the aligned second depth data and the three-dimensional head model.

[0187] In some embodiments, the second processing module 920 may also be configured to:

[0188] Performing contour extraction processing on the first magnetic resonance image and the first point cloud model respectively to obtain first contour information corresponding to the first magnetic resonance image and second contour information corresponding to the first point cloud model;

[0189] A first control point set and a second control point set are acquired based on first difference information between the first contour information and the second contour information.

[0190] In some embodiments, the third processing module 930 may also be configured to:

[0191] Based on the formula:

[0192]

[0193] Get the target transformation function, where is the target transformation function, and are the affine transformation parameters, is the location information of the target control point in the first control point set, is the nonlinear transformation weight, is the position information of the control point corresponding to the target control point in the second control point set, is the radial basis function, is the index variable used to traverse all control points in the second control point set, is an integer in the range [1, N], where N is the total number of control points in the second control point set.

[0194] In some embodiments, the fourth processing module 940 may also be configured to:

[0195] Correcting the first magnetic resonance image based on the target transformation function to obtain an initial magnetic resonance image corresponding to the object to be measured;

[0196] acquiring second difference information between the initial magnetic resonance image and the first point cloud model;

[0197] When the second difference information is smaller than the target difference threshold, the initial magnetic resonance image is determined as the target magnetic resonance image.

[0198] The magnetic resonance image distortion correction device combined with a depth camera in the embodiments of the present invention can be an electronic device or a component of an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other device other than a terminal. Exemplary electronic devices include mobile phones, tablet computers, laptop computers, PDAs, in-vehicle electronic devices, mobile internet devices (MIDs), augmented reality (AR) / virtual reality (VR) devices, robots, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs). Furthermore, the electronic device can be a server, network attached storage (NAS), personal computer (PC), television, teller machine, or self-service machine, etc., without specific limitations in the embodiments of the present invention.

[0199] The magnetic resonance image distortion correction device combined with a depth camera in the embodiments of the present invention may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present invention.

[0200] The magnetic resonance image distortion correction device combined with a depth camera provided by the embodiment of the present invention can achieve Figures 1 to 8 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0201] In some embodiments, as Figure 10 As shown, an embodiment of the present invention further provides an electronic device 1000, including a processor 1001, a memory 1002, and a computer program stored in the memory 1002 and executable on the processor 1001. When the program is executed by the processor 1001, each process of the embodiment of the magnetic resonance image distortion correction method combined with the depth camera is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0202] It should be noted that the electronic devices in the embodiments of the present invention include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0203] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the various processes of the embodiment of the magnetic resonance image distortion correction method combined with a depth camera, and can achieve the same technical effect. To avoid repetition, they are not described here.

[0204] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to perform the various processes of the above-mentioned embodiment of the magnetic resonance image distortion correction method combined with a depth camera, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0205] On the other hand, an embodiment of the present invention further provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned embodiment of the magnetic resonance image distortion correction method combined with a depth camera, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0206] It should be understood that the chip mentioned in the embodiment of the present invention can also be called a system-on-chip, a system-on-chip, a chip system, or a system-on-chip chip, etc.

[0207] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0208] Through the description of the above embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the relevant technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for correcting magnetic resonance image distortion using a depth camera, characterized in that: include: Processing the depth data corresponding to the object to be measured collected by the depth camera to obtain a first point cloud model corresponding to the object to be measured; Acquiring a first magnetic resonance image corresponding to the object to be measured, acquired by a magnetic resonance device in a target scanning space; The first point cloud model and the first magnetic resonance image are in the same coordinate system; processing the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model, wherein a plurality of first control points in the first control point set correspond one-to-one to a plurality of second control points in the second control point set; acquiring a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set; The first magnetic resonance image is corrected based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured.

2. The method for correcting magnetic resonance image distortion in combination with a depth camera according to claim 1, wherein: The processing of the depth data corresponding to the object to be measured collected by the depth camera to obtain a first point cloud model corresponding to the object to be measured includes: Acquire first depth data corresponding to the object to be measured collected by the depth camera at multiple angles before the object to be measured enters the target scanning space, and second depth data corresponding to the object to be measured collected by the depth camera in the target scanning space; Processing the first depth data using a point cloud processing algorithm to obtain a three-dimensional head model corresponding to the first depth data; Align the second depth data with the three-dimensional head model to obtain the first point cloud model.

3. The method for correcting magnetic resonance image distortion in combination with a depth camera according to claim 2, wherein: The aligning the second depth data with the three-dimensional head model to obtain the first point cloud model includes: Acquire at least one first feature point in the second depth data; Acquire at least one second feature point matching the at least one first feature point from the three-dimensional head model; Processing the at least one first feature point and the second feature point using an iterative closest point algorithm to obtain target registration parameters between the second depth data and the three-dimensional head model; processing the second depth data based on the target registration parameters to align the second depth data to the three-dimensional head model; The first point cloud model is acquired based on the aligned second depth data and the three-dimensional head model.

4. The method for correcting magnetic resonance image distortion in combination with a depth camera according to any one of claims 1 to 3, wherein: The processing of the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model includes: performing contour extraction processing on the first magnetic resonance image and the first point cloud model respectively to obtain first contour information corresponding to the first magnetic resonance image and second contour information corresponding to the first point cloud model; The first control point set and the second control point set are acquired based on first difference information between the first contour information and the second contour information.

5. The method for correcting magnetic resonance image distortion in combination with a depth camera according to any one of claims 1 to 3, wherein: The acquiring, based on the first control point set and the second control point set, a target transformation function between the first magnetic resonance image and the first point cloud model, comprises: Based on the formula: Get the target transformation function, where is the target transformation function, and are the affine transformation parameters, The position information of the target control point in the first control point set, is the nonlinear transformation weight, Position information of the control point corresponding to the target control point in the second control point set, is the radial basis function, is an index variable used to traverse all control points in the second control point set, is an integer in the range [1, N], where N is the total number of control points in the second control point set.

6. The method for correcting magnetic resonance image distortion in combination with a depth camera according to any one of claims 1 to 3, wherein: Correcting the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured includes: Correcting the first magnetic resonance image based on the target transformation function to obtain an initial magnetic resonance image corresponding to the object to be measured; acquiring second difference information between the initial magnetic resonance image and the first point cloud model; When the second difference information is smaller than a target difference threshold, the initial magnetic resonance image is determined as the target magnetic resonance image.

7. A magnetic resonance image distortion correction device combined with a depth camera, characterized in that: include: A first processing module is used to process the depth data corresponding to the object to be measured collected by the depth camera to obtain a first point cloud model corresponding to the object to be measured; Acquiring a first magnetic resonance image corresponding to the object to be measured, acquired by a magnetic resonance device in a target scanning space; The first point cloud model and the first magnetic resonance image are in the same coordinate system; a second processing module, configured to process the first magnetic resonance image and the first point cloud model to obtain a first control point set corresponding to the first magnetic resonance image and a second control point set corresponding to the first point cloud model, wherein a plurality of first control points in the first control point set correspond one-to-one to a plurality of second control points in the second control point set; a third processing module, configured to obtain a target transformation function between the first magnetic resonance image and the first point cloud model based on the first control point set and the second control point set; The fourth processing module is configured to correct the first magnetic resonance image based on the target transformation function to obtain a target magnetic resonance image corresponding to the object to be measured.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for correcting magnetic resonance image distortion combined with a depth camera according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for correcting magnetic resonance image distortion in combination with a depth camera according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for correcting magnetic resonance image distortion in combination with a depth camera according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Magnetic resonance image distortion correction method, device, equipment and medium

    CN118799235A

  • Intraoperative medical imaging method and system

    WO2018000071A1