WO2020133527A1 - Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium - Google Patents

Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium Download PDF

Info

Publication number
WO2020133527A1
WO2020133527A1 PCT/CN2018/125855 CN2018125855W WO2020133527A1 WO 2020133527 A1 WO2020133527 A1 WO 2020133527A1 CN 2018125855 W CN2018125855 W CN 2018125855W WO 2020133527 A1 WO2020133527 A1 WO 2020133527A1
Authority
WO
WIPO (PCT)
Prior art keywords
solution
pixel
processed
phase factor
water
Prior art date
Application number
PCT/CN2018/125855
Other languages
French (fr)
Chinese (zh)
Inventor
郑海荣
邹超
刘新
彭浩
程传力
贺强
Original Assignee
深圳先进技术研究院
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳先进技术研究院 filed Critical 深圳先进技术研究院
Priority to PCT/CN2018/125855 priority Critical patent/WO2020133527A1/en
Publication of WO2020133527A1 publication Critical patent/WO2020133527A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/05Detecting, measuring or recording for diagnosis by means of electric currents or magnetic fields; Measuring using microwaves or radio waves 
    • A61B5/055Detecting, measuring or recording for diagnosis by means of electric currents or magnetic fields; Measuring using microwaves or radio waves  involving electronic [EMR] or nuclear [NMR] magnetic resonance, e.g. magnetic resonance imaging

Definitions

  • the present disclosure relates to the technical field of image processing, for example, to a method, device, device and storage medium for separating water and fat based on magnetic resonance images.
  • the highlighted fat signal will affect the diagnosis of the lesion, so it is often necessary to use fat compression technology.
  • the methods in the related art have various problems: the methods of fat saturation and water excitation will fail at the place where the field displacement is large; the method of inversion recovery will greatly reduce the signal-to-noise ratio of the image.
  • fat signals are also an important diagnostic basis for heart and lung disease detection. Therefore, accurate fat quantification and separation of water and fat are crucial.
  • the most commonly used in water-fat separation is the chemical shift-coded imaging method.
  • the multi-echo-based chemical shift coding imaging method uses the difference in the resonance frequency of the hydrogen atoms in the water lipid due to the chemical environment, and collects signals at different echo times to make the difference between the water lipid phase; by least squares In the way of fitting, the signal intensity of water and fat is calculated to complete the separation of water and fat.
  • this method requires accurate estimation of the displacement of the main magnetic field B 0 .
  • the water-fat separation method in the related art is prone to the phenomenon of water-fat separation when dealing with the object space discontinuity or the area with low signal-to-noise ratio. Therefore, there is an urgent need for a fast and stable field image estimation method, especially for the case of low image signal-to-noise ratio, on the basis of which the correct estimation of water and fat components is completed.
  • Embodiments of the present disclosure provide a method, device, equipment, and storage medium for separating water and fat based on magnetic resonance images, which can quickly and stably estimate a field map, and complete correct estimation of water and fat components based on this.
  • the disclosed embodiments of the present disclosure provide a water-fat separation method based on magnetic resonance images, including:
  • phase factor candidate solutions include the global optimal solution and the inverse solution corresponding to the global optimal solution
  • the water-fat conversion area is determined, and the target phase factor solution for each pixel to be processed in the water-fat conversion area is calculated;
  • the water map and fat map in the magnetic resonance image are extracted.
  • An embodiment of the present disclosure also provides a water-fat separation device based on a magnetic resonance image, which may include:
  • the solution set division module is set to acquire each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution to the first A solution set and a second solution set, where the candidate solution of the phase factor includes a global optimal solution and a partial and inverse solution corresponding to the global optimal solution;
  • the water-fat conversion area determination module is set to determine the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, and calculate each pixel to be processed in the water-fat conversion area The target phase factor solution;
  • the target phase factor solution determination module is set to determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the target phase factor solution of each pixel to be processed in the water-fat conversion area and the water-fat conversion area ;
  • the water-fat image separation module is configured to de-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image. .
  • An embodiment of the present disclosure also provides a device, which may include:
  • One or more processors are One or more processors;
  • Memory set to store one or more programs
  • the one or more processors When one or more programs are executed by one or more processors, the one or more processors implement the water-fat separation method based on the magnetic resonance image provided by any embodiment of the present disclosure.
  • An embodiment of the present disclosure also provides a computer-readable storage medium that stores a computer program, which when executed by a processor implements the water-fat separation method based on the magnetic resonance image provided by any embodiment of the present disclosure.
  • the calculated phase factor candidate solution for each pixel to be processed in the magnetic resonance image is calculated, and the Multiple phase factor solutions are divided into the first solution set and the second solution set respectively to simplify the calculation; then, based on the phase factor solutions corresponding to each pixel to be processed in the first solution set and the second solution set, the magnetic Resonate the water-fat conversion area in the image, and calculate the target phase factor solution for each pixel to be processed in the water-fat conversion area; further, the water-fat conversion area is used as the known area, according to the known area and the water-fat conversion area
  • the target phase factor solution of each pixel to be processed in each of the remaining pixels to be processed determines the target phase factor solution of each pixel to be processed among the remaining pixels to be processed, and the target phase factor solution of the unknown area is solved according to the known area; finally, according to the magnetic resonance
  • the target phase factor of each pixel to be processed in the image is used to extract the water map and
  • FIG. 1 is a flow chart of a method for separating water and fat based on magnetic resonance images in an embodiment
  • FIG. 2 is a flowchart of another method for separating water and fat based on magnetic resonance images in an embodiment
  • 2A is a schematic diagram of neighboring pixels of pixels to be processed in a water-fat separation method for magnetic resonance images according to an embodiment
  • FIG. 3 is a flowchart of another method for separating water and fat based on magnetic resonance images in an embodiment
  • FIG. 3A is a schematic diagram of an edge pixel pair of a known area and a sub-area to be solved of a water-fat separation method of a magnetic resonance image in an embodiment
  • FIG. 4 is a flowchart of another method for separating water and fat based on magnetic resonance images in an embodiment
  • 4A is a schematic diagram of a result of performing water-fat separation on an abdomen image of a human body in a water-fat separation method based on the magnetic resonance image provided in this embodiment;
  • FIG. 5 is a structural diagram of a water-fat separation device based on a magnetic resonance image in an embodiment
  • FIG. 6 is a schematic structural diagram of a device in an embodiment.
  • the basic principle of water-fat separation may be based on the ambiguity of water-fat signals in chemical shift coding imaging, for example, for a certain
  • the signal collected by each pixel can be expressed as:
  • the water-fat chemical shift signal model can be expressed as follows:
  • S(TE n ) is the complex signal collected at the echo time TE n
  • ⁇ w is the intensity of the water signal
  • ⁇ f is the intensity of the fat signal
  • f F is the chemical shift frequency
  • is the main magnetic field shift ie Field displacement.
  • the multi-peak model and Factors of the decay process in order to obtain the ratio of fat signals more accurately, the multi-peak model and Factors of the decay process.
  • the field displacement obtained from the model (2) can be used as the initial value of the iteration, and the multi-peak and The signal model (3) replaces the model (2) to solve the nonlinear least squares fit:
  • ⁇ p is the relative amplitude of the p-th fat peak with chemical shift f F, p , Pending Attenuation value.
  • n 1, 2, ..., N, versus Water and fat value.
  • phase factor solution p B can be introduced instead of the field displacement ⁇ .
  • the phase factor solution p B can be expressed by the following formula:
  • the minimum fitting error R(p B ) of the phase factor solution p B can be expressed by the following formula:
  • a + (p B ) is the generalized inverse of the matrix A(p B ). That is, according to the formula (4) obtained minimum fitting error R (p B) can be determined with a minimum fitting error determined R (p B) corresponding to the phase factor solution p B.
  • the field displacement ⁇ can be determined according to the phase factor solution p B , and then the water-fat signal is separated on the basis of the known field displacement ⁇ . It can be seen from this that it is very important to find the optimal solution of the phase factor solution p B.
  • the optimization method of formula (6) may have at least one local minimum (for example, there may be two local minimums), that is, there is at least one minimum fitting error R(p B ). Therefore, the above local The minimum value is selected to make the phase factor solution p B which can make the whole field displacement map the smoothest.
  • FIG. 1 is a flowchart of a method for separating water and fat based on a magnetic resonance image in an embodiment.
  • This embodiment can be applied to the case of water-fat separation based on a magnetic resonance image, for example, the case of water-fat separation for a magnetic resonance image with a low signal-to-noise ratio.
  • the method may be performed by a water-fat separation device based on a magnetic resonance image provided by an embodiment of the present disclosure, and the device may be implemented by software and/or hardware. Referring to FIG. 1, the method of this embodiment includes the following steps.
  • phase factor candidate solution includes a global optimal solution and a divided and inverse solution corresponding to the global optimal solution.
  • the pixels to be processed may be all pixels in the magnetic resonance image, or may be pixels selected from all the pixels in the magnetic resonance image that satisfy the preset condition.
  • the pixels satisfying the preset conditions may be those pixels that cannot determine whether it is a water component or a fat component based directly on the pixel based on the preset determination method.
  • the brightness value of each pixel in the magnetic resonance image may be acquired, and the pixel to be processed of the magnetic resonance image may be determined according to the brightness value.
  • determining the pixels to be processed of the magnetic resonance image according to the brightness value may be determining the target removed pixels of the magnetic resonance image according to the brightness value, and removing all of the magnetic resonance image Among the pixel points, the remaining pixel points except for the target removal pixel point are used as pixels to be processed. Since the process of water and fat separation often requires processing of each pixel, the advantage of the above technical solution is that it can reduce the amount of calculations and improve the efficiency of water and fat separation while ensuring the accuracy of water and fat separation.
  • the phase factor candidate solution can be understood as a set of phase factor solutions, including possible phase factor solutions for each pixel to be processed. It can be understood that the candidate phase factor solution includes the true phase factor solution of each pixel to be processed, that is, the target phase factor solution, and the field displacement ⁇ of the magnetic resonance image can be accurately determined according to the target phase factor solution.
  • phase factor candidate solutions when multiple phase factor solutions in the phase factor candidate solutions are divided into the first solution set and the second solution set, respectively, the multiple phase factor solutions of the same pixel to be processed need to be divided into different solutions concentrated. That is, if the global optimal solution of the current pixel to be processed is divided into the first solution set, then the inverse solution of the current pixel to be processed will be divided into the second solution set.
  • the phase factor candidate solutions include the global optimal solution PG and the inverse solution corresponding to PG
  • P G may be a set of phase factor solutions p B of each pixel to be processed obtained according to formula (6); It is a set corresponding to PG , and can be considered as a mirror solution set of PG .
  • the calculation process can be:
  • W G is the water signal component corresponding to the global optimal solution P G
  • F G is the fat signal component corresponding to the global optimal solution P G.
  • each pixel to be processed in the magnetic resonance image is at P G and There are PG and P B corresponding to each.
  • the p B of the pixel to be processed may be p B belonging to water in P G , then It may be a part of the fat p B; of course, be processed in the pixel point P G p B may be a part of the fat p B, then It is also possible that p B belonging to water is possible.
  • the purpose of having two p B for the same pixel to be processed is to make full use of the ambiguity of water and fat to more accurately determine whether the pixel belongs to a water component or a fat component.
  • phase factor solutions in the phase factor candidate solutions can be divided into the first solution set and the second solution set based on a preset division method, that is, the set
  • the multiple p B in and P G are divided into the first solution set and the second solution set, respectively.
  • the preset division method may be the result of water and fat separation.
  • the pixels in the water-fat conversion area may be pixels on the edges of the water area and the fat area.
  • the edge pixel points of the water area and the fat area can be determined, and further, the water-fat conversion area can be determined.
  • each to-be-processed pixel in the magnetic resonance image may be traversed, and the pixel that meets the preset edge pixel filtering conditions may be used as the edge pixel.
  • each pixel to be processed in the water-fat conversion area has a possible phase factor solution in the first solution set and the second solution set respectively, and the phase factor corresponding to the pixel to be processed in the first solution set
  • the solution serves as the first candidate phase factor solution
  • the phase factor solution corresponding to the pixel to be processed in the second solution set is used as the second candidate phase factor solution.
  • the target phase factor solution of each pixel to be processed in the water-fat conversion area is calculated, and the pixel to be processed may be selected from the first candidate phase factor solution and the second candidate phase factor solution The target phase factor solution for the point.
  • the water-fat conversion area can be used as a known area, and multiple sub-areas can be used as an unknown area, so as to determine each to-be-processed in the unknown area according to the target phase factor solution of each to-be-processed pixel in the known area Pixel target phase factor solution.
  • the target phase factor solution of each pixel to be processed in the known area can be used as a priori condition to gradually determine the target phase factor solution of each pixel to be processed in the unknown area.
  • the inner field diagram of the unknown area can be determined based on the neighborhood pixel voting. The above steps are beneficial to improve the noise resistance and efficiency of water-fat separation.
  • the pixels to be processed except the water-fat conversion area may be spatially divided into at least two consecutive sub-areas, and then each The target phase factor solution of each pixel to be processed is the target phase factor solution of each pixel to be processed in each subregion.
  • a plurality of sub-regions may be sequentially processed based on a preset sub-region selection method, and the processed sub-regions are merged with known regions to update the known regions. Iteratively loops until multiple unknown regions are processed as known regions, and the target phase factor solutions of all pixels to be processed are obtained.
  • the field displacement of the magnetic resonance image is determined.
  • the intensity of the water and fat signal of each pixel to be processed can be calculated by the following formula:
  • ⁇ w is the intensity of the water signal
  • ⁇ f is the intensity of the fat signal
  • a + (p B ) is the generalized inverse of the matrix A(p B )
  • S is the multi-echo magnetic resonance signal, if the current pixel to be processed ⁇ w > ⁇ f , the current pixel to be processed is a water signal; if the ⁇ w of the current pixel to be processed is less than or equal to ⁇ f , the current pixel to be processed is a fat signal.
  • the technical solution of this embodiment first simplifies the calculation amount by dividing the calculated phase factor candidate solutions of each pixel to be processed in the magnetic resonance image into the first solution set and the second solution set respectively; then, based on The phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set determines the water-fat conversion area in the magnetic resonance image, and calculates the target phase factor for each pixel to be processed in the water-fat conversion area Solution; further, using the water-fat conversion area as a known area, the target phase factor solution of each pixel to be processed among the remaining pixels to be processed is determined according to the target phase factor solution of each pixel to be processed in the known area; Finally, according to the target phase factor of each pixel to be processed in the magnetic resonance image, the water and fat images in the magnetic resonance image are extracted.
  • the above technical scheme can quickly and stably estimate the field map, and on this basis, complete the correct estimation of the water and fat components.
  • the water-fat separation method based on the magnetic resonance image may further include: acquiring the highest amplitude corresponding to each pixel to be processed in the multi-echo data; according to the highest amplitude and at least one The preset grading threshold divides a plurality of pixels in the magnetic resonance image into at least two grading areas; the at least two grading levels are processed in order from the area with high signal-to-noise ratio to the area with low signal-to-noise ratio.
  • the water-fat signal in order to avoid the low signal-to-noise ratio region from affecting the high signal-to-noise ratio region, the water-fat signal can be separated according to the amplitude classification method.
  • the highest amplitude corresponding to each pixel to be processed in the multi-echo data is obtained, and the highest amplitude corresponding to each pixel to be processed is compared with at least one pre-set threshold value to make the magnetic
  • the multiple pixels to be processed in the resonance image are divided into at least two classification regions.
  • H1, H2, H3,...Hn+1 represents the highest amplitude of multiple pixels, where H1 is the maximum value of the highest amplitude of multiple pixels to be processed, and Hn+1 is the multiple pixels to be processed The minimum value of the highest amplitude of the point.
  • the pixel to be processed may be classified into the level Hn.
  • the image with higher amplitude has higher signal-to-noise and the image with lower amplitude has lower signal-to-noise. Therefore, the higher amplitude level has higher processing than the lower amplitude level.
  • Priority multiple graded regions in multiple steps involved in the water-fat separation method based on magnetic resonance images can be processed in order from the region with a high signal-to-noise ratio to the region with a low signal-to-noise ratio.
  • the above-mentioned amplitude grading method may be used to sequentially process from a region with a high SNR to a region with a low SNR, each amplitude level
  • the field displacement is solved in turn, and the processing result of the higher amplitude level is used as the reference value of the lower amplitude level, which effectively avoids the impact of the low SNR area on the high SNR area.
  • the “dividing multiple phase factor solutions among the phase factor candidate solutions into the first solution set and the second solution set, respectively” may include: according to the calculated water-lipid separation result, the global optimal solution And the multiple phase factor solutions in the inverse solution are divided into the first solution set and the second solution set, respectively.
  • explanations of terms that are the same as or corresponding to those in the above embodiments are not repeated here.
  • the method of this embodiment may include the following steps.
  • phase factor candidate solution includes a global optimal solution and a sub-inverse solution corresponding to the global optimal solution .
  • S220 Divide the global optimal solution and the multiple phase factor solutions in the split-inverse solution into the first solution set and the second solution set according to the calculated water-lipid separation results, respectively.
  • phase factor solutions in the global optimal solution and the sub-inverse solution are traversed, and the intensity of the water and fat signal of each phase factor solution is calculated by formula (7).
  • multiple phase factor solutions may be divided into a first solution set and a second solution set according to the magnitude relationship between the strength of the water signal and the strength of the fat signal, respectively.
  • the first solution set P w may be a set of global optimal solutions of a plurality of pixels to be processed and a set of phase factor solutions in which the strength of the water signal in the split-inverse solution is greater than the strength of the fat signal, which is considered to be a water signal ;
  • the second solution set P f may be a set of global optimal solutions for multiple pixels to be processed and a set of phase factor solutions in which the intensity of the fat signal is greater than the intensity of the water signal in the split-inverse solution. Possible result of lipid separation. The division of the first solution set and the second solution set helps to simplify the calculation of subsequent steps and realize the rapid determination of the field displacement.
  • the first solution set P w may be a global optimal solution and a set of phase factor solutions in which the intensity of the fat signal is greater than the intensity of the water signal in the inverse solution, which is considered to be a fat signal;
  • the second solution set P f It may be a set of global optimal solutions and phase factor solutions in which the strength of the water signal in the split-inverse solution is greater than the strength of the fat signal. It is considered to belong to the water signal, and a possible result of water-fat separation has been obtained initially.
  • S240 Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area.
  • the global optimal solution and all phase factor solutions in the sub-inverse solution are divided into the first solution set and the second solution set respectively according to the calculated water-fat separation result, which realizes the preliminary water-fat signal It separates and simplifies the calculation of the solution process of the target phase factor.
  • determining the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set may include: Processing the phase factor solution corresponding to the pixel, calculating the maximum vector change of each pixel to be processed and the multiple neighboring pixels of each pixel to be processed in the first solution set and the second solution set, according to the first The maximum vector change corresponding to the solution set and the second solution set determines the water-fat conversion region.
  • the neighboring pixel may be a pixel adjacent to the current pixel in multiple directions. It can be understood that the number of neighboring pixels of each pixel to be processed can be set according to actual needs, and is not specifically limited here.
  • the neighboring pixels matching the current pixel r to be processed may be the pixels q included in the region 10, or may be the pixels q included in the outer extension region 20 of the region 10, and of course It may be the pixel point q contained in the outer extension of the area 20, and so on.
  • eight pixel points q in the area 10 may be selected as neighboring pixel points of the current pixel point to be processed r.
  • a plurality of neighborhood pixels for each pixel to be processed and each pixel to be processed are calculated
  • the vector change of the point in the first solution set and the second solution set may be based on the phase factor solution of each pixel to be processed in the first solution set to calculate the multiple neighborhoods of the current pixel to be processed and the current pixel to be processed
  • the maximum vector change of the pixel point is to obtain the maximum vector change corresponding to the current pixel to be processed.
  • the phase factor solution of each pixel to be processed in the second solution set calculate the maximum vector change of the current pixel to be processed and the neighboring pixels of the pixel to be processed to obtain the current pixel to be processed corresponding Maximum vector change.
  • whether the pixel to be processed belongs to the water-fat conversion region can be determined according to the maximum vector change corresponding to the first solution set and the second solution set.
  • a plurality of neighborhood pixels for each pixel to be processed and each pixel to be processed are calculated
  • the maximum vector change of the point in the first solution set may include: for each pixel to be processed, calculating each pixel to be processed and multiple neighboring pixels of each pixel to be processed based on the following formula in the first
  • the maximum vector change in the solution set :
  • D w (r) represents the maximum vector change of the pixel to be processed r and the neighboring pixels of the pixel to be processed r in the first solution set; i represents the pixel in the neighborhood; abs(.) represents Find the absolute value; angle(.) means to find the phase angle; conj(.) means to find the complex conjugate; P w (r i ) means the neighboring pixel i of the pixel r to be processed in the first solution set Phase factor solution.
  • the maximum vector change in the second solution set of each pixel to be processed and a plurality of neighboring pixels can also be calculated based on the following formula:
  • D f (r) represents the maximum vector change in the second solution set graph of the pixel r to be processed and the neighboring pixels r to be processed
  • P f (r i ) represents the pixel r to be processed The phase factor solution of the neighboring pixel point i in the second solution set.
  • the maximum vector change in the first solution set and the maximum vector change in the second solution set can be obtained for each pixel to be processed and multiple neighboring pixel points according to the above formula.
  • determining the water-fat conversion region according to the maximum vector change corresponding to the first solution set and the second solution set may include: if the maximum vector change of the current pixel to be processed in the first solution set and the second solution set When at least one of the maximum vector changes in the concentration is greater than the preset conversion threshold, the current pixel to be processed belongs to the water-fat conversion area, where the preset conversion threshold can be determined according to the phase shift between the water-fat signals within the sampling interval .
  • the current pixel to be processed belongs to the water-fat conversion region. Then, traversing each pixel to be processed in the magnetic resonance image can determine which pixels to be processed belong to the water-fat conversion region.
  • calculating the target phase factor solution for each pixel to be processed in the water-fat conversion region may include: determining the maximum vector change among multiple neighboring pixels in each pixel to be processed in the water-fat conversion region The largest target neighborhood pixel; when the phase shift between the water and fat signals during the sampling interval is not equal to an integer multiple of 180 degrees, according to each pixel to be processed in the water and fat conversion area and the The combination of the phase factor solutions of the target neighboring pixels corresponding to the processing pixels determines the target phase factor solutions of each pixel to be processed.
  • the phase factor solution of the pixel to be processed in the water-fat conversion area in the first solution set or the phase factor solution in the second solution set can be solved as the target phase factor solution.
  • the phase factor solution of two pixels can have four possible combinations of solutions, for example, [P w (r), P w (q)], [P w (r), P f (q)] , [P f (r), P w (q)], [P f (r), P f (q)].
  • [P w (r), P w (q)] means to use the phase factor solution of the current pixel to be processed in the first solution set P w and the phase factor solution of the target neighboring pixel;
  • [P w (r) , P f (q)] means using the phase factor solution of the current pixel to be processed in the first solution set P w and the phase factor solution of the target neighborhood pixel in the second solution set P f ; and so on.
  • phase offset between the water signal and the fat signal is not equal to an integer multiple of 180 degrees, that is, ⁇ k ⁇
  • the magnetic resonance image of the solution combination with the smallest difference is the smoothest, and the phase factor solution of the current pixel to be processed corresponding to the solution combination with the smallest phase difference is taken as the target phase factor solution of the current pixel to be processed.
  • phase factor solution of the current pixel to be processed in the first solution set is used as the target phase factor of the current pixel to be processed Solution, that is, the phase factor solution P w (r) of the current pixel to be processed in the first solution set P w is selected as the target phase factor solution of the current pixel to be processed r to select the optimal corresponding to the current pixel to be processed Phase factor solution.
  • the target phase factor solution of each pixel to be processed among the remaining pixels to be processed is determined, It may include: dividing the remaining pixels to be processed except the water-fat conversion region into a first number of spatially consecutive sub-regions to be solved according to the first solution set and the second solution set, wherein each sub-solution All the pixels to be processed in the region come from the same solution set; the target phase of each pixel to be processed in each sub-region to be solved is determined according to the target phase factor solution of each pixel to be processed in the water-fat conversion region Factor solution.
  • the explanation of the same or corresponding terms as those in the above embodiments will not be repeated here.
  • the method of this embodiment may include the following steps.
  • phase factor candidate solution includes a global optimal solution and a partial inverse solution corresponding to the global optimal solution.
  • the first number of values may be determined according to actual needs.
  • the spatially continuous sub-regions to be solved may be sub-regions to be solved that have edges connected or adjacent edge pixels in the first number of spaces.
  • the remaining pixels to be processed can be divided into the first number of spatially consecutive sub-regions to be solved, and the target phase factor solutions of all the pixels to be processed in each sub-region to be solved come from In the same solution set, that is, the target phase factor solution of all pixels to be processed in each sub-region to be solved comes from the first solution set, or the target of all pixels to be processed in each sub-region to be solved
  • the phase factor solutions all come from the second solution set. In other words, all the pixels to be processed in each sub-region to be solved have only two possible choices, and all the pixels to be processed can only select the phase factor in the same solution set. solution.
  • one of the first solution set and the second solution set can be selected by the neighborhood pixel voting method as the pixel to be processed of the sub-region Target phase factor solution.
  • the magnetic resonance image includes at least two sub-regions to be solved. In an embodiment, it may be determined which sub-region to be solved according to the gradation level of a plurality of pixels to be processed in the plurality of sub-regions to be solved Multiple pixels to be processed are given priority.
  • S350 Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion region and the target phase factor solution of each pixel to be processed in the water-fat conversion region.
  • the remaining pixels to be processed except the water-fat conversion region are divided into a first number of spatially continuous sub-regions to be solved according to the first solution set and the second solution set.
  • Solve the sub-region to achieve a quick and convenient solution to determine the target phase factor solution of a part of the pixels to be processed each time; determine each sub-region to be solved according to the target phase factor solution of each pixel to be processed in the water-lipid conversion region
  • the target phase factor solution of each pixel to be processed in the image using the target phase factor solution of the known region as a priori condition of the unknown region, can accurately calculate the target behavior factor solution of the pixel to be processed of the unknown region, that is, the sub-region to be solved .
  • determining the target phase factor solution for each pixel to be processed in each sub-region to be solved according to the target phase factor solution for each pixel to be processed in the water-fat conversion region may include: obtaining all current A plurality of edge pixel pairs that are spatially adjacent to the known region and the current sub-region to be solved, where the current known region includes a water-lipid conversion region; based on the plurality of edge pixel pairs, the corresponding to the first solution set and the second solution set are calculated respectively The first cost function and the second cost function of; determine the target phase factor solution of each pixel to be processed in each sub-region to be solved according to the first cost function and the second cost function.
  • adjacent edge pixel pairs can be regarded as a pixel pair composed of pixels of the known region and the subregion to be solved spatially next to each other.
  • the current known region 30 Including the pixels to be processed 301 and 302, and the current sub-region 40 to be solved includes pixels to be processed 401 and 402, then the pixels to be processed 301 and the pixels to be processed 401 can form adjacent edge pixel pairs; the pixels to be processed 302 and Pixels to be processed 402 may form adjacent edge pixel pairs
  • the first cost function corresponding to the first solution set and the second cost function corresponding to the second solution set can be calculated according to multiple edge pixel pairs of all currently known regions and the current sub-region to be solved . According to the above cost function, it can be determined whether the target phase factor solutions of the multiple pixels to be processed in the multiple sub-regions to be solved are the phase factor solutions in the first solution set or the phase factor solutions in the second solution set.
  • one of the remaining sub-areas to be solved can be selected as the current sub-area to be solved based on preset filter conditions; then the current sub-area to be solved is The known areas are merged to become a known area; the operation of selecting one of the remaining sub-areas to be solved as the current sub-area to be solved based on preset filter conditions is repeatedly performed until all the sub-areas to be solved are updated to the known area.
  • the preset filtering condition may be the priorities of multiple sub-regions to be determined according to the highest amplitudes of multiple pixel points in multiple sub-regions to be solved; or the sub-regions to be solved and the known The area constitutes the number of adjacent edge pixel pairs and so on.
  • calculating the first cost function and the second cost function corresponding to the first solution set and the second solution set based on the plurality of edge pixel pairs respectively includes: calculating the first cost function and the second cost function based on each edge pixel pair and the following formula The first cost function C w and the second cost function C f corresponding to the first solution set and the second solution set:
  • the current sub-region to be solved is determined by all neighboring pixel pairs (s j , k j ) in space All the pixels to be processed in the first cost function corresponding to the phase factor solution of the first solution set and the second cost function corresponding to the phase factor solution of the second solution set.
  • determining the target phase factor solution for each pixel to be processed in each sub-region to be solved according to the first cost function and the second cost function may include: collecting the first solution set or the second solution set, The phase factor solution in the solution set corresponding to the smaller cost function in the first cost function and the second cost function is used as the target phase factor solution for each pixel to be processed in the current sub-region to be solved.
  • the smaller the cost function the smaller the loss and the more convergent the magnetic resonance image. Therefore, the smaller cost function of the first cost function and the second cost function serves as a reference for solving the target phase factor solution.
  • the current subregion to be solved All pixels to be processed in the process select the phase factor solution in the first solution set P w as the target phase factor solution; if C f ⁇ C w , the phase factor solution in the second solution set P f is selected as the target phase factor solution.
  • the water-fat separation method based on the magnetic resonance image may further include: if the current sub-region to be solved is not adjacent to any currently known region, and there are multiple layers of magnetic data in the current data set For the resonance image, a plurality of edge pixel pairs that are spatially adjacent to all the currently known regions and the current sub-regions in the adjacent magnetic resonance image layer are obtained along the direction in which the image layers are arranged.
  • the current result can be determined according to the calculation result of formula (7) Whether the pixels to be processed in the sub-region to be solved belong to the water component or the fat component; if there are multiple magnetic resonance images in the current data set, all the current magnetic resonance image layers can be obtained along the direction of the image layer arrangement Knowing the region and all edge pixel pairs spatially adjacent to the current sub-region to be solved, and then using the above method of solving the first cost function and the second cost function to determine whether the pixels to be processed in the current sub-region to be solved belong to water The ingredients are still fat.
  • the advantage of the above step setting is that it can combine the phase factor solutions of multiple pixels of the adjacent layer magnetic resonance image to effectively deal with the solution of the target phase factor solution when the pixels are discontinuous in the plane space.
  • the method may further include: if the signal-to-noise ratio of the magnetic resonance image is lower than a preset threshold, resolving the target phase factor of a plurality of pixels to be processed in a known area by local growth Determine the target phase factor solution for each pixel to be processed in the water-fat conversion area.
  • the method of this embodiment may include the following steps.
  • phase factor candidate solution includes a global optimal solution and a divided and inverse solution corresponding to the global optimal solution.
  • the target phase factor solution of each pixel to be processed obtained according to the above steps may determine the field displacement.
  • the signal-to-noise ratio of the magnetic resonance image is lower than the preset threshold, there may be errors in the field displacement of the pixels to be processed in the water-fat conversion region under the low signal-to-noise ratio.
  • the above-mentioned to-be-solved sub-region can be used as a known region, and multiple pixels to be processed in the known region can be locally grown
  • the target phase factor solution of the point re-determines the target phase factor solution of each pixel to be processed in the water-fat conversion region.
  • redetermining the target phase factor solution of each pixel to be processed in the water-fat conversion region by locally increasing the target phase factor solution of multiple pixels to be processed in the known area may include: Calculate the difference between the selected phase factor solution in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion area and the target phase factor solution of multiple neighboring pixels; it will be different from the calculated two
  • the phase factor solution to be selected corresponding to the smaller difference in the difference is used as the target phase factor solution of the current pixel to be processed.
  • the water-fat conversion area includes at least two pixels to be processed, so one of the pixels to be processed may be selected as the current pixel to be processed based on a preset condition.
  • the selection can be based on the number of pixels in the neighborhood of a plurality of pixels to be processed in the water-fat conversion area, and the pixels to be processed in the neighborhood that have the most pixels in the known area Point, as the current pixel to be processed.
  • the target phase factor of these neighboring pixels belonging to the known area may be used
  • the solution calculates the difference between the current pixel to be processed in the first solution set and the second solution set.
  • the difference between the phase factor solution to be selected in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion region and the target phase factor solution of multiple neighboring pixel points can be calculated separately. It includes: calculating the difference D X between the X-th solution to be selected and the target phase factors of multiple neighboring pixels in the water-fat conversion area based on the following formula:
  • K is the neighboring pixels of all known target phase factors
  • X is the number of solutions to be selected
  • m k is the maximum amplitude of the kth neighboring pixel in all echo signals
  • p B, k represents The target phase factor solution of the k-th neighbor pixel
  • angle(.) means to obtain the phase angle
  • conj(.) means to obtain the complex conjugate.
  • D X can be regarded as D w or D f .
  • D 1 ⁇ D 2 the phase factor solution of the current pixel to be processed in the water-fat conversion area in the first solution set is taken as the target phase factor solution; when D 1 ⁇ D 2 , the water-fat conversion area is used The phase factor solution of the current pixel to be processed in the second solution set is used as the target phase factor solution.
  • the local phase increase method is used to re-determine the water-fat conversion area according to the target phase factor solution of multiple pixels to be processed in the known area
  • the solution of the target phase factor of each pixel to be processed can effectively avoid the problem that the field displacement of the pixel to be processed in the water-fat conversion region solved under a low signal-to-noise ratio may have errors.
  • the acquisition system was a Siemens 3T magnetic resonance system
  • the sequence was a multi-echo GRE sequence
  • the acquired image is processed based on the above water-fat separation method, and the result of water-fat separation is shown in FIG. 4A.
  • the signal-to-noise ratio SNR of the liver region in the figure is 22.16, 4.89 and 2.6, respectively.
  • the four columns of images are the first echo amplitude map, phase factor map, fat map and water map separation results under multiple signal-to-noise ratios. . It can be seen from the above that the above water-fat separation method can still achieve stable and accurate separation of water-fat signals under the condition of low signal-to-noise ratio.
  • each amplitude grading can be divided into two categories: belong to the water-fat conversion region and not belong to the water-fat conversion region.
  • all the pixels to be processed in the water-fat conversion area are first extracted, all the different phase factor solutions are considered and the smoothest phase factor solution is selected as the target phase factor of the pixels to be processed in the water-fat conversion area Solution:
  • After processing each amplitude-graded pixel iterate to the next amplitude-grading process.
  • the target phase factor solution of the region with high amplitude classification is used as a priori condition for the region with low amplitude classification. Processing unknown areas with the results of known areas can effectively avoid images with low signal-to-noise ratio.
  • the above-mentioned separation method based on magnetic resonance images can be applied not only to water-fat separation imaging, but also to other chemical shift-coded imaging, as long as the corresponding parameters in the model need to be adaptively modified.
  • FIG. 5 is a structural block diagram of a water-fat separation device based on a magnetic resonance image provided by an embodiment, and the device is used to perform the water-fat separation method based on a magnetic resonance image provided by any of the above embodiments.
  • This device and the magnetic resonance image-based water and fat separation method of the above embodiment belong to the same concept.
  • the apparatus may include: a de-aggregation module 510, a water-fat conversion region determination module 520, a target phase factor solution determination module 530, and a water-fat image separation module 540.
  • the solution set division module 510 is configured to acquire each pixel to be processed in the magnetic resonance image, calculate the candidate phase factor solution for each pixel to be processed, and divide multiple phases in the candidate phase factor solution
  • the factor solutions are divided into the first solution set and the second solution set, respectively, where the phase factor candidate solutions include the global optimal solution and the sub-inverse solution corresponding to the global optimal solution;
  • the water-fat conversion area determination module 520 is set to The phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set determines the water-fat conversion area, and calculates the target phase factor solution for each pixel to be processed in the water-fat conversion area;
  • the target phase factor solution is determined Module 530, set to determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area;
  • the separation module 540 is configured to de-extract the water map and fat map in
  • the phase factor candidate solution of each pixel to be processed in the magnetic resonance image calculated separately, and the phase factor candidate solution
  • the multiple phase factor solutions in are divided into the first solution set and the second solution set respectively to simplify the calculation; then, based on the phase factor solutions corresponding to each pixel to be processed in the first solution set and the second solution set, determine The water-fat conversion area in the magnetic resonance image is obtained, and the target phase factor solution of each pixel to be processed in the water-fat conversion area is calculated; further, the water-fat conversion area is used as a known area, and the known area and water-fat are used as the known area
  • the target phase factor solution of each pixel to be processed in the conversion area determines the target phase factor solution of each pixel to be processed among the remaining pixels to be processed, and the target phase factor solution of the unknown area is solved according to the known area; finally, according to The target phase factor of each pixel to be processed in the magnetic resonance image extracts the water map and fat
  • the disaggregation module 510 may include:
  • the solution set division submodule is configured to divide the global optimal solution and the multiple phase factor solutions in the split-inverse solution into the first solution set and the second solution set according to the calculated water-lipid separation results, respectively.
  • the water-fat conversion area determination module 520 may include:
  • the sub-module of the water-fat conversion area determination module is set to calculate each to-be-processed pixel point and multiple neighboring pixel points in the first based on the phase factor solution corresponding to each to-be-processed pixel point in the first and second solution sets
  • the maximum vector change in the solution set and the second solution set determines the water-fat conversion region according to the maximum vector change corresponding to the first solution set and the second solution set.
  • the water-fat conversion area determination module sub-module may include:
  • the maximum vector change calculation unit is set to calculate, for each pixel to be processed, the maximum vector change in the first solution set for each pixel to be processed and multiple neighboring pixels based on the following formula:
  • D w (r) represents the maximum vector change of the pixel to be processed r and the neighboring pixels of the pixel to be processed r in the first solution set; i represents the pixel in the neighborhood; abs(.) represents Find the absolute value; angle(.) means to find the phase angle; conj(.) means to find the complex conjugate; P w (r i ) means the neighboring pixel i of the pixel r to be processed in the first solution set Phase factor solution.
  • the water-fat conversion area determination module sub-module may include:
  • the water-fat conversion area determining unit is set to set the current pixel to be processed if at least one of the maximum vector change of the current pixel to be processed in the first solution set and the maximum vector change in the second solution set is greater than a preset conversion threshold
  • the point belongs to the water-fat conversion area, where the preset conversion threshold is determined according to the phase shift between the water-fat signals within the sampling interval.
  • the water-fat conversion area determination module 520 may further include: a target neighborhood pixel point determination sub-module and a target phase factor solution determination sub-module.
  • the target neighborhood pixel determination submodule is set to determine the target neighborhood pixel with the largest vector change among the multiple neighborhood pixels of each pixel to be processed in the water-fat conversion area; the target phase factor solution determiner Module, when the phase shift between the water and fat signals within the sampling interval is not equal to an integer multiple of 180 degrees, according to each pixel to be processed in the water and fat conversion area and the target corresponding to each pixel to be processed The combination of phase factor solutions of the neighboring pixels determines the target phase factor solution of each pixel to be processed.
  • the target phase factor solution determination module 530 may include: a sub-region determination sub-module to be solved and a target phase factor solution determination sub-module in the sub-region to be solved.
  • the sub-region determination sub-module to be solved is set to divide the remaining pixels to be processed except the water-fat conversion region into the first number of spatially consecutive sub-solves to be solved according to the first solution set and the second solution set Area, where all the pixels to be processed in each sub-area to be solved come from the same solution set; the target phase factor solution determination sub-module in the sub-area to be solved is set according to each The target phase factor solution of the processing pixel determines the target phase factor solution of each pixel to be processed in each sub-region to be solved.
  • the target phase factor solution determination sub-module in the sub-region to be solved may include: an edge pixel pair acquisition unit, a cost function calculation unit, and a target phase factor solution determination unit in the sub-region to be solved.
  • the edge pixel pair acquisition unit is set to acquire multiple edge pixel pairs spatially adjacent to all the current known regions and the current sub-region to be solved, wherein the current known region includes a water-fat conversion region; a cost function calculation unit, Set to calculate the first cost function and the second cost function corresponding to the first solution set and the second solution set based on multiple edge pixel pairs, respectively; the target phase factor solution determination unit in the sub-region to be solved is set to The cost function and the second cost function determine the target phase factor solution of each pixel to be processed in each sub-region to be solved.
  • the cost function calculation unit is set to:
  • the first cost function C w and the second cost function C f corresponding to the first solution set and the second solution set are calculated based on multiple edge pixel pairs and the following formulas, respectively:
  • the target phase factor solution determination unit in the sub-region to be solved is set to:
  • the target phase factor solution determination subunit in the sub-region to be solved is set to set the phase factor in the solution set corresponding to the first cost function and the second cost function in the first solution set or the second solution set corresponding to the smaller cost function in the first cost function and the second cost function
  • the solution serves as the target phase factor solution for each pixel to be processed in the current sub-region to be solved.
  • the target phase factor solution determination sub-module in the sub-region to be solved may also be set as:
  • the current sub-region to be solved is not adjacent to any currently known region, and there are multiple layers of magnetic resonance images in the current data set, all the currently known regions in the adjacent magnetic resonance image layer are obtained along the direction of the image layer arrangement And the spatially adjacent edge pixel pairs of the subregion to be solved.
  • the device may further include:
  • the low signal-to-noise ratio processing module is set to re-determine the water-fat conversion according to the target phase factor solution of multiple pixels to be processed in the known area by local growth if the signal-to-noise ratio of the magnetic resonance image is lower than a preset threshold The target phase factor solution for each pixel to be processed in the area.
  • the low signal-to-noise ratio processing module may include:
  • the difference calculation submodule is configured to calculate the difference between the phase factor solution to be selected in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion area and the target phase factor solution of multiple neighboring pixels;
  • the low signal-to-noise ratio processing sub-module is configured to use the selected phase factor solution corresponding to the smaller difference between the two calculated differences as the target phase factor solution of the current pixel to be processed.
  • the difference calculation submodule is set as:
  • K is the neighboring pixels of all known target phase factors
  • X is the number of solutions to be selected
  • m k is the maximum amplitude of the kth neighboring pixel in all echo signals
  • p B, k represents The target phase factor solution of the k-th neighbor pixel
  • angle(.) means to obtain the phase angle
  • conj(.) means to obtain the complex conjugate.
  • the device may further include:
  • the highest amplitude acquisition module is set to acquire the highest amplitude corresponding to each pixel to be processed in the multi-echo data
  • a hierarchical area dividing module configured to divide a plurality of pixels in the magnetic resonance image into at least two hierarchical areas according to the highest amplitude and at least one preset hierarchical threshold;
  • the sequential processing module is configured to process at least two grading levels in order from the area with a high signal-to-noise ratio to the area with a low signal-to-noise ratio.
  • the device for separating water and fat based on magnetic resonance images provided in this embodiment can execute the method for separating water and fat based on magnetic resonance images provided in any embodiment of the present invention, and has a function module and beneficial effects corresponding to the execution method.
  • At least one unit and at least one module included are only divided according to functional logic, but it is not limited to the above division, as long as the corresponding function can be achieved ;
  • the name of each functional unit is only to facilitate the distinction between each other, and is not used to limit the scope of protection of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a device provided by an embodiment.
  • the device includes a memory 610, a processor 620, an input device 630, and an output device 640.
  • the number of processors 620 in the device may be one or more, and one processor 620 is taken as an example in FIG. 6; the memory 610, processor 620, input device 630, and output device 640 in the device may be connected through a bus or other means In FIG. 6, the connection through the bus 650 is taken as an example.
  • the memory 610 can be configured to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the water-fat separation method based on magnetic resonance images in the above embodiments (for example, based on The de-aggregation and division module 510, the water-fat conversion area determination module 520, the target phase factor solution determination module 530, and the water-fat image separation module 540 in the water-fat separation device of the magnetic resonance image.
  • the processor 620 executes at least one functional application of the device and data processing by running software programs, instructions, and modules stored in the memory 610, that is, implementing the above-mentioned magnetic resonance image-based water-fat separation method.
  • the memory 610 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of the device, and the like.
  • the memory 610 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 610 may include memories remotely provided with respect to the processor 620, and these remote memories may be connected to the device through a network. Examples of the aforementioned network include, but are not limited to, the Internet, intranet, local area network, mobile communication network, and combinations thereof.
  • the input device 630 may be configured to receive input numeric or character information, and generate key signal input related to user settings and function control of the device.
  • the output device 640 may include a display device such as a display screen.
  • This embodiment provides a storage medium containing computer-executable instructions.
  • the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to execute a method for separating water and fat based on a magnetic resonance image.
  • the method includes:
  • each pixel to be processed in the magnetic resonance image calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and the second solution respectively Concentration, where the candidate solution of the phase factor includes the global optimal solution and the inverse solution corresponding to the global optimal solution;
  • the water-fat conversion area is determined, and the target phase factor solution for each pixel to be processed in the water-fat conversion area is calculated;
  • the water map and fat map in the magnetic resonance image are extracted.
  • This embodiment provides a storage medium containing computer-executable instructions.
  • the computer-executable instructions are not limited to the method operations described above, and may also be used in the water-fat separation method based on magnetic resonance images provided in any of the above embodiments. Related operations.
  • the present disclosure can be implemented by software and general hardware, or by hardware.
  • the technical solution of the present disclosure can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (Read-Only Memory, ROM), Random access memory (RAM), flash memory (FLASH), hard disk or optical disc, etc., including multiple instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform any of the above implementations Example method.
  • a computer-readable storage medium such as a computer floppy disk, read-only memory (Read-Only Memory, ROM), Random access memory (RAM), flash memory (FLASH), hard disk or optical disc, etc.
  • a computer device which may be a personal computer, server, or network device, etc.

Abstract

A method, a device, and an apparatus for water-fat separation using a magnetic resonance image, and a storage medium. The method for water-fat separation comprises: acquiring a plurality of pixels to be processed (r, 301, 302, 401, 402) in a magnetic resonance image, calculating phase factor candidate solutions thereof, and dividing a plurality of phase factor solutions in the phase factor candidate solutions into a first solution set and a second solution set respectively (s110); determining a water-fat conversion region on the basis of the phase factor solutions in the first solution set and the second solution set, and calculating a target phase factor solution for each pixel to be processed (r, 301, 302, 401, 402) in the water-fat conversion region (s120); determining, on the basis of the water-fat conversion region and the target phase factor solutions in the water-fat conversion region, a target phase factor solution for each pixel to be processed (r, 301, 302, 401, 402) in the remaining pixels to be processed (r, 301, 302, 401, 402) (s130); and extracting a water map and a fat map in the magnetic resonance image according to the target phase factor solution for each pixel to be processed (r, 301, 302, 401, 402) in the magnetic resonance image (s140).

Description

基于磁共振图像的水脂分离方法、装置、设备及存储介质Water-fat separation method, device, equipment and storage medium based on magnetic resonance image 技术领域Technical field
本公开涉及图像处理技术领域,例如涉及一种基于磁共振图像的水脂分离方法、装置、设备及存储介质。The present disclosure relates to the technical field of image processing, for example, to a method, device, device and storage medium for separating water and fat based on magnetic resonance images.
背景技术Background technique
常规的磁共振图像中,高亮的脂肪信号会影响到病灶诊断,所以经常需要使用到压脂技术。但是相关技术中的方法都存在着多种多样的问题:脂肪饱和及水激发的方法会在场位移较大的地方失效;反转恢复的方法会大幅度降低图像的信噪比。此外,脂肪信号也是心脏和肺部疾病检测中的一个重要的诊断依据。因而,准确的脂肪定量以及水脂分离至关重要。In conventional magnetic resonance images, the highlighted fat signal will affect the diagnosis of the lesion, so it is often necessary to use fat compression technology. However, the methods in the related art have various problems: the methods of fat saturation and water excitation will fail at the place where the field displacement is large; the method of inversion recovery will greatly reduce the signal-to-noise ratio of the image. In addition, fat signals are also an important diagnostic basis for heart and lung disease detection. Therefore, accurate fat quantification and separation of water and fat are crucial.
水脂分离中使用的最多的是化学位移编码成像方法。基于多回波的化学位移编码成像方法是利用水脂中氢原子的共振频率因所处化学环境产生的差异,在不同的回波时间采集信号,使得水脂相位间产生差异;通过最小二乘拟合的方式,计算水脂信号强度,完成水脂分离。但是该方法需要准确的估计主磁场B 0的位移。 The most commonly used in water-fat separation is the chemical shift-coded imaging method. The multi-echo-based chemical shift coding imaging method uses the difference in the resonance frequency of the hydrogen atoms in the water lipid due to the chemical environment, and collects signals at different echo times to make the difference between the water lipid phase; by least squares In the way of fitting, the signal intensity of water and fat is calculated to complete the separation of water and fat. However, this method requires accurate estimation of the displacement of the main magnetic field B 0 .
相关技术中的水脂分离方法,在处理对象空间不连续或者低信噪比区域时,容易出现水脂分反的现象。因此,亟需一种快速稳定的场图估计方法,特别是针对图像信噪比低的情况下,在此基础上完成水、脂成分的正确估计。The water-fat separation method in the related art is prone to the phenomenon of water-fat separation when dealing with the object space discontinuity or the area with low signal-to-noise ratio. Therefore, there is an urgent need for a fast and stable field image estimation method, especially for the case of low image signal-to-noise ratio, on the basis of which the correct estimation of water and fat components is completed.
发明内容Summary of the invention
本公开实施例提供了一种基于磁共振图像的水脂分离方法、装置、设备及存储介质,可以快速稳定估计场图,并在此基础上完成水、脂成分的正确估计。Embodiments of the present disclosure provide a method, device, equipment, and storage medium for separating water and fat based on magnetic resonance images, which can quickly and stably estimate a field map, and complete correct estimation of water and fat components based on this.
本公开明实施例提供了一种基于磁共振图像的水脂分离方法,包括:The disclosed embodiments of the present disclosure provide a water-fat separation method based on magnetic resonance images, including:
获取磁共振图像中的每个待处理像素点,并计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解;Obtain each pixel to be processed in the magnetic resonance image and calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and the second solution respectively Solution set, where the phase factor candidate solutions include the global optimal solution and the inverse solution corresponding to the global optimal solution;
基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;Based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, the water-fat conversion area is determined, and the target phase factor solution for each pixel to be processed in the water-fat conversion area is calculated;
基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解;Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area;
根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。According to the target phase factor of each pixel to be processed in the magnetic resonance image, the water map and fat map in the magnetic resonance image are extracted.
本公开实施例还提供了一种基于磁共振图像的水脂分离装置,该装置可以包括:An embodiment of the present disclosure also provides a water-fat separation device based on a magnetic resonance image, which may include:
解集划分模块,设置为获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解;The solution set division module is set to acquire each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution to the first A solution set and a second solution set, where the candidate solution of the phase factor includes a global optimal solution and a partial and inverse solution corresponding to the global optimal solution;
水脂转换区域确定模块,设置为基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;The water-fat conversion area determination module is set to determine the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, and calculate each pixel to be processed in the water-fat conversion area The target phase factor solution;
目标相位因子解确定模块,设置为基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像 素点的目标相位因子解;The target phase factor solution determination module is set to determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the target phase factor solution of each pixel to be processed in the water-fat conversion area and the water-fat conversion area ;
水脂图像分离模块,设置为根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。。The water-fat image separation module is configured to de-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image. .
本公开实施例还提供了一种设备,该设备可以包括:An embodiment of the present disclosure also provides a device, which may include:
一个或多个处理器;One or more processors;
存储器,设置为存储一个或多个程序,Memory, set to store one or more programs,
当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现本公开任意实施例所提供的基于磁共振图像的水脂分离方法。When one or more programs are executed by one or more processors, the one or more processors implement the water-fat separation method based on the magnetic resonance image provided by any embodiment of the present disclosure.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机程序,该计算机程序被处理器执行时实现本公开任意实施例所提供的基于磁共振图像的水脂分离方法。An embodiment of the present disclosure also provides a computer-readable storage medium that stores a computer program, which when executed by a processor implements the water-fat separation method based on the magnetic resonance image provided by any embodiment of the present disclosure.
本公开提供的技术方案,首先通过获取磁共振图像中的每个待处理像素点,计算出的磁共振图像中的每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,以简化计算量;然后,基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出磁共振图像中的水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;进而,将基于水脂转换区域作为已知区域,根据已知区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解,根据已知区域求解未知区域的目标相位因子解;最后,根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。上述技术方案可以快速稳定估计场图,并在此基础上完成水、脂成分的正确估计。In the technical solution provided by the present disclosure, first, by acquiring each pixel to be processed in the magnetic resonance image, the calculated phase factor candidate solution for each pixel to be processed in the magnetic resonance image is calculated, and the Multiple phase factor solutions are divided into the first solution set and the second solution set respectively to simplify the calculation; then, based on the phase factor solutions corresponding to each pixel to be processed in the first solution set and the second solution set, the magnetic Resonate the water-fat conversion area in the image, and calculate the target phase factor solution for each pixel to be processed in the water-fat conversion area; further, the water-fat conversion area is used as the known area, according to the known area and the water-fat conversion area The target phase factor solution of each pixel to be processed in each of the remaining pixels to be processed determines the target phase factor solution of each pixel to be processed among the remaining pixels to be processed, and the target phase factor solution of the unknown area is solved according to the known area; finally, according to the magnetic resonance The target phase factor of each pixel to be processed in the image is used to extract the water map and fat map in the magnetic resonance image. The above technical scheme can quickly and stably estimate the field map, and on this basis, complete the correct estimation of the water and fat components.
附图说明BRIEF DESCRIPTION
图1是一实施例中的一种基于磁共振图像的水脂分离方法的流程图;1 is a flow chart of a method for separating water and fat based on magnetic resonance images in an embodiment;
图2是一实施例中的另一种基于磁共振图像的水脂分离方法的流程图;2 is a flowchart of another method for separating water and fat based on magnetic resonance images in an embodiment;
图2A是一实施例提供的一种磁共振图像的水脂分离方法中待处理像素点的邻域像素点的示意图;2A is a schematic diagram of neighboring pixels of pixels to be processed in a water-fat separation method for magnetic resonance images according to an embodiment;
图3是一实施例中的另一种基于磁共振图像的水脂分离方法的流程图;3 is a flowchart of another method for separating water and fat based on magnetic resonance images in an embodiment;
图3A是一实施例中的一种磁共振图像的水脂分离方法已知区域和待求解子区域的边缘像素对的示意图;FIG. 3A is a schematic diagram of an edge pixel pair of a known area and a sub-area to be solved of a water-fat separation method of a magnetic resonance image in an embodiment;
图4是一实施例中的另一种基于磁共振图像的水脂分离方法的流程图;4 is a flowchart of another method for separating water and fat based on magnetic resonance images in an embodiment;
图4A是一实施例中的一种基于本实施例所提供的磁共振图像的水脂分离方法对人体腹部图像进行水脂分离的结果示意图;4A is a schematic diagram of a result of performing water-fat separation on an abdomen image of a human body in a water-fat separation method based on the magnetic resonance image provided in this embodiment;
图5是一实施例中的一种基于磁共振图像的水脂分离装置的结构图;5 is a structural diagram of a water-fat separation device based on a magnetic resonance image in an embodiment;
图6是一实施例中的一种设备的结构示意图。6 is a schematic structural diagram of a device in an embodiment.
具体实施方式detailed description
下面结合附图和实施例对本公开进行说明。此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。The disclosure will be described below with reference to the drawings and embodiments. The specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. In addition, for the convenience of description, only some parts but not all structures related to the present disclosure are shown in the drawings.
在介绍本公开实施例之前,先对本公开实施例的应用场景进行说明,水脂分离的基础原理可以是基于化学位移编码成像中水脂信号的二义性,例如,对于磁共振图像中的某个像素点采集到的信号可以表示为:Before introducing the embodiments of the present disclosure, the application scenarios of the embodiments of the present disclosure will be described first. The basic principle of water-fat separation may be based on the ambiguity of water-fat signals in chemical shift coding imaging, for example, for a certain The signal collected by each pixel can be expressed as:
Figure PCTCN2018125855-appb-000001
Figure PCTCN2018125855-appb-000001
即可以存在一个完全镜像的场图解,使得分离结果中的水信号和脂肪信号刚好相反。当忽略
Figure PCTCN2018125855-appb-000002
弛豫过程以及脂肪多峰模型时,水脂化学位移信号模型可以用如下模型表述:
That is, there can be a completely mirrored field diagram, so that the water signal and fat signal in the separation result are exactly opposite. When ignored
Figure PCTCN2018125855-appb-000002
During the relaxation process and fat multimodal model, the water-fat chemical shift signal model can be expressed as follows:
Figure PCTCN2018125855-appb-000003
Figure PCTCN2018125855-appb-000003
其中,S(TE n)是在回波时间TE n时采集到的复数信号,ρ w是水信号的强度,ρ f是脂肪信号的强度,f F是化学位移频率,ψ是主磁场位移即场位移。 Where S(TE n ) is the complex signal collected at the echo time TE n , ρ w is the intensity of the water signal, ρ f is the intensity of the fat signal, f F is the chemical shift frequency, and ψ is the main magnetic field shift ie Field displacement.
在一实施例中,为了更加准确地得到脂肪信号的比例,可以同时考虑多峰模型以及
Figure PCTCN2018125855-appb-000004
衰减过程因素。例如,可以将根据模型(2)得到的场位移作为迭代的初始值,并将考虑了多峰和
Figure PCTCN2018125855-appb-000005
信号的模型(3)代替模型(2)求解非线性最小二乘拟合:
In an embodiment, in order to obtain the ratio of fat signals more accurately, the multi-peak model and
Figure PCTCN2018125855-appb-000004
Factors of the decay process. For example, the field displacement obtained from the model (2) can be used as the initial value of the iteration, and the multi-peak and
Figure PCTCN2018125855-appb-000005
The signal model (3) replaces the model (2) to solve the nonlinear least squares fit:
Figure PCTCN2018125855-appb-000006
Figure PCTCN2018125855-appb-000006
其中,n=1,2,...,N,α p为具有化学位移f F,p的第p个脂肪峰的相对幅值,
Figure PCTCN2018125855-appb-000007
为待定的
Figure PCTCN2018125855-appb-000008
衰减值。
Where n=1, 2, ..., N, α p is the relative amplitude of the p-th fat peak with chemical shift f F, p ,
Figure PCTCN2018125855-appb-000007
Pending
Figure PCTCN2018125855-appb-000008
Attenuation value.
在一实施例中,当考虑到水与脂肪
Figure PCTCN2018125855-appb-000009
值不同时,还可以通过模型(4)代替模型(2)求解非线性最小二乘拟合:
In one embodiment, when considering water and fat
Figure PCTCN2018125855-appb-000009
When the values are different, you can also use the model (4) instead of the model (2) to solve the nonlinear least squares fit:
Figure PCTCN2018125855-appb-000010
Figure PCTCN2018125855-appb-000010
其中,n=1,2,...,N,
Figure PCTCN2018125855-appb-000011
Figure PCTCN2018125855-appb-000012
分别为水和脂肪的
Figure PCTCN2018125855-appb-000013
值。
Where n=1, 2, ..., N,
Figure PCTCN2018125855-appb-000011
versus
Figure PCTCN2018125855-appb-000012
Water and fat
Figure PCTCN2018125855-appb-000013
value.
在一实施例中,在等时间间距的图像采集过程中,即TE 1、TE 2、...TE n是等差数列时,为了避免因为场位移的不均匀性而带来的相位卷绕问题,可以引入一个相位因子解p B来代替场位移ψ。其中,相位因子解p B可以通过如下公式表示: In one embodiment, during the image acquisition process at equal time intervals, that is, when TE 1 , TE 2 ,... TE n are equidistance series, in order to avoid phase wrapping due to the unevenness of the field displacement For the problem, a phase factor solution p B can be introduced instead of the field displacement ψ. Among them, the phase factor solution p B can be expressed by the following formula:
Figure PCTCN2018125855-appb-000014
Figure PCTCN2018125855-appb-000014
其中,ΔTE为采样间隔,相位因子解p B的单位向量的角度φ B的变化范围为[-π,π]。 Where ΔTE is the sampling interval, and the range of the angle φ B of the unit vector of the phase factor solution p B is [-π, π].
那么,在上述角度φ B的变化范围内,通过寻求最小拟合误差的方式,可以求得与拟合误差最小时对应的相位因子解p B。在一实施例中,相位因子解p B的 最小拟合误差R(p B)可以通过如下公式表示: Then, within the variation range of the above-mentioned angle φ B , by finding the minimum fitting error, the phase factor solution p B corresponding to the minimum fitting error can be obtained. In an embodiment, the minimum fitting error R(p B ) of the phase factor solution p B can be expressed by the following formula:
Figure PCTCN2018125855-appb-000015
Figure PCTCN2018125855-appb-000015
其中,S=[S(TE 1),S(TE 2),..,S(TE N)] T,ρ=[ρ w,ρ F] T,A(p B)=[A 1;A 2;…;A N] T
Figure PCTCN2018125855-appb-000016
A +(p B)为矩阵A(p B)的广义逆。即,根据公式(4)求得的最小拟合误差R(p B)可以确定与求得的最小拟合误差R(p B)对应的相位因子解p B。在一实施例中,根据相位因子解p B可以确定场位移ψ,然后在已知的场位移ψ的基础上分离水脂信号。由此可以得知,求取相位因子解p B的最优解至关重要。
Where, S=[S(TE 1 ), S(TE 2 ),.. ., S(TE N )] T , ρ=[ρ w , ρ F ] T , A(p B )=[A 1 ; A 2 ;...; A N ] T ,
Figure PCTCN2018125855-appb-000016
A + (p B ) is the generalized inverse of the matrix A(p B ). That is, according to the formula (4) obtained minimum fitting error R (p B) can be determined with a minimum fitting error determined R (p B) corresponding to the phase factor solution p B. In one embodiment, the field displacement ψ can be determined according to the phase factor solution p B , and then the water-fat signal is separated on the basis of the known field displacement ψ. It can be seen from this that it is very important to find the optimal solution of the phase factor solution p B.
但是,公式(6)的最优化方法可能存在至少一个局部极小值(例如,可能存在两个局部最小值),即存在至少一个最小拟合误差R(p B),因此,需要在上述局部极小值中筛选出可以使得整个场位移图最为平滑的相位因子解p BHowever, the optimization method of formula (6) may have at least one local minimum (for example, there may be two local minimums), that is, there is at least one minimum fitting error R(p B ). Therefore, the above local The minimum value is selected to make the phase factor solution p B which can make the whole field displacement map the smoothest.
实施例一Example one
图1是一实施例中的一种基于磁共振图像的水脂分离方法的流程图。本实施例可适用于基于磁共振图像的水脂分离的情况,例如适合于针对信噪比低的磁共振图像的水脂分离的情况。该方法可以由本公开实施例提供的基于磁共振图像的水脂分离装置来执行,该装置可以由软件和/或硬件的方式实现。参见图1,本实施例的方法包括如下步骤。FIG. 1 is a flowchart of a method for separating water and fat based on a magnetic resonance image in an embodiment. This embodiment can be applied to the case of water-fat separation based on a magnetic resonance image, for example, the case of water-fat separation for a magnetic resonance image with a low signal-to-noise ratio. The method may be performed by a water-fat separation device based on a magnetic resonance image provided by an embodiment of the present disclosure, and the device may be implemented by software and/or hardware. Referring to FIG. 1, the method of this embodiment includes the following steps.
S110、获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解。S110. Acquire each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and the first In the second solution set, the phase factor candidate solution includes a global optimal solution and a divided and inverse solution corresponding to the global optimal solution.
本实施例中,待处理像素点可以是磁共振图像中的所有的像素点,还可以 是磁共振图像的所有像素点中筛选出的满足预设条件的像素点。在一实施例中,满足预设条件的像素点可以是那些基于预设的判断方法无法直接根据像素点判断出是水成分还是脂肪成分的像素点。在一实施例中,可以获取磁共振图像中每个像素点的亮度值,根据所述亮度值确定所述磁共振图像的待处理像素点。在一实施例中,根据所述亮度值确定所述磁共振图像的待处理像素点,可以是根据所述亮度值确定所述磁共振图像的目标去除像素点,将所述磁共振图像的所有像素点中除了所述目标去除像素点之外的其余像素点作为待处理像素点。由于水脂分离的过程往往需要对每个像素点进行处理,上述技术方案的好处在于,可以在保证水脂分离准确率的同时,在处理过程中减少对运算量,提高水脂分离的效率。In this embodiment, the pixels to be processed may be all pixels in the magnetic resonance image, or may be pixels selected from all the pixels in the magnetic resonance image that satisfy the preset condition. In an embodiment, the pixels satisfying the preset conditions may be those pixels that cannot determine whether it is a water component or a fat component based directly on the pixel based on the preset determination method. In an embodiment, the brightness value of each pixel in the magnetic resonance image may be acquired, and the pixel to be processed of the magnetic resonance image may be determined according to the brightness value. In an embodiment, determining the pixels to be processed of the magnetic resonance image according to the brightness value may be determining the target removed pixels of the magnetic resonance image according to the brightness value, and removing all of the magnetic resonance image Among the pixel points, the remaining pixel points except for the target removal pixel point are used as pixels to be processed. Since the process of water and fat separation often requires processing of each pixel, the advantage of the above technical solution is that it can reduce the amount of calculations and improve the efficiency of water and fat separation while ensuring the accuracy of water and fat separation.
本实施例中,相位因子候选解可理解为一个相位因子解的集合,包括每个待处理像素点的可能的相位因子解。可以理解的是,相位因子候选解中包括每个待处理像素点的真正的相位因子解即目标相位因子解,而根据目标相位因子解可以准确地确定出磁共振图像的场位移ψ。In this embodiment, the phase factor candidate solution can be understood as a set of phase factor solutions, including possible phase factor solutions for each pixel to be processed. It can be understood that the candidate phase factor solution includes the true phase factor solution of each pixel to be processed, that is, the target phase factor solution, and the field displacement ψ of the magnetic resonance image can be accurately determined according to the target phase factor solution.
需要说明的是,将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中时,同一个待处理像素点的多个相位因子解需要被划分至不同的解集中。即,如果当前待处理像素点的全局最优解划分到第一解集中,则当前待处理像素点的分反解将划分到第二解集中。It should be noted that, when multiple phase factor solutions in the phase factor candidate solutions are divided into the first solution set and the second solution set, respectively, the multiple phase factor solutions of the same pixel to be processed need to be divided into different solutions concentrated. That is, if the global optimal solution of the current pixel to be processed is divided into the first solution set, then the inverse solution of the current pixel to be processed will be divided into the second solution set.
在本实施例中,相位因子候选解包括全局最优解P G以及与P G对应的分反解
Figure PCTCN2018125855-appb-000017
在一实施例中,P G可以是根据公式(6)求得的每个待处理像素点的相位因子解p B的集合;
Figure PCTCN2018125855-appb-000018
是与P G相对应的集合,可以认为是P G的镜像解集。
Figure PCTCN2018125855-appb-000019
的计算过程可以是:
In this embodiment, the phase factor candidate solutions include the global optimal solution PG and the inverse solution corresponding to PG
Figure PCTCN2018125855-appb-000017
In an embodiment, P G may be a set of phase factor solutions p B of each pixel to be processed obtained according to formula (6);
Figure PCTCN2018125855-appb-000018
It is a set corresponding to PG , and can be considered as a mirror solution set of PG .
Figure PCTCN2018125855-appb-000019
The calculation process can be:
根据如下公式计算与全局最优解P G对应的水脂分量: Calculate the water-fat component corresponding to the global optimal solution P G according to the following formula:
Figure PCTCN2018125855-appb-000020
Figure PCTCN2018125855-appb-000020
其中,W G是与全局最优解P G对应的水信号分量,F G是与全局最优解P G对应的脂肪信号分量。基于预设的非线性拟合函数可以求得以下代价函数的最小值
Figure PCTCN2018125855-appb-000021
Where, W G is the water signal component corresponding to the global optimal solution P G , and F G is the fat signal component corresponding to the global optimal solution P G. Based on the preset nonlinear fitting function, the minimum value of the following cost function can be obtained
Figure PCTCN2018125855-appb-000021
Figure PCTCN2018125855-appb-000022
Figure PCTCN2018125855-appb-000022
其中,非线性拟合的初始解为[P s,ρ s],其中ρ s=[F G,W G] T。当|W G|>|F G|时,
Figure PCTCN2018125855-appb-000023
当|W G|<|F G|时,
Figure PCTCN2018125855-appb-000024
计算得到的
Figure PCTCN2018125855-appb-000025
即为与全局最优解P G对应的分反解。
Among them, the initial solution of nonlinear fitting is [P s , ρ s ], where ρ s =[F G , W G ] T. When |W G |>|F G |,
Figure PCTCN2018125855-appb-000023
When |W G |<|F G |,
Figure PCTCN2018125855-appb-000024
Calculated
Figure PCTCN2018125855-appb-000025
It is the inverse solution corresponding to the global optimal solution P G.
由此可知,磁共振图像中的每个待处理像素点在P G
Figure PCTCN2018125855-appb-000026
中都存在着与P G
Figure PCTCN2018125855-appb-000027
各自对应的p B。示例性的,待处理像素点的p B在P G中可以是属于水的p B,则在
Figure PCTCN2018125855-appb-000028
中可以是属于脂肪的p B;当然,待处理像素点的p B在P G中可以是属于脂肪的p B,则在
Figure PCTCN2018125855-appb-000029
中可以是属于水的p B亦然可能。相同的待处理像素点存在两个p B的目的在于,充分利用水脂的二义性,更加精确地确定像素点是属于水成分还是脂肪成分。
It can be seen that each pixel to be processed in the magnetic resonance image is at P G and
Figure PCTCN2018125855-appb-000026
There are PG and
Figure PCTCN2018125855-appb-000027
P B corresponding to each. Exemplarily, the p B of the pixel to be processed may be p B belonging to water in P G , then
Figure PCTCN2018125855-appb-000028
It may be a part of the fat p B; of course, be processed in the pixel point P G p B may be a part of the fat p B, then
Figure PCTCN2018125855-appb-000029
It is also possible that p B belonging to water is possible. The purpose of having two p B for the same pixel to be processed is to make full use of the ambiguity of water and fat to more accurately determine whether the pixel belongs to a water component or a fat component.
为了后续计算的简便性,可以基于预设的划分方法将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,即将集合
Figure PCTCN2018125855-appb-000030
和P G中的多个p B分别划分至第一解集和第二解集中。例如,预设的划分方法可以是水脂分离结果等。
For the convenience of subsequent calculations, multiple phase factor solutions in the phase factor candidate solutions can be divided into the first solution set and the second solution set based on a preset division method, that is, the set
Figure PCTCN2018125855-appb-000030
The multiple p B in and P G are divided into the first solution set and the second solution set, respectively. For example, the preset division method may be the result of water and fat separation.
S120、基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解。S120. Determine the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, and calculate the target phase factor solution for each pixel to be processed in the water-fat conversion area.
本实施例中,水脂转换区域中的像素点可以是水区域和脂肪区域的边缘的像素点。根据第一解集和第二解集中每个待处理像素点对应的相位因子解可以确定出水区域和脂肪区域的边缘像素点,进而,可以确定出水脂转换区域。在一实施例中,可以遍历磁共振图像中每个待处理像素点,将符合预设的边缘像素点筛选条件的像素点作为边缘像素点。In this embodiment, the pixels in the water-fat conversion area may be pixels on the edges of the water area and the fat area. According to the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, the edge pixel points of the water area and the fat area can be determined, and further, the water-fat conversion area can be determined. In an embodiment, each to-be-processed pixel in the magnetic resonance image may be traversed, and the pixel that meets the preset edge pixel filtering conditions may be used as the edge pixel.
由前述内容可知,水脂转换区域内的每个待处理像素点在第一解集和第二解集中分别存在一个可能的相位因子解,将第一解集中的待处理像素点对应的相位因子解作为第一候选相位因子解,将第二解集中的该待处理像素点对应的相位因子解作为第二候选相位因子解。本实施例中,计算出水脂转换区域内每个待处理像素点的目标相位因子解,可以是从所述第一候选相位因子解和所述第二候选相位因子解选出该该待处理像素点的目标相位因子解。It can be seen from the foregoing that each pixel to be processed in the water-fat conversion area has a possible phase factor solution in the first solution set and the second solution set respectively, and the phase factor corresponding to the pixel to be processed in the first solution set The solution serves as the first candidate phase factor solution, and the phase factor solution corresponding to the pixel to be processed in the second solution set is used as the second candidate phase factor solution. In this embodiment, the target phase factor solution of each pixel to be processed in the water-fat conversion area is calculated, and the pixel to be processed may be selected from the first candidate phase factor solution and the second candidate phase factor solution The target phase factor solution for the point.
S130、基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解。S130. Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion region and the target phase factor solution of each pixel to be processed in the water-fat conversion region.
在一实施例中,可以将水脂转换区域作为已知区域,将多个子区域作为未知区域,以便根据已知区域内每个待处理像素点的目标相位因子解确定未知区域内每个待处理像素点的目标相位因子解。在一实施例中,可以将已知区域内每个待处理像素点的目标相位因子解作为先验条件逐步确定未知区域内每个待处理像素点的目标相位因子解。例如,可以基于邻域像素投票的方式确定未知区域的内场图解,上述步骤有利于提高水脂分离抗噪性和分离效率。在一实施例中,当划分出水脂转换区域确定后,可以将除水脂转换区域以外的待处理像素点,在空间上划分为至少两个连续的子区域,进而根据水脂转换区域内每个待处理像素点的目标相位因子解逐个子区域中每个待处理像素点的目标相位因 子解。In an embodiment, the water-fat conversion area can be used as a known area, and multiple sub-areas can be used as an unknown area, so as to determine each to-be-processed in the unknown area according to the target phase factor solution of each to-be-processed pixel in the known area Pixel target phase factor solution. In an embodiment, the target phase factor solution of each pixel to be processed in the known area can be used as a priori condition to gradually determine the target phase factor solution of each pixel to be processed in the unknown area. For example, the inner field diagram of the unknown area can be determined based on the neighborhood pixel voting. The above steps are beneficial to improve the noise resistance and efficiency of water-fat separation. In one embodiment, when the water-fat conversion area is divided, the pixels to be processed except the water-fat conversion area may be spatially divided into at least two consecutive sub-areas, and then each The target phase factor solution of each pixel to be processed is the target phase factor solution of each pixel to be processed in each subregion.
在一实施例中,可以基于预设的子区域选择方法依次对多个子区域进行处理,并将处理后的子区域与已知区域合并,更新已知区域。循环往复,直至将多个未知区域处理为已知区域后,得到所有待处理像素点的目标相位因子解。In an embodiment, a plurality of sub-regions may be sequentially processed based on a preset sub-region selection method, and the processed sub-regions are merged with known regions to update the known regions. Iteratively loops until multiple unknown regions are processed as known regions, and the target phase factor solutions of all pixels to be processed are obtained.
S140、根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。S140. De-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
本实施例中,当磁共振图像中每个待处理像素点的目标相位因子解确定后,磁共振图像的场位移得以确定。在已知场位移的情况下,可以通过如下公式计算每个待处理像素点的水脂信号的强度:In this embodiment, after the target phase factor solution of each pixel to be processed in the magnetic resonance image is determined, the field displacement of the magnetic resonance image is determined. When the field displacement is known, the intensity of the water and fat signal of each pixel to be processed can be calculated by the following formula:
Figure PCTCN2018125855-appb-000031
Figure PCTCN2018125855-appb-000031
其中,ρ w是水信号的强度,ρ f是脂肪信号的强度,A +(p B)为矩阵A(p B)的广义逆,S是多回波磁共振信号,如果当前待处理像素点的ρ w>ρ f,则当前待处理像素点是水信号;如果当前待处理像素点的ρ w小于或等于ρ f,则当前待处理像素点是脂肪信号。通过上述步骤提取出磁共振图像中的水图和脂肪图,实现了水脂信号的分离。 Where ρ w is the intensity of the water signal, ρ f is the intensity of the fat signal, A + (p B ) is the generalized inverse of the matrix A(p B ), S is the multi-echo magnetic resonance signal, if the current pixel to be processed Ρ wf , the current pixel to be processed is a water signal; if the ρ w of the current pixel to be processed is less than or equal to ρ f , the current pixel to be processed is a fat signal. Through the above steps, the water map and the fat map in the magnetic resonance image are extracted, and the water and fat signals are separated.
本实施例的技术方案,首先通过将计算出的磁共振图像中的每个待处理像素点的相位因子候选解分别划分至第一解集和第二解集中,以简化计算量;然后,基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出磁共振图像中的水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;进而,将水脂转换区域作为已知区域,根据已知区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解;最后,根据磁共振图像中的每个待处理像素点的目标相位 因子解提取磁共振图像中的水图和脂肪图。上述技术方案可以快速稳定估计场图,并在此基础上完成水、脂成分的正确估计。The technical solution of this embodiment first simplifies the calculation amount by dividing the calculated phase factor candidate solutions of each pixel to be processed in the magnetic resonance image into the first solution set and the second solution set respectively; then, based on The phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set determines the water-fat conversion area in the magnetic resonance image, and calculates the target phase factor for each pixel to be processed in the water-fat conversion area Solution; further, using the water-fat conversion area as a known area, the target phase factor solution of each pixel to be processed among the remaining pixels to be processed is determined according to the target phase factor solution of each pixel to be processed in the known area; Finally, according to the target phase factor of each pixel to be processed in the magnetic resonance image, the water and fat images in the magnetic resonance image are extracted. The above technical scheme can quickly and stably estimate the field map, and on this basis, complete the correct estimation of the water and fat components.
在一实施例中,所述基于磁共振图像的水脂分离方法,还可包括:获取多回波数据中与每个待处理像素点对应的最高幅值;根据所述最高幅值与至少一个预设分级阈值将磁共振图像中的多个像素点划分为至少两个分级区域;将至少两个分级等级中按照从高信噪比的区域到低信噪比的区域的顺序依次处理。In an embodiment, the water-fat separation method based on the magnetic resonance image may further include: acquiring the highest amplitude corresponding to each pixel to be processed in the multi-echo data; according to the highest amplitude and at least one The preset grading threshold divides a plurality of pixels in the magnetic resonance image into at least two grading areas; the at least two grading levels are processed in order from the area with high signal-to-noise ratio to the area with low signal-to-noise ratio.
本实施例中,为了避免低信噪比区域对高信噪比区域造成影响,可以依据幅值分级的方式实现水脂信号的分离。在一实施例中,获取多回波数据中每个待处理像素点对应的最高幅值,并将每个待处理像素点对应的最高幅值与预先设置的至少一个分级阈值进行对比,使得磁共振图像中多个待处理像素点划分为至少两个分级区域。以H1,H2,H3,...Hn+1表示多个像素点的最高幅值,其中,H1为多个待处理像素点的最高幅值的最大值,Hn+1为多个待处理像素点的最高幅值的最小值。当待处理像素点的最大幅值p满足tn-1>p>tn时,可以该待处理像素点划分到级别Hn中。In this embodiment, in order to avoid the low signal-to-noise ratio region from affecting the high signal-to-noise ratio region, the water-fat signal can be separated according to the amplitude classification method. In an embodiment, the highest amplitude corresponding to each pixel to be processed in the multi-echo data is obtained, and the highest amplitude corresponding to each pixel to be processed is compared with at least one pre-set threshold value to make the magnetic The multiple pixels to be processed in the resonance image are divided into at least two classification regions. H1, H2, H3,...Hn+1 represents the highest amplitude of multiple pixels, where H1 is the maximum value of the highest amplitude of multiple pixels to be processed, and Hn+1 is the multiple pixels to be processed The minimum value of the highest amplitude of the point. When the maximum amplitude p of the pixel to be processed satisfies tn-1>p>tn, the pixel to be processed may be classified into the level Hn.
幅值较高的区域的图像的信噪比较高,幅值较低的区域的图像的信噪比较低,因此,幅值较高的级别比幅值较低的级别有着更高的处理优先级,可以将基于磁共振图像的水脂分离方法中涉及到的多个步骤的多个分级区域,按照从高信噪比的区域到低信噪比的区域的顺序依次处理。The image with higher amplitude has higher signal-to-noise and the image with lower amplitude has lower signal-to-noise. Therefore, the higher amplitude level has higher processing than the lower amplitude level. Priority, multiple graded regions in multiple steps involved in the water-fat separation method based on magnetic resonance images can be processed in order from the region with a high signal-to-noise ratio to the region with a low signal-to-noise ratio.
示例性地,可以在计算每个待处理像素点的相位因子候选解之前,采用上述幅值分级的方法将从高信噪比的区域到低信噪比的区域依次处理,每个幅值级别内依次完成场位移求解,将幅值较高的级别的处理结果作为幅值较低的级别的参考值,有效避免了低信噪比区域对高信噪比区域造成的影响。Exemplarily, before calculating the candidate solution of the phase factor of each pixel to be processed, the above-mentioned amplitude grading method may be used to sequentially process from a region with a high SNR to a region with a low SNR, each amplitude level The field displacement is solved in turn, and the processing result of the higher amplitude level is used as the reference value of the lower amplitude level, which effectively avoids the impact of the low SNR area on the high SNR area.
实施例二Example 2
图2是一实施例中的一种基于磁共振图像的水脂分离方法的流程图。本实施例以上述多个技术方案为基础进行说明。在本实施例中,所述“将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中”可包括:根据计算出的水脂分离结果将全局最优解以及分反解中的多个相位因子解分别划分至第一解集和第二解集中。本实施例中,与上述实施例相同或相应的术语的解释在此不再赘述。2 is a flowchart of a method for separating water and fat based on a magnetic resonance image in an embodiment. This embodiment is described based on the above multiple technical solutions. In this embodiment, the “dividing multiple phase factor solutions among the phase factor candidate solutions into the first solution set and the second solution set, respectively” may include: according to the calculated water-lipid separation result, the global optimal solution And the multiple phase factor solutions in the inverse solution are divided into the first solution set and the second solution set, respectively. In this embodiment, explanations of terms that are the same as or corresponding to those in the above embodiments are not repeated here.
如图2所示,本实施例的方法可包括如下步骤。As shown in FIG. 2, the method of this embodiment may include the following steps.
S210、获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解。S210. Acquire each pixel to be processed in the magnetic resonance image, and calculate a phase factor candidate solution for each pixel to be processed, where the phase factor candidate solution includes a global optimal solution and a sub-inverse solution corresponding to the global optimal solution .
S220、根据计算出的水脂分离结果将全局最优解以及分反解中的多个相位因子解分别划分至第一解集和第二解集中。S220: Divide the global optimal solution and the multiple phase factor solutions in the split-inverse solution into the first solution set and the second solution set according to the calculated water-lipid separation results, respectively.
本实施例中,遍历全局最优解以及分反解中多个相位因子解,并通过公式(7)计算每个相位因子解的水脂信号的强度。在一实施例中,可以根据水信号的强度和脂肪信号的强度的大小关系,将多个相位因子解分别划分至第一解集和第二解集中。在一实施例中,第一解集P w可以是多个待处理像素点的全局最优解以及分反解中水信号的强度大于脂肪信号的强度的相位因子解的集合,认为属于水信号;第二解集P f可以是多个待处理像素点的全局最优解以及分反解中脂肪信号的强度大于水信号的强度的相位因子解的集合,认为属于脂肪信号,初步得到了水脂分离的可能结果。第一解集和第二解集的划分有助于简化后续步骤的计算量,实现场位移的快速确定。 In this embodiment, multiple phase factor solutions in the global optimal solution and the sub-inverse solution are traversed, and the intensity of the water and fat signal of each phase factor solution is calculated by formula (7). In an embodiment, multiple phase factor solutions may be divided into a first solution set and a second solution set according to the magnitude relationship between the strength of the water signal and the strength of the fat signal, respectively. In an embodiment, the first solution set P w may be a set of global optimal solutions of a plurality of pixels to be processed and a set of phase factor solutions in which the strength of the water signal in the split-inverse solution is greater than the strength of the fat signal, which is considered to be a water signal ; The second solution set P f may be a set of global optimal solutions for multiple pixels to be processed and a set of phase factor solutions in which the intensity of the fat signal is greater than the intensity of the water signal in the split-inverse solution. Possible result of lipid separation. The division of the first solution set and the second solution set helps to simplify the calculation of subsequent steps and realize the rapid determination of the field displacement.
在一实施例中,第一解集P w可以是全局最优解以及分反解中脂肪信号的强度大于水信号的强度的相位因子解的集合,认为属于脂肪信号;第二解集P f可以是全局最优解以及分反解中水信号的强度大于脂肪信号的强度的相位因子解的集合,认为属于水信号,初步得到了水脂分离的可能结果。 In an embodiment, the first solution set P w may be a global optimal solution and a set of phase factor solutions in which the intensity of the fat signal is greater than the intensity of the water signal in the inverse solution, which is considered to be a fat signal; the second solution set P f It may be a set of global optimal solutions and phase factor solutions in which the strength of the water signal in the split-inverse solution is greater than the strength of the fat signal. It is considered to belong to the water signal, and a possible result of water-fat separation has been obtained initially.
S230、基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解。S230. Determine the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, and calculate the target phase factor solution for each pixel to be processed in the water-fat conversion area.
S240、基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解。S240: Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area.
S250、根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。S250. De-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
本实施例的技术方案,根据计算出的水脂分离结果将全局最优解以及分反解中的所有相位因子解分别划分至第一解集和第二解集中,实现了水脂信号的初步分离,且简化了目标相位因子解求解过程的计算量。According to the technical solution of this embodiment, the global optimal solution and all phase factor solutions in the sub-inverse solution are divided into the first solution set and the second solution set respectively according to the calculated water-fat separation result, which realizes the preliminary water-fat signal It separates and simplifies the calculation of the solution process of the target phase factor.
在一实施例中,基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,可以包括:基于第一解集和第二解集中每个待处理像素点对应的相位因子解,计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集以及第二解集中的最大向量变化,根据第一解集以及第二解集对应的最大向量变化确定出水脂转换区域。In an embodiment, determining the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set may include: Processing the phase factor solution corresponding to the pixel, calculating the maximum vector change of each pixel to be processed and the multiple neighboring pixels of each pixel to be processed in the first solution set and the second solution set, according to the first The maximum vector change corresponding to the solution set and the second solution set determines the water-fat conversion region.
本实施例中,邻域像素点可以是与当前像素点在多个方向上位置邻近的像素点。可以理解的是,每个待处理像素点的邻域像素点的数量可以根据实际需求进行设置,在此并不做具体限定。In this embodiment, the neighboring pixel may be a pixel adjacent to the current pixel in multiple directions. It can be understood that the number of neighboring pixels of each pixel to be processed can be set according to actual needs, and is not specifically limited here.
如图2A所示,与当前待处理像素点r匹配的邻域像素点可以是区域10内所包含的像素点q,可以是区域10的外扩展区域20内所包含的像素点q,当然还可以是区域20的外扩展区所包含的像素点q,以此类推。为了便于计算,可以选择区域10内的八个像素点q作为当前待处理像素点r的邻域像素点。As shown in FIG. 2A, the neighboring pixels matching the current pixel r to be processed may be the pixels q included in the region 10, or may be the pixels q included in the outer extension region 20 of the region 10, and of course It may be the pixel point q contained in the outer extension of the area 20, and so on. In order to facilitate calculation, eight pixel points q in the area 10 may be selected as neighboring pixel points of the current pixel point to be processed r.
在一实施例中,基于第一解集和第二解集中每个待处理像素点对应的相位因子解,计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集以及第二解集中的向量变化,可以是根据第一解集中每个待处理像素点的相位因子解,计算当前待处理像素点与当前待处理像素点的多个邻域像素点的最大向量变化,求得当前待处理像素点对应的最大向量变化。同理,根据第二解集中每个待处理像素点的相位因子解,计算当前待处理像素点与当前待处理像素点的多个邻域像素点的最大向量变化,得到当前待处理像素点对应的最大向量变化。在一实施例中,可以根据第一解集以及第二解集对应的最大向量变化确定出待处理像素点是否属于水脂转换区域。In an embodiment, based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, a plurality of neighborhood pixels for each pixel to be processed and each pixel to be processed are calculated The vector change of the point in the first solution set and the second solution set may be based on the phase factor solution of each pixel to be processed in the first solution set to calculate the multiple neighborhoods of the current pixel to be processed and the current pixel to be processed The maximum vector change of the pixel point is to obtain the maximum vector change corresponding to the current pixel to be processed. Similarly, according to the phase factor solution of each pixel to be processed in the second solution set, calculate the maximum vector change of the current pixel to be processed and the neighboring pixels of the pixel to be processed to obtain the current pixel to be processed corresponding Maximum vector change. In an embodiment, whether the pixel to be processed belongs to the water-fat conversion region can be determined according to the maximum vector change corresponding to the first solution set and the second solution set.
在一实施例中,基于第一解集和第二解集中每个待处理像素点对应的相位因子解,计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集中最大向量变化,可以包括:对于每一个待处理像素点,基于如下公式计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集中的最大向量变化:In an embodiment, based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, a plurality of neighborhood pixels for each pixel to be processed and each pixel to be processed are calculated The maximum vector change of the point in the first solution set may include: for each pixel to be processed, calculating each pixel to be processed and multiple neighboring pixels of each pixel to be processed based on the following formula in the first The maximum vector change in the solution set:
Figure PCTCN2018125855-appb-000032
Figure PCTCN2018125855-appb-000032
其中,D w(r)表示待处理像素点r与待处理像素点r的多个邻域像素点在第一解集图中的最大向量变化;i表示邻域像素点;abs(.)代表求取绝对值;angle(.)表示求取相位角;conj(.)表示求取复共轭;P w(r i)表示待处理像素点r的邻域像素 点i在第一解集中的相位因子解。 Where D w (r) represents the maximum vector change of the pixel to be processed r and the neighboring pixels of the pixel to be processed r in the first solution set; i represents the pixel in the neighborhood; abs(.) represents Find the absolute value; angle(.) means to find the phase angle; conj(.) means to find the complex conjugate; P w (r i ) means the neighboring pixel i of the pixel r to be processed in the first solution set Phase factor solution.
在一实施例中,对于每一个待处理像素点,还可以基于如下公式分别计算每个待处理像素点与多个邻域像素点在第二解集中的最大向量变化:In an embodiment, for each pixel to be processed, the maximum vector change in the second solution set of each pixel to be processed and a plurality of neighboring pixels can also be calculated based on the following formula:
Figure PCTCN2018125855-appb-000033
Figure PCTCN2018125855-appb-000033
其中,D f(r)表示待处理像素点r与待处理像素点r的多个邻域像素点在第二解集图中的最大向量变化,P f(r i)表示待处理像素点r的邻域像素点i在第二解集中的相位因子解。 Where D f (r) represents the maximum vector change in the second solution set graph of the pixel r to be processed and the neighboring pixels r to be processed, and P f (r i ) represents the pixel r to be processed The phase factor solution of the neighboring pixel point i in the second solution set.
那么,根据上述公式可以求得每个待处理像素点与多个邻域像素点在第一解集中最大向量变化和第二解集中最大向量变化。Then, the maximum vector change in the first solution set and the maximum vector change in the second solution set can be obtained for each pixel to be processed and multiple neighboring pixel points according to the above formula.
在一实施例中,根据第一解集和第二解集对应的最大向量变化确定出水脂转换区域,可以包括:如果当前待处理像素点在第一解集中的最大向量变化和在第二解集中的最大向量变化中的至少一个大于预设转换阈值时,则当前待处理像素点属于水脂转换区域,其中,预设转换阈值可以根据采样间隔时间内水脂信号之间的相位偏移确定。In an embodiment, determining the water-fat conversion region according to the maximum vector change corresponding to the first solution set and the second solution set may include: if the maximum vector change of the current pixel to be processed in the first solution set and the second solution set When at least one of the maximum vector changes in the concentration is greater than the preset conversion threshold, the current pixel to be processed belongs to the water-fat conversion area, where the preset conversion threshold can be determined according to the phase shift between the water-fat signals within the sampling interval .
示例性地,预设转换阈值可以为α*Δφ,其中,Δφ=2πf FΔTE。 Exemplarily, the preset conversion threshold may be α*Δφ, where Δφ=2πf F ΔTE.
在ΔTE的时间内,由于水脂之间的共振频率f F不同,产生了水信号与脂肪信号之间的相位差Δφ,Δφ=2πf FΔTE。预设转换阈值α(0<α<1)过高容易出现水脂转换区域检测不完整的问题,过低容易出现非水脂转换区域的像素点被错误的检测为水脂转换区域的问题。 In the time of ΔTE, due to the different resonance frequency f F between water and fat, a phase difference Δφ between the water signal and the fat signal is generated, Δφ=2πf F ΔTE. If the preset conversion threshold α (0<α<1) is too high, the problem of incomplete detection of the water-fat conversion area is likely to occur, and if it is too low, the pixels of the non-water-fat conversion area are erroneously detected as the problem of the water-fat conversion area.
在一实施例中,α的取值范围可以是0.3<α<0.5,如,α=0.4。In an embodiment, the value range of α may be 0.3<α<0.5, for example, α=0.4.
如果当前待处理像素点在第一解集中的最大向量变化和在第二解集中的最大向量变化中的至少一个大于预设转换阈值时,则认为当前待处理像素点属于 水脂转换区域。那么,遍历磁共振图像中的每个待处理像素点可以确定哪些待处理像素点属于水脂转换区域。If at least one of the maximum vector change of the current pixel to be processed in the first solution set and the maximum vector change in the second solution set is greater than the preset conversion threshold, the current pixel to be processed belongs to the water-fat conversion region. Then, traversing each pixel to be processed in the magnetic resonance image can determine which pixels to be processed belong to the water-fat conversion region.
在一实施例中,计算出水脂转换区域内每个待处理像素点的目标相位因子解,可以包括:确定水脂转换区域中每个待处理像素点的多个邻域像素点中最大向量变化最大的目标邻域像素点;当采样间隔时间内水脂信号之间的相位偏移不等于180度的整数倍时,根据水脂转换区域中每个待处理像素点以及与所述每个待处理像素点对应的目标邻域像素点的相位因子解组合确定所述每个待处理像素点的目标相位因子解。In an embodiment, calculating the target phase factor solution for each pixel to be processed in the water-fat conversion region may include: determining the maximum vector change among multiple neighboring pixels in each pixel to be processed in the water-fat conversion region The largest target neighborhood pixel; when the phase shift between the water and fat signals during the sampling interval is not equal to an integer multiple of 180 degrees, according to each pixel to be processed in the water and fat conversion area and the The combination of the phase factor solutions of the target neighboring pixels corresponding to the processing pixels determines the target phase factor solutions of each pixel to be processed.
本实施例中,当水脂转换区域确定后,可以求解水脂转换区域中的待处理像素点在第一解集中的相位因子解还是第二解集中的相位因子解是目标相位因子解。示例性的,当前待处理像素点r的邻域各像素点q1、q2......qn,其中,n为正整数,根据公式(7)和公式(8)确定满足D w或者D f的,与当前待处理像素点r匹配的目标邻域像素点q。那么,两个像素点的相位因子解可以有四种可能的解组合,示例性的,[P w(r),P w(q)],[P w(r),P f(q)],[P f(r),P w(q)],[P f(r),P f(q)]。其中,[P w(r),P w(q)]表示使用第一解集P w中当前待处理像素点的相位因子解和目标邻域像素点的相位因子解;[P w(r),P f(q)]表示使用第一解集P w中当前待处理像素点的相位因子解和第二解集P f中目标邻域像素点的相位因子解;以此类推。 In this embodiment, after the water-fat conversion area is determined, the phase factor solution of the pixel to be processed in the water-fat conversion area in the first solution set or the phase factor solution in the second solution set can be solved as the target phase factor solution. Exemplarily, the pixels q1, q2...qn in the neighborhood of the pixel r to be processed currently, where n is a positive integer, and it is determined that D w or D is satisfied according to formula (7) and formula (8) f , the target neighboring pixel q matching the current pixel r to be processed. Then, the phase factor solution of two pixels can have four possible combinations of solutions, for example, [P w (r), P w (q)], [P w (r), P f (q)] , [P f (r), P w (q)], [P f (r), P f (q)]. Among them, [P w (r), P w (q)] means to use the phase factor solution of the current pixel to be processed in the first solution set P w and the phase factor solution of the target neighboring pixel; [P w (r) , P f (q)] means using the phase factor solution of the current pixel to be processed in the first solution set P w and the phase factor solution of the target neighborhood pixel in the second solution set P f ; and so on.
那么,当水信号和脂肪信号之间相位偏移不等于180度的整数倍时,即Δφ≠kπ时,计算上述四种可能的解组合中水信号和脂肪信号的相位差Δφ,考虑到相位差最小的解组合的磁共振图像最为光滑,并将相位差最小的解组合对应的当前待处理像素点的相位因子解作为当前待处理像素点的目标相位因子解。示例性的,如果[P w(r),P w(q)]的相位差Δφ最小,则以第一解集中的当前待处理像 素点的相位因子解作为当前待处理像素点的目标相位因子解,即选择第一解集P w中当前待处理像素点的相位因子解P w(r)作为当前待处理像素点r的目标相位因子解,以选出当前待处理像素对应的最优的相位因子解。 Then, when the phase offset between the water signal and the fat signal is not equal to an integer multiple of 180 degrees, that is, Δφ≠kπ, calculate the phase difference Δφ of the water signal and the fat signal in the above four possible combinations, taking into account the phase The magnetic resonance image of the solution combination with the smallest difference is the smoothest, and the phase factor solution of the current pixel to be processed corresponding to the solution combination with the smallest phase difference is taken as the target phase factor solution of the current pixel to be processed. Exemplarily, if the phase difference Δφ of [P w (r), P w (q)] is the smallest, the phase factor solution of the current pixel to be processed in the first solution set is used as the target phase factor of the current pixel to be processed Solution, that is, the phase factor solution P w (r) of the current pixel to be processed in the first solution set P w is selected as the target phase factor solution of the current pixel to be processed r to select the optimal corresponding to the current pixel to be processed Phase factor solution.
实施例三Example Three
图3是一实施例中的一种基于磁共振图像的水脂分离方法的流程图。本实施例以上述技术方案为基础进行说明。在本实施例中,基于水脂转换区域以及所述水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解,可包括:根据第一解集和第二解集将除水脂转换区域之外的其余待处理像素点划分为第一数量的在空间上连续的待求解子区域,其中,每个待求解子区域内的所有待处理像素点都来自于同一个解集;根据水脂转换区域内每个待处理像素点的目标相位因子解确定每个待求解子区域中每个待处理像素点的目标相位因子解。其中,与上述实施例相同或相应的术语的解释在此不再赘述。3 is a flowchart of a method for separating water and fat based on magnetic resonance images in an embodiment. This embodiment is described based on the above technical solution. In this embodiment, based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area, the target phase factor solution of each pixel to be processed among the remaining pixels to be processed is determined, It may include: dividing the remaining pixels to be processed except the water-fat conversion region into a first number of spatially consecutive sub-regions to be solved according to the first solution set and the second solution set, wherein each sub-solution All the pixels to be processed in the region come from the same solution set; the target phase of each pixel to be processed in each sub-region to be solved is determined according to the target phase factor solution of each pixel to be processed in the water-fat conversion region Factor solution. The explanation of the same or corresponding terms as those in the above embodiments will not be repeated here.
如图3所示,本实施例的方法可包括如下步骤。As shown in FIG. 3, the method of this embodiment may include the following steps.
S310、获取磁共振图像中的每个待处理像素点,分别计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解。S310. Acquire each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed separately, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and In the second solution set, the phase factor candidate solution includes a global optimal solution and a partial inverse solution corresponding to the global optimal solution.
S320、基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域。S320. Determine a water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set.
S330、根据第一解集和第二解集将除水脂转换区域之外的其余待处理像素点划分为第一数量的在空间上连续的待求解子区域,其中,每个待求解子区域 内的所有待处理像素点都来自于同一个解集。S330. Divide the remaining pixels to be processed except the water-fat conversion region into a first number of spatially continuous sub-regions to be solved according to the first solution set and the second solution set, wherein each sub-region to be solved All the pixels in the to-be-processed are from the same solution set.
在一实施例中,第一数量的数值可以根据实际需求确定。空间上连续的待求解子区域可以是在第一数量空间上存在边缘相连或者说边缘像素点相邻的待求解子区域。水脂转换区域确定之后,其余待处理像素点可以划分为第一数量的在空间上连续的待求解子区域,且每个待求解子区域内的所有待处理像素点的目标相位因子解都来自于同一个解集,即每个待求解子区域内的所有待处理像素点的目标相位因子解都来自于第一解集,或是每个待求解子区域内的所有待处理像素点的目标相位因子解都来自于第二解集中,换言之,每个待求解子区域内的所有待处理像素点只有两个可能的选择,而且所有的待处理像素点只能选同一个解集中的相位因子解。In an embodiment, the first number of values may be determined according to actual needs. The spatially continuous sub-regions to be solved may be sub-regions to be solved that have edges connected or adjacent edge pixels in the first number of spaces. After the water-fat conversion area is determined, the remaining pixels to be processed can be divided into the first number of spatially consecutive sub-regions to be solved, and the target phase factor solutions of all the pixels to be processed in each sub-region to be solved come from In the same solution set, that is, the target phase factor solution of all pixels to be processed in each sub-region to be solved comes from the first solution set, or the target of all pixels to be processed in each sub-region to be solved The phase factor solutions all come from the second solution set. In other words, all the pixels to be processed in each sub-region to be solved have only two possible choices, and all the pixels to be processed can only select the phase factor in the same solution set. solution.
S340、根据水脂转换区域内每个待处理像素点的目标相位因子解确定每个待求解子区域中每个待处理像素点的目标相位因子解。S340. Determine the target phase factor solution of each pixel to be processed in each sub-region to be solved according to the target phase factor solution of each pixel to be processed in the water-fat conversion region.
其中,当水脂转换区域内每个待处理像素点的目标相位因子确定后,可以通过邻域像素投票的方式在第一解集和第二解集中选择一个,作为子区域的待处理像素的目标相位因子解。After the target phase factor of each pixel to be processed in the water-fat conversion area is determined, one of the first solution set and the second solution set can be selected by the neighborhood pixel voting method as the pixel to be processed of the sub-region Target phase factor solution.
在一实施例中,磁共振图像中包括至少两个待求解子区域,在一实施例中,可以根据多个待求解子区域中多个待处理像素点的分级的高低确定哪个待求解子区域中的多个待处理像素点优先处理。In an embodiment, the magnetic resonance image includes at least two sub-regions to be solved. In an embodiment, it may be determined which sub-region to be solved according to the gradation level of a plurality of pixels to be processed in the plurality of sub-regions to be solved Multiple pixels to be processed are given priority.
S350、基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解。S350. Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion region and the target phase factor solution of each pixel to be processed in the water-fat conversion region.
S360、根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。S360. De-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
本实施例的技术方案,根据第一解集和第二解集将除水脂转换区域之外的其余待处理像素点划分为第一数量的在空间上连续的待求解子区域,通过划分待求解子区域的方式来实现每次确定一部分待处理像素点的目标相位因子解的快速便捷的求解;根据水脂转换区域内每个待处理像素点的目标相位因子解确定每个待求解子区域中每个待处理像素点的目标相位因子解,将已知区域的目标相位因子解作为未知区域的先验条件,可以准确计算未知区域即待求解子区域的待处理像素点的目标行为因子解。According to the technical solution of this embodiment, the remaining pixels to be processed except the water-fat conversion region are divided into a first number of spatially continuous sub-regions to be solved according to the first solution set and the second solution set. Solve the sub-region to achieve a quick and convenient solution to determine the target phase factor solution of a part of the pixels to be processed each time; determine each sub-region to be solved according to the target phase factor solution of each pixel to be processed in the water-lipid conversion region The target phase factor solution of each pixel to be processed in the image, using the target phase factor solution of the known region as a priori condition of the unknown region, can accurately calculate the target behavior factor solution of the pixel to be processed of the unknown region, that is, the sub-region to be solved .
在一实施例中,根据水脂转换区域内每个待处理像素点的目标相位因子解确定每个待求解子区域中每个待处理像素点的目标相位因子解,可以包括:获取当前所有已知区域以及当前待求解子区域在空间上邻近的多个边缘像素对,其中,当前已知区域包括水脂转换区域;基于多个边缘像素对分别计算与第一解集以及第二解集对应的第一代价函数和第二代价函数;根据第一代价函数以及第二代价函数确定每个待求解子区域中每个待处理像素点的目标相位因子解。In an embodiment, determining the target phase factor solution for each pixel to be processed in each sub-region to be solved according to the target phase factor solution for each pixel to be processed in the water-fat conversion region may include: obtaining all current A plurality of edge pixel pairs that are spatially adjacent to the known region and the current sub-region to be solved, where the current known region includes a water-lipid conversion region; based on the plurality of edge pixel pairs, the corresponding to the first solution set and the second solution set are calculated respectively The first cost function and the second cost function of; determine the target phase factor solution of each pixel to be processed in each sub-region to be solved according to the first cost function and the second cost function.
本实施例中,邻近的边缘像素对可以认为是已知区域和待求解子区域在空间上紧挨着的像素点组成的像素对,示例性的,如图3A所示,当前已知区域30包括待处理像素点301、302,当前待求解子区域40包括待处理像素点401、402,则待处理像素点301和待处理像素点401可以构成邻近的边缘像素对;待处理像素点302和待处理像素点402可以构成邻近的边缘像素对In this embodiment, adjacent edge pixel pairs can be regarded as a pixel pair composed of pixels of the known region and the subregion to be solved spatially next to each other. Exemplarily, as shown in FIG. 3A, the current known region 30 Including the pixels to be processed 301 and 302, and the current sub-region 40 to be solved includes pixels to be processed 401 and 402, then the pixels to be processed 301 and the pixels to be processed 401 can form adjacent edge pixel pairs; the pixels to be processed 302 and Pixels to be processed 402 may form adjacent edge pixel pairs
在一实施例中,根据当前所有已知区域以及当前待求解子区域的多个边缘像素对可以计算与第一解集对应的第一代价函数,以及与第二解集对应的第二代价函数。根据上述代价函数可以确定多个待求解子区域中多个待处理像素点 的目标相位因子解是第一解集中的相位因子解还是第二解集中的相位因子解。In an embodiment, the first cost function corresponding to the first solution set and the second cost function corresponding to the second solution set can be calculated according to multiple edge pixel pairs of all currently known regions and the current sub-region to be solved . According to the above cost function, it can be determined whether the target phase factor solutions of the multiple pixels to be processed in the multiple sub-regions to be solved are the phase factor solutions in the first solution set or the phase factor solutions in the second solution set.
在一实施例中,当把水脂转换区域作为已知区域时,可以基于预设的筛选条件从其余的待求解子区域中选择一个作为当前待求解子区域;然后将当前待求解子区域与已知区域合并,作为已知区域;重复执行基于预设的筛选条件从其余的待求解子区域中选择一个作为当前待求解子区域的操作,直至所有的待求解子区域更新为已知区域。本实施例中,预设的筛选条件可以是会根据多个待求解子区域中多个像素点的最高幅值确定出的多个待求解子区域的优先级;或者待求解子区域与已知区域构成邻近的边缘像素对的数量等等。In one embodiment, when the water-fat conversion area is used as a known area, one of the remaining sub-areas to be solved can be selected as the current sub-area to be solved based on preset filter conditions; then the current sub-area to be solved is The known areas are merged to become a known area; the operation of selecting one of the remaining sub-areas to be solved as the current sub-area to be solved based on preset filter conditions is repeatedly performed until all the sub-areas to be solved are updated to the known area. In this embodiment, the preset filtering condition may be the priorities of multiple sub-regions to be determined according to the highest amplitudes of multiple pixel points in multiple sub-regions to be solved; or the sub-regions to be solved and the known The area constitutes the number of adjacent edge pixel pairs and so on.
在一实施例中,基于多个边缘像素对分别计算与第一解集以及第二解集对应的第一代价函数和第二代价函数,包括:基于各边缘像素对以及如下公式分别计算与第一解集以及第二解集对应的第一代价函数C w和第二代价函数C fIn an embodiment, calculating the first cost function and the second cost function corresponding to the first solution set and the second solution set based on the plurality of edge pixel pairs respectively includes: calculating the first cost function and the second cost function based on each edge pixel pair and the following formula The first cost function C w and the second cost function C f corresponding to the first solution set and the second solution set:
Figure PCTCN2018125855-appb-000034
Figure PCTCN2018125855-appb-000034
Figure PCTCN2018125855-appb-000035
Figure PCTCN2018125855-appb-000035
其中,
Figure PCTCN2018125855-appb-000036
表示当前已知区域,
Figure PCTCN2018125855-appb-000037
为当前待求解子区域,
Figure PCTCN2018125855-appb-000038
(s j,k j)表示
Figure PCTCN2018125855-appb-000039
Figure PCTCN2018125855-appb-000040
在空间上邻近的多个边缘像素对,J为
Figure PCTCN2018125855-appb-000041
Figure PCTCN2018125855-appb-000042
之间多个临近像素对的总数目;angle(.)表示求取相位角;conj(.)表示求取复共轭;|.|表示取绝对值;P w(s j)表示未知区域中的待处理像素点s j在第一解集P w中的相位因子解;P f(s j)表示未知待处理像素点s j在第一解集P f中的相位因子解;P(k j)表示当前已知区域待处理像素点k j的目标相位因子解。
among them,
Figure PCTCN2018125855-appb-000036
Indicates the current known area,
Figure PCTCN2018125855-appb-000037
Is the current sub-region to be solved,
Figure PCTCN2018125855-appb-000038
(s j , k j ) means
Figure PCTCN2018125855-appb-000039
know
Figure PCTCN2018125855-appb-000040
Multiple pairs of edge pixels adjacent in space, J is
Figure PCTCN2018125855-appb-000041
versus
Figure PCTCN2018125855-appb-000042
The total number of adjacent pixel pairs between; angle(.) means to obtain the phase angle; conj(.) means to obtain the complex conjugate; |.| means to take the absolute value; P w (s j ) means in the unknown region The phase factor solution of the to-be-processed pixel s j in the first solution set P w ; P f (s j ) represents the phase factor solution of the unknown to-be-processed pixel s j in the first solution set P f ; P(k j ) represents the target phase factor solution of the pixel k j to be processed in the currently known area.
本实施例中,通过空间上所有邻近像素对(s j,k j),确定当前待求解子区域
Figure PCTCN2018125855-appb-000043
中所有待处理像素点与第一解集的相位因子解对应的第一代价函数和与第二解集的相位因子解对应的第二代价函数。
In this embodiment, the current sub-region to be solved is determined by all neighboring pixel pairs (s j , k j ) in space
Figure PCTCN2018125855-appb-000043
All the pixels to be processed in the first cost function corresponding to the phase factor solution of the first solution set and the second cost function corresponding to the phase factor solution of the second solution set.
在一实施例中,根据第一代价函数以及第二代价函数确定每个待求解子区域中每个待处理像素点的目标相位因子解,可以包括:将第一解集或第二解集中,与第一代价函数以及第二代价函数中较小的代价函数对应的解集中的相位因子解,作为当前待求解子区域中每个待处理像素点的目标相位因子解。In an embodiment, determining the target phase factor solution for each pixel to be processed in each sub-region to be solved according to the first cost function and the second cost function may include: collecting the first solution set or the second solution set, The phase factor solution in the solution set corresponding to the smaller cost function in the first cost function and the second cost function is used as the target phase factor solution for each pixel to be processed in the current sub-region to be solved.
本实施例中,代价函数越小时,损失越小,磁共振图像越收敛。因此,第一代价函数以及第二代价函数中较小的代价函数作为目标相位因子解的求解参考。示例性的,如果C w<C f,当前待求解子区域
Figure PCTCN2018125855-appb-000044
中所有待处理像素选择第一解集P w中的相位因子解作为目标相位因子解;如果C f<C w,则选择第二解集P f中的相位因子解作为目标相位因子解。
In this embodiment, the smaller the cost function, the smaller the loss and the more convergent the magnetic resonance image. Therefore, the smaller cost function of the first cost function and the second cost function serves as a reference for solving the target phase factor solution. Exemplarily, if C w <C f , the current subregion to be solved
Figure PCTCN2018125855-appb-000044
All pixels to be processed in the process select the phase factor solution in the first solution set P w as the target phase factor solution; if C f <C w , the phase factor solution in the second solution set P f is selected as the target phase factor solution.
在上述技术方案的基础上,所述基于磁共振图像的水脂分离方法,还可以包括:如果当前待求解子区域与任一当前已知区域均不相邻,且当前数据集中存在多层磁共振图像,则沿图像层排布的方向获取相邻磁共振图像层中当前所有已知区域以及当前待求解子区域在空间上邻近的多个边缘像素对。Based on the above technical solution, the water-fat separation method based on the magnetic resonance image may further include: if the current sub-region to be solved is not adjacent to any currently known region, and there are multiple layers of magnetic data in the current data set For the resonance image, a plurality of edge pixel pairs that are spatially adjacent to all the currently known regions and the current sub-regions in the adjacent magnetic resonance image layer are obtained along the direction in which the image layers are arranged.
本实施例中,如果当前待求解子区域与任一已知区域在平面空间上不相邻时,且当前数据集只存在一层磁共振图像,则可以根据公式(7)的计算结果确定当前待求解子区域中的待处理像素点的是属于水成分还是属于脂肪成分;如果当前数据集中存在多层磁共振图像,则可以沿图像层排布的方向获取相邻磁共振图像层中当前所有已知区域以及当前待求解子区域在空间上邻近的所有边缘像素对,进而采用上述求解第一代价函数和第二代价函数的方法确定当前待求解子区域中的待处理像素点的是属于水成分还是属于脂肪成分。上述步骤设置的好处在于,可以结合邻近层磁共振图像的多个像素点的相位因子解,有效处理在平面空间上像素点不连续时目标相位因子解的求解问题。In this embodiment, if the current sub-region to be solved is not adjacent to any known region in plane space, and there is only one layer of magnetic resonance image in the current data set, the current result can be determined according to the calculation result of formula (7) Whether the pixels to be processed in the sub-region to be solved belong to the water component or the fat component; if there are multiple magnetic resonance images in the current data set, all the current magnetic resonance image layers can be obtained along the direction of the image layer arrangement Knowing the region and all edge pixel pairs spatially adjacent to the current sub-region to be solved, and then using the above method of solving the first cost function and the second cost function to determine whether the pixels to be processed in the current sub-region to be solved belong to water The ingredients are still fat. The advantage of the above step setting is that it can combine the phase factor solutions of multiple pixels of the adjacent layer magnetic resonance image to effectively deal with the solution of the target phase factor solution when the pixels are discontinuous in the plane space.
实施例四Example 4
图4是一实施例中的一种基于磁共振图像的水脂分离方法的流程图。本实施例以上述技术方案为基础进行说明。在本实施例中,所述方法还可以包括:如果磁共振图像的信噪比低于预设阈值,则通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定水脂转换区域中每个待处理像素点的目标相位因子解。其中,与上述实施例相同或相应的术语的解释在此不再赘述。相应的,如图4所示,本实施例的方法可包括如下步骤。4 is a flowchart of a method for separating water and fat based on magnetic resonance images in an embodiment. This embodiment is described based on the above technical solution. In this embodiment, the method may further include: if the signal-to-noise ratio of the magnetic resonance image is lower than a preset threshold, resolving the target phase factor of a plurality of pixels to be processed in a known area by local growth Determine the target phase factor solution for each pixel to be processed in the water-fat conversion area. The explanation of the same or corresponding terms as those in the above embodiments will not be repeated here. Accordingly, as shown in FIG. 4, the method of this embodiment may include the following steps.
S410、获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解。S410. Obtain each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and the In the second solution set, the phase factor candidate solution includes a global optimal solution and a divided and inverse solution corresponding to the global optimal solution.
S420、基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解。S420. Determine the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, and calculate the target phase factor solution for each pixel to be processed in the water-fat conversion area.
S430、基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解。S430. Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion region and the target phase factor solution of each pixel to be processed in the water-fat conversion region.
S440、如果磁共振图像的信噪比低于预设阈值,则通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定水脂转换区域中每个待处理像素点的目标相位因子解。S440. If the signal-to-noise ratio of the magnetic resonance image is lower than a preset threshold, then re-determine each to-be-processed pixel in the water-fat conversion area according to the target phase factor solution of multiple to-be-processed pixel points in the known area by means of local growth The target phase factor solution for the point.
本实施例中,当磁共振图像的信噪比达到预设阈值时,根据上述步骤得到的每个待处理像素点的目标相位因子解可以确定场位移。但是,如果磁共振图像的信噪比低于预设阈值时,低信噪比下求解的水脂转换区域的待处理像素点 的场位移可能会存在错误。因此,在确定所有待求解子区域中每个待处理边缘点的目标相位因子解后,可以将上述待求解子区域作为已知区域,通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定水脂转换区域中每个待处理像素点的目标相位因子解。In this embodiment, when the signal-to-noise ratio of the magnetic resonance image reaches a preset threshold, the target phase factor solution of each pixel to be processed obtained according to the above steps may determine the field displacement. However, if the signal-to-noise ratio of the magnetic resonance image is lower than the preset threshold, there may be errors in the field displacement of the pixels to be processed in the water-fat conversion region under the low signal-to-noise ratio. Therefore, after determining the target phase factor solution of each to-be-processed edge point in all to-be-solved sub-regions, the above-mentioned to-be-solved sub-region can be used as a known region, and multiple pixels to be processed in the known region can be locally grown The target phase factor solution of the point re-determines the target phase factor solution of each pixel to be processed in the water-fat conversion region.
在一实施例中,通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定水脂转换区域中每个待处理像素点的目标相位因子解,可以包括:分别计算水脂转换区域中当前待处理像素点在第一解集以及第二解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别;将与计算出的两个差别中较小的差别对应的待选相位因子解作为当前待处理像素点的目标相位因子解。In an embodiment, redetermining the target phase factor solution of each pixel to be processed in the water-fat conversion region by locally increasing the target phase factor solution of multiple pixels to be processed in the known area may include: Calculate the difference between the selected phase factor solution in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion area and the target phase factor solution of multiple neighboring pixels; it will be different from the calculated two The phase factor solution to be selected corresponding to the smaller difference in the difference is used as the target phase factor solution of the current pixel to be processed.
本实施例中,水脂转换区域中包括至少两个待处理像素点,因此可以基于预设的条件选择其中一个待处理像素点作为当前待处理像素点。示例性的,可以根据水脂转换区域中多个待处理像素点邻域内的像素点是已知区域的像素点的个数进行选择,选择邻域内属于已知区域的像素点最多的待处理像素点,作为当前待处理像素点。In this embodiment, the water-fat conversion area includes at least two pixels to be processed, so one of the pixels to be processed may be selected as the current pixel to be processed based on a preset condition. Exemplarily, the selection can be based on the number of pixels in the neighborhood of a plurality of pixels to be processed in the water-fat conversion area, and the pixels to be processed in the neighborhood that have the most pixels in the known area Point, as the current pixel to be processed.
在一实施例中,比较当前待处理像素点在第一解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别;再比较当前待处理像素点在第二解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别;将差别较小的解集中的待选相位因子解作为当前待处理像素点的目标相位因子解。In an embodiment, compare the difference between the phase factor solution to be selected in the first solution set of the current pixel to be processed and the target phase factor solution of multiple neighboring pixels; then compare the current pixel to be processed in the second solution set The difference between the phase factor solution to be selected and the target phase factor solution of multiple neighboring pixels; the phase factor solution to be selected in the solution set with a small difference is taken as the target phase factor solution of the current pixel to be processed.
在一实施例中,如果当前待处理像素点邻域内的多个像素点中的部分像素点是属于已知区域的像素点,则可以基于这些属于已知区域的邻域像素点的目标相位因子解计算当前待处理像素点在第一解集和第二解集中的差别。In an embodiment, if some of the pixels in the neighborhood of the pixel to be processed are pixels belonging to a known area, the target phase factor of these neighboring pixels belonging to the known area may be used The solution calculates the difference between the current pixel to be processed in the first solution set and the second solution set.
在一实施例中,分别计算水脂转换区域中当前待处理像素点在第一解集以及第二解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别,可以包括:基于如下公式计算水脂转换区域中当前待处理像素点第X个待选解与多个邻域像素点的目标相位因子的差别D XIn one embodiment, the difference between the phase factor solution to be selected in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion region and the target phase factor solution of multiple neighboring pixel points can be calculated separately. It includes: calculating the difference D X between the X-th solution to be selected and the target phase factors of multiple neighboring pixels in the water-fat conversion area based on the following formula:
Figure PCTCN2018125855-appb-000045
Figure PCTCN2018125855-appb-000045
其中,K是所有已知目标相位因子的邻域像素点;X为待选解个数;m k为第k个邻域像素点在所有回波信号中的最大幅值,p B,k表示第k个邻域像素的目标相位因子解;angle(.)表示求取相位角;conj(.)表示求取复共轭。 Among them, K is the neighboring pixels of all known target phase factors; X is the number of solutions to be selected; m k is the maximum amplitude of the kth neighboring pixel in all echo signals, p B, k represents The target phase factor solution of the k-th neighbor pixel; angle(.) means to obtain the phase angle; conj(.) means to obtain the complex conjugate.
其中,X=1或者X=2时分别是根据第一解集的相位因子解进行计算和根据第二解集中的相位因子解进行计算的计算结果,换言之,D X可以认为是D w或是D f。当D 1<D 2时,则以水脂转换区域中当前待处理像素点在第一解集中的相位因子解作为目标相位因子解;当D 1≥D 2时,则以水脂转换区域中当前待处理像素点在第二解集中的相位因子解作为目标相位因子解。 Where X=1 or X=2 are calculated according to the phase factor solution of the first solution set and the phase factor solution of the second solution set, in other words, D X can be regarded as D w or D f . When D 1 <D 2 , the phase factor solution of the current pixel to be processed in the water-fat conversion area in the first solution set is taken as the target phase factor solution; when D 1 ≥ D 2 , the water-fat conversion area is used The phase factor solution of the current pixel to be processed in the second solution set is used as the target phase factor solution.
S450、根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。S450. De-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
本实施例的技术方案,如果磁共振图像的信噪比低于预设阈值,则通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定水脂转换区域中每个待处理像素点的目标相位因子解,可以有效避免低信噪比下求解的水脂转换区域的待处理像素点的场位移可能会存在错误的问题。According to the technical solution of this embodiment, if the signal-to-noise ratio of the magnetic resonance image is lower than the preset threshold, then the local phase increase method is used to re-determine the water-fat conversion area according to the target phase factor solution of multiple pixels to be processed in the known area The solution of the target phase factor of each pixel to be processed can effectively avoid the problem that the field displacement of the pixel to be processed in the water-fat conversion region solved under a low signal-to-noise ratio may have errors.
为了验证上述技术方案的有效性,以人体腹部的数据进行测试:采集系统为西门子3T磁共振系统,序列为多回波GRE序列,采集参数是TE=1.8/3.3/4.8/6.3/7.8/9.3ms,翻转角=3°,层厚5mm,重复时间12ms,矩阵大 小为176*256,基于上述水脂分离方法对采集到的图像进行处理,水脂分离结果如图4A所示。图中肝部区域的信噪比SNR分别为22.16、4.89和2.6,四列图像分别是多个信噪比下的第一个回波幅值图、相位因子图、脂肪图和水图分离结果。由此可以看出,上述水脂分离方法在低信噪比的情况下仍然可以实现稳定准确地分离水脂信号。In order to verify the effectiveness of the above technical solutions, the data of the human abdomen were used for testing: the acquisition system was a Siemens 3T magnetic resonance system, the sequence was a multi-echo GRE sequence, and the acquisition parameters were TE=1.8/3.3/4.8/6.3/7.8/9.3 ms, flip angle=3°, layer thickness 5mm, repetition time 12ms, matrix size 176*256, the acquired image is processed based on the above water-fat separation method, and the result of water-fat separation is shown in FIG. 4A. The signal-to-noise ratio SNR of the liver region in the figure is 22.16, 4.89 and 2.6, respectively. The four columns of images are the first echo amplitude map, phase factor map, fat map and water map separation results under multiple signal-to-noise ratios. . It can be seen from the above that the above water-fat separation method can still achieve stable and accurate separation of water-fat signals under the condition of low signal-to-noise ratio.
示例性的,上述技术方案的实现过程可以概括为:在每个幅值分级中的多个待处理像素点可以被划分成两类:属于水脂转换区域和不属于水脂转换区域。在每个幅值分级中会首先提取水脂转换区域的所有待处理像素点,考虑所有不同相位因子解组合并选出最平滑的相位因子解作为水脂转换区域待处理像素点的目标相位因子解;以邻域内已知区域的解作为初始条件通过投票的方式逐步确定不属于水脂转换区域的解。每个幅值分级像素处理完后,迭代到下一个幅值分级处理中,幅值分级高的区域的目标相位因子解作为幅值分级低区域的先验条件。用已知区域的结果处理未知区域,可以有效避免低信噪比的影像。Exemplarily, the implementation process of the foregoing technical solution can be summarized as follows: multiple pixels to be processed in each amplitude grading can be divided into two categories: belong to the water-fat conversion region and not belong to the water-fat conversion region. In each amplitude classification, all the pixels to be processed in the water-fat conversion area are first extracted, all the different phase factor solutions are considered and the smoothest phase factor solution is selected as the target phase factor of the pixels to be processed in the water-fat conversion area Solution: Use the solution of the known area in the neighborhood as the initial condition to gradually determine the solution that does not belong to the water-lipid conversion area by voting. After processing each amplitude-graded pixel, iterate to the next amplitude-grading process. The target phase factor solution of the region with high amplitude classification is used as a priori condition for the region with low amplitude classification. Processing unknown areas with the results of known areas can effectively avoid images with low signal-to-noise ratio.
上述基于磁共振图像的分离方法不仅可以应用于水脂分离成像,还可以应用于其他的化学位移编码成像,仅需适应性修改模型中的相应参数即可。The above-mentioned separation method based on magnetic resonance images can be applied not only to water-fat separation imaging, but also to other chemical shift-coded imaging, as long as the corresponding parameters in the model need to be adaptively modified.
实施例五Example 5
图5为一实施例提供的基于磁共振图像的水脂分离装置的结构框图,该装置用于执行上述任意实施例所提供的基于磁共振图像的水脂分离方法。该装置与上述实施例的基于磁共振图像的水脂分离方法属于同一个构思,在基于磁共振图像的水脂分离装置的实施例中未描述的细节内容,可以参考上述基于磁共振图像的水脂分离方法的实施例。参见图5,该装置可包括:解集划分模块510、水脂转换区域确定模块520、目标相位因子解确定模块530和水脂图像分离模块 540。FIG. 5 is a structural block diagram of a water-fat separation device based on a magnetic resonance image provided by an embodiment, and the device is used to perform the water-fat separation method based on a magnetic resonance image provided by any of the above embodiments. This device and the magnetic resonance image-based water and fat separation method of the above embodiment belong to the same concept. For details not described in the embodiment of the magnetic resonance image-based water and fat separation device, reference may be made to the above-mentioned water based on the magnetic resonance image Examples of lipid separation methods. Referring to FIG. 5, the apparatus may include: a de-aggregation module 510, a water-fat conversion region determination module 520, a target phase factor solution determination module 530, and a water-fat image separation module 540.
本实施例中,解集划分模块510,设置为获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解;水脂转换区域确定模块520,设置为基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;目标相位因子解确定模块530,设置为基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解;水脂图像分离模块540,设置为根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。In this embodiment, the solution set division module 510 is configured to acquire each pixel to be processed in the magnetic resonance image, calculate the candidate phase factor solution for each pixel to be processed, and divide multiple phases in the candidate phase factor solution The factor solutions are divided into the first solution set and the second solution set, respectively, where the phase factor candidate solutions include the global optimal solution and the sub-inverse solution corresponding to the global optimal solution; the water-fat conversion area determination module 520 is set to The phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set determines the water-fat conversion area, and calculates the target phase factor solution for each pixel to be processed in the water-fat conversion area; the target phase factor solution is determined Module 530, set to determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area; water-fat image The separation module 540 is configured to de-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
本实施例的技术方案,首先通过获取磁共振图像中的每个待处理像素点,将分别计算出的磁共振图像中的每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,以简化计算量;然后,基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出磁共振图像中的水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;进而,将基于水脂转换区域作为已知区域,根据已知区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解,根据已知区域求解未知区域的目标相位因子解;最后,根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像中的水图和脂肪图。上述技术方案可以快速稳定估计场图,并在此基础上完成水、脂成分的正确估计。In the technical solution of this embodiment, first, by acquiring each pixel to be processed in the magnetic resonance image, the phase factor candidate solution of each pixel to be processed in the magnetic resonance image calculated separately, and the phase factor candidate solution The multiple phase factor solutions in are divided into the first solution set and the second solution set respectively to simplify the calculation; then, based on the phase factor solutions corresponding to each pixel to be processed in the first solution set and the second solution set, determine The water-fat conversion area in the magnetic resonance image is obtained, and the target phase factor solution of each pixel to be processed in the water-fat conversion area is calculated; further, the water-fat conversion area is used as a known area, and the known area and water-fat are used as the known area The target phase factor solution of each pixel to be processed in the conversion area determines the target phase factor solution of each pixel to be processed among the remaining pixels to be processed, and the target phase factor solution of the unknown area is solved according to the known area; finally, according to The target phase factor of each pixel to be processed in the magnetic resonance image extracts the water map and fat map in the magnetic resonance image. The above technical scheme can quickly and stably estimate the field map, and on this basis, complete the correct estimation of the water and fat components.
在一实施例中,解集划分模块510,可以包括:In an embodiment, the disaggregation module 510 may include:
解集划分子模块,设置为根据计算出的水脂分离结果将全局最优解以及分反解中的多个相位因子解分别划分至第一解集和第二解集中。The solution set division submodule is configured to divide the global optimal solution and the multiple phase factor solutions in the split-inverse solution into the first solution set and the second solution set according to the calculated water-lipid separation results, respectively.
在一实施例中,水脂转换区域确定模块520,可以包括:In an embodiment, the water-fat conversion area determination module 520 may include:
水脂转换区域确定模块子模块,设置为基于第一解集和第二解集中每个待处理像素点对应的相位因子解,计算每个待处理像素点与多个邻域像素点在第一解集以及第二解集中的最大向量变化,根据第一解集以及第二解集对应的最大向量变化确定出水脂转换区域。The sub-module of the water-fat conversion area determination module is set to calculate each to-be-processed pixel point and multiple neighboring pixel points in the first based on the phase factor solution corresponding to each to-be-processed pixel point in the first and second solution sets The maximum vector change in the solution set and the second solution set determines the water-fat conversion region according to the maximum vector change corresponding to the first solution set and the second solution set.
在一实施例中,水脂转换区域确定模块子模块,可以包括:In an embodiment, the water-fat conversion area determination module sub-module may include:
最大向量变化计算单元,设置为对于每一个待处理像素点,基于如下公式分别计算每个待处理像素点与多个邻域像素点在第一解集中最大向量变化:The maximum vector change calculation unit is set to calculate, for each pixel to be processed, the maximum vector change in the first solution set for each pixel to be processed and multiple neighboring pixels based on the following formula:
Figure PCTCN2018125855-appb-000046
Figure PCTCN2018125855-appb-000046
其中,D w(r)表示待处理像素点r与待处理像素点r的多个邻域像素点在第一解集图中的最大向量变化;i表示邻域像素点;abs(.)代表求取绝对值;angle(.)表示求取相位角;conj(.)表示求取复共轭;P w(r i)表示待处理像素点r的邻域像素点i在第一解集中的相位因子解。 Where D w (r) represents the maximum vector change of the pixel to be processed r and the neighboring pixels of the pixel to be processed r in the first solution set; i represents the pixel in the neighborhood; abs(.) represents Find the absolute value; angle(.) means to find the phase angle; conj(.) means to find the complex conjugate; P w (r i ) means the neighboring pixel i of the pixel r to be processed in the first solution set Phase factor solution.
在一实施例中,水脂转换区域确定模块子模块,可以包括:In an embodiment, the water-fat conversion area determination module sub-module may include:
水脂转换区域确定单元,设置为如果当前待处理像素点在第一解集中的最大向量变化和在第二解集中的最大向量变化中的至少一个大于预设转换阈值时,则当前待处理像素点属于水脂转换区域,其中,预设转换阈值根据采样间隔时间内水脂信号之间的相位偏移确定。The water-fat conversion area determining unit is set to set the current pixel to be processed if at least one of the maximum vector change of the current pixel to be processed in the first solution set and the maximum vector change in the second solution set is greater than a preset conversion threshold The point belongs to the water-fat conversion area, where the preset conversion threshold is determined according to the phase shift between the water-fat signals within the sampling interval.
在一实施例中,水脂转换区域确定模块520,还可以包括:目标邻域像素点 确定子模块和目标相位因子解确定子模块。In an embodiment, the water-fat conversion area determination module 520 may further include: a target neighborhood pixel point determination sub-module and a target phase factor solution determination sub-module.
其中,目标邻域像素点确定子模块,设置为确定水脂转换区域中每个待处理像素点的多个邻域像素点中最大向量变化最大的目标邻域像素点;目标相位因子解确定子模块,当采样间隔时间内水脂信号之间的相位偏移不等于180度的整数倍时,根据水脂转换区域中每个待处理像素点以及与所述每个待处理像素点对应的目标邻域像素点的相位因子解组合确定所述每个待处理像素点的目标相位因子解。Among them, the target neighborhood pixel determination submodule is set to determine the target neighborhood pixel with the largest vector change among the multiple neighborhood pixels of each pixel to be processed in the water-fat conversion area; the target phase factor solution determiner Module, when the phase shift between the water and fat signals within the sampling interval is not equal to an integer multiple of 180 degrees, according to each pixel to be processed in the water and fat conversion area and the target corresponding to each pixel to be processed The combination of phase factor solutions of the neighboring pixels determines the target phase factor solution of each pixel to be processed.
在一实施例中,目标相位因子解确定模块530,可以包括:待求解子区域确定子模块和待求解子区域中的目标相位因子解确定子模块。其中,待求解子区域确定子模块,设置为根据第一解集和第二解集将除水脂转换区域之外的其余待处理像素点划分为第一数量的在空间上连续的待求解子区域,其中,每个待求解子区域内的所有待处理像素点都来自于同一个解集;待求解子区域中的目标相位因子解确定子模块,设置为根据水脂转换区域内每个待处理像素点的目标相位因子解确定每个待求解子区域中每个待处理像素点的目标相位因子解。In an embodiment, the target phase factor solution determination module 530 may include: a sub-region determination sub-module to be solved and a target phase factor solution determination sub-module in the sub-region to be solved. Among them, the sub-region determination sub-module to be solved is set to divide the remaining pixels to be processed except the water-fat conversion region into the first number of spatially consecutive sub-solves to be solved according to the first solution set and the second solution set Area, where all the pixels to be processed in each sub-area to be solved come from the same solution set; the target phase factor solution determination sub-module in the sub-area to be solved is set according to each The target phase factor solution of the processing pixel determines the target phase factor solution of each pixel to be processed in each sub-region to be solved.
在一实施例中,待求解子区域中的目标相位因子解确定子模块,可以包括:边缘像素对获取单元、代价函数计算单元和待求解子区域中的目标相位因子解确定单元。In an embodiment, the target phase factor solution determination sub-module in the sub-region to be solved may include: an edge pixel pair acquisition unit, a cost function calculation unit, and a target phase factor solution determination unit in the sub-region to be solved.
其中,边缘像素对获取单元,设置为获取当前所有已知区域以及当前待求解子区域在空间上邻近的多个边缘像素对,其中,当前已知区域包括水脂转换区域;代价函数计算单元,设置为基于多个边缘像素对分别计算与第一解集以及第二解集对应的第一代价函数和第二代价函数;待求解子区域中的目标相位因子解确定单元,设置为根据第一代价函数以及第二代价函数确定每个待求解 子区域中每个待处理像素点的目标相位因子解。Among them, the edge pixel pair acquisition unit is set to acquire multiple edge pixel pairs spatially adjacent to all the current known regions and the current sub-region to be solved, wherein the current known region includes a water-fat conversion region; a cost function calculation unit, Set to calculate the first cost function and the second cost function corresponding to the first solution set and the second solution set based on multiple edge pixel pairs, respectively; the target phase factor solution determination unit in the sub-region to be solved is set to The cost function and the second cost function determine the target phase factor solution of each pixel to be processed in each sub-region to be solved.
在一实施例中,代价函数计算单元是设置为:In an embodiment, the cost function calculation unit is set to:
基于多个边缘像素对以及如下公式分别计算与第一解集以及第二解集对应的第一代价函数C w和第二代价函数C fThe first cost function C w and the second cost function C f corresponding to the first solution set and the second solution set are calculated based on multiple edge pixel pairs and the following formulas, respectively:
Figure PCTCN2018125855-appb-000047
Figure PCTCN2018125855-appb-000047
Figure PCTCN2018125855-appb-000048
Figure PCTCN2018125855-appb-000048
其中,
Figure PCTCN2018125855-appb-000049
表示当前已知区域,
Figure PCTCN2018125855-appb-000050
为当前待求解子区域,
Figure PCTCN2018125855-appb-000051
(s j,k j)表示
Figure PCTCN2018125855-appb-000052
Figure PCTCN2018125855-appb-000053
在空间上邻近的多个边缘像素对,J为
Figure PCTCN2018125855-appb-000054
Figure PCTCN2018125855-appb-000055
之间多个临近像素对的总数目;angle(.)表示求取相位角;conj(.)表示求取复共轭;|.|表示取绝对值;P w(s j)表示未知区域中的待处理像素点s j在第一解集P w中的相位因子解;P f(s j)表示未知待处理像素点s j在第一解集P f中的相位因子解;P(k j)表示当前已知区域待处理像素点k j的目标相位因子解。
among them,
Figure PCTCN2018125855-appb-000049
Indicates the current known area,
Figure PCTCN2018125855-appb-000050
Is the current subregion to be solved,
Figure PCTCN2018125855-appb-000051
(s j , k j ) means
Figure PCTCN2018125855-appb-000052
know
Figure PCTCN2018125855-appb-000053
Multiple pairs of edge pixels adjacent in space, J is
Figure PCTCN2018125855-appb-000054
versus
Figure PCTCN2018125855-appb-000055
The total number of adjacent pixel pairs between; angle(.) means to obtain the phase angle; conj(.) means to obtain the complex conjugate; |.| means to take the absolute value; P w (s j ) means in the unknown region The phase factor solution of the to-be-processed pixel s j in the first solution set P w ; P f (s j ) represents the phase factor solution of the unknown to-be-processed pixel s j in the first solution set P f ; P(k j ) represents the target phase factor solution of the pixel k j to be processed in the currently known area.
在一实施例中,待求解子区域中的目标相位因子解确定单元是设置为:In an embodiment, the target phase factor solution determination unit in the sub-region to be solved is set to:
待求解子区域中的目标相位因子解确定子单元,设置为将第一解集或第二解集中,与第一代价函数以及第二代价函数中较小的代价函数对应的解集中的相位因子解,作为当前待求解子区域中每个待处理像素点的目标相位因子解。The target phase factor solution determination subunit in the sub-region to be solved is set to set the phase factor in the solution set corresponding to the first cost function and the second cost function in the first solution set or the second solution set corresponding to the smaller cost function in the first cost function and the second cost function The solution serves as the target phase factor solution for each pixel to be processed in the current sub-region to be solved.
在一实施例中,待求解子区域中的目标相位因子解确定子模块,还可以设置为:In an embodiment, the target phase factor solution determination sub-module in the sub-region to be solved may also be set as:
如果当前待求解子区域与任一当前已知区域均不相邻,且当前数据集中存在多层磁共振图像,则沿图像层排布的方向获取相邻磁共振图像层中当前所有已知区域以及当前待求解子区域在空间上邻近的多个边缘像素对。If the current sub-region to be solved is not adjacent to any currently known region, and there are multiple layers of magnetic resonance images in the current data set, all the currently known regions in the adjacent magnetic resonance image layer are obtained along the direction of the image layer arrangement And the spatially adjacent edge pixel pairs of the subregion to be solved.
在一实施例中,在上述装置的基础上,所述装置还可以包括:In an embodiment, based on the above device, the device may further include:
低信噪比处理模块,设置为如果磁共振图像的信噪比低于预设阈值,则通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定水脂转换区域中每个待处理像素点的目标相位因子解。The low signal-to-noise ratio processing module is set to re-determine the water-fat conversion according to the target phase factor solution of multiple pixels to be processed in the known area by local growth if the signal-to-noise ratio of the magnetic resonance image is lower than a preset threshold The target phase factor solution for each pixel to be processed in the area.
在一实施例中,低信噪比处理模块,可以包括:In an embodiment, the low signal-to-noise ratio processing module may include:
差别计算子模块,设置为分别计算水脂转换区域中当前待处理像素点在第一解集及第二解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别;The difference calculation submodule is configured to calculate the difference between the phase factor solution to be selected in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion area and the target phase factor solution of multiple neighboring pixels;
低信噪比处理子模块,设置为将与计算出的两个差别中较小的差别对应的待选相位因子解作为当前待处理像素点的目标相位因子解。The low signal-to-noise ratio processing sub-module is configured to use the selected phase factor solution corresponding to the smaller difference between the two calculated differences as the target phase factor solution of the current pixel to be processed.
在一实施例中,差别计算子模块,是设置为:In an embodiment, the difference calculation submodule is set as:
基于如下公式计算水脂转换区域中当前待处理像素点第X个待选解与多个邻域像素点的目标相位因子的差别D XCalculate the difference D X between the X-th to-be-selected solution of the current pixel to be processed and the target phase factors of multiple neighboring pixels in the water-fat conversion area based on the following formula:
Figure PCTCN2018125855-appb-000056
Figure PCTCN2018125855-appb-000056
其中,K是所有已知目标相位因子的邻域像素点;X为待选解个数;m k为第k个邻域像素点在所有回波信号中的最大幅值,p B,k表示第k个邻域像素的目标相位因子解;angle(.)表示求取相位角;conj(.)表示求取复共轭。 Among them, K is the neighboring pixels of all known target phase factors; X is the number of solutions to be selected; m k is the maximum amplitude of the kth neighboring pixel in all echo signals, p B, k represents The target phase factor solution of the k-th neighbor pixel; angle(.) means to obtain the phase angle; conj(.) means to obtain the complex conjugate.
在一实施例中,所述装置还可以包括:In an embodiment, the device may further include:
最高幅值获取模块,设置为获取多回波数据中与每个待处理像素点对应的最高幅值;The highest amplitude acquisition module is set to acquire the highest amplitude corresponding to each pixel to be processed in the multi-echo data;
分级区域划分模块,设置为根据所述最高幅值与至少一个预设分级阈值将磁共振图像中的多个像素点划分为至少两个分级区域;A hierarchical area dividing module, configured to divide a plurality of pixels in the magnetic resonance image into at least two hierarchical areas according to the highest amplitude and at least one preset hierarchical threshold;
顺序处理模块,设置为将至少两个分级等级中按照从高信噪比的区域到低 信噪比的区域的顺序依次处理。The sequential processing module is configured to process at least two grading levels in order from the area with a high signal-to-noise ratio to the area with a low signal-to-noise ratio.
本实施例所提供的基于磁共振图像的水脂分离装置可执行本发明任意实施例所提供的基于磁共振图像的水脂分离方法,具备执行方法相应的功能模块和有益效果。The device for separating water and fat based on magnetic resonance images provided in this embodiment can execute the method for separating water and fat based on magnetic resonance images provided in any embodiment of the present invention, and has a function module and beneficial effects corresponding to the execution method.
上述基于磁共振图像的水脂分离装置的实施例中,所包括的至少一个单元和至少一个模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,每个功能单元的名称也只是为了便于相互区分,并不用于限制本公开的保护范围。In the above embodiment of the water-fat separation device based on the magnetic resonance image, at least one unit and at least one module included are only divided according to functional logic, but it is not limited to the above division, as long as the corresponding function can be achieved ; In addition, the name of each functional unit is only to facilitate the distinction between each other, and is not used to limit the scope of protection of the present disclosure.
实施例六Example Six
图6为一实施例提供的一种设备的结构示意图,如图6所示,该设备包括存储器610、处理器620、输入装置630和输出装置640。设备中的处理器620的数量可以是一个或多个,图6中以一个处理器620为例;设备中的存储器610、处理器620、输入装置630和输出装置640可以通过总线或其它方式连接,图6中以通过总线650连接为例。6 is a schematic structural diagram of a device provided by an embodiment. As shown in FIG. 6, the device includes a memory 610, a processor 620, an input device 630, and an output device 640. The number of processors 620 in the device may be one or more, and one processor 620 is taken as an example in FIG. 6; the memory 610, processor 620, input device 630, and output device 640 in the device may be connected through a bus or other means In FIG. 6, the connection through the bus 650 is taken as an example.
存储器610作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如上述实施例中的基于磁共振图像的水脂分离方法对应的程序指令/模块(例如,基于磁共振图像的水脂分离装置中解集划分模块510、水脂转换区域确定模块520、目标相位因子解确定模块530和水脂图像分离模块540)。处理器620通过运行存储在存储器610中的软件程序、指令以及模块,从而执行设备的至少一种功能应用以及数据处理,即实现上述的基于磁共振图像的水脂分离方法。The memory 610, as a computer-readable storage medium, can be configured to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the water-fat separation method based on magnetic resonance images in the above embodiments (for example, based on The de-aggregation and division module 510, the water-fat conversion area determination module 520, the target phase factor solution determination module 530, and the water-fat image separation module 540 in the water-fat separation device of the magnetic resonance image. The processor 620 executes at least one functional application of the device and data processing by running software programs, instructions, and modules stored in the memory 610, that is, implementing the above-mentioned magnetic resonance image-based water-fat separation method.
存储器610可主要包括存储程序区和存储数据区,其中,存储程序区可存 储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器610可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器610可包括相对于处理器620远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 610 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of the device, and the like. In addition, the memory 610 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 610 may include memories remotely provided with respect to the processor 620, and these remote memories may be connected to the device through a network. Examples of the aforementioned network include, but are not limited to, the Internet, intranet, local area network, mobile communication network, and combinations thereof.
输入装置630可设置为接收输入的数字或字符信息,以及产生与装置的用户设置以及功能控制有关的键信号输入。输出装置640可包括显示屏等显示设备。The input device 630 may be configured to receive input numeric or character information, and generate key signal input related to user settings and function control of the device. The output device 640 may include a display device such as a display screen.
实施例七Example 7
本实施例提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种基于磁共振图像的水脂分离方法,该方法包括:This embodiment provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to execute a method for separating water and fat based on a magnetic resonance image. The method includes:
获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,相位因子候选解包括全局最优解以及与全局最优解对应的分反解;Obtain each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and the second solution respectively Concentration, where the candidate solution of the phase factor includes the global optimal solution and the inverse solution corresponding to the global optimal solution;
基于第一解集和第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出水脂转换区域内每个待处理像素点的目标相位因子解;Based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, the water-fat conversion area is determined, and the target phase factor solution for each pixel to be processed in the water-fat conversion area is calculated;
基于水脂转换区域以及水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解;Determine the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area;
根据磁共振图像中的每个待处理像素点的目标相位因子解提取磁共振图像 中的水图和脂肪图。According to the target phase factor of each pixel to be processed in the magnetic resonance image, the water map and fat map in the magnetic resonance image are extracted.
本实施例所提供的一种包含计算机可执行指令的存储介质,计算机可执行指令不限于如上所述的方法操作,还可以执行上述任意实施例所提供的基于磁共振图像的水脂分离方法中的相关操作。This embodiment provides a storage medium containing computer-executable instructions. The computer-executable instructions are not limited to the method operations described above, and may also be used in the water-fat separation method based on magnetic resonance images provided in any of the above embodiments. Related operations.
通过以上关于实施方式的描述,所属领域的技术人员可以了解到,本公开可借助软件及通用硬件来实现,也可以通过硬件实现,。依据这样的理解,本公开的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行上述任意实施例所述的方法。Through the above description of the embodiments, those skilled in the art can understand that the present disclosure can be implemented by software and general hardware, or by hardware. Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (Read-Only Memory, ROM), Random access memory (RAM), flash memory (FLASH), hard disk or optical disc, etc., including multiple instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform any of the above implementations Example method.

Claims (18)

  1. 一种基于磁共振图像的水脂分离方法,包括:A water-fat separation method based on magnetic resonance images, including:
    获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将所述相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,其中,所述相位因子候选解包括全局最优解以及与所述全局最优解对应的分反解;Obtain each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions in the phase factor candidate solution into the first solution set and the first A two-solution set, wherein the candidate phase factor solutions include a global optimal solution and a partial and inverse solution corresponding to the global optimal solution;
    基于所述第一解集和所述第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出所述水脂转换区域内每个待处理像素点的目标相位因子解;Based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, a water-fat conversion area is determined, and the target of each pixel to be processed in the water-fat conversion area is calculated Phase factor solution;
    基于水脂转换区域以及所述水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解;Determining the target phase factor solution of each pixel to be processed among the remaining pixels to be processed based on the water-fat conversion area and the target phase factor solution of each pixel to be processed in the water-fat conversion area;
    根据所述磁共振图像中的每个待处理像素点的目标相位因子解提取所述磁共振图像中的水图和脂肪图。De-extract the water map and fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
  2. 根据权利要求1所述的方法,其中,所述将所述相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中,包括:The method according to claim 1, wherein the dividing the plurality of phase factor solutions in the phase factor candidate solutions into a first solution set and a second solution set respectively includes:
    根据计算出的水脂分离结果将所述全局最优解以及所述分反解中的多个相位因子解分别划分至第一解集和第二解集中。According to the calculated water-lipid separation result, the global optimal solution and the plurality of phase factor solutions in the sub-inverse solution are divided into a first solution set and a second solution set, respectively.
  3. 根据权利要求2所述的方法,其中,所述基于所述第一解集和所述第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,包括:The method according to claim 2, wherein the determining the water-fat conversion area based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set includes:
    基于所述第一解集和所述第二解集中每个待处理像素点对应的相位因子解,计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集以及第二解集中的最大向量变化,根据第一解集以及第二解集对应的最大向量变化确定出水脂转换区域。Based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, calculating a plurality of neighborhood pixels between each pixel to be processed and each pixel to be processed The maximum vector change in the first solution set and the second solution set determines the water-fat conversion region according to the maximum vector change corresponding to the first solution set and the second solution set.
  4. 根据权利要求3所述的方法,其中,所述基于所述第一解集和所述第二解集中每个待处理像素点对应的相位因子解,计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集中的最大向量变化,包括:The method according to claim 3, wherein, based on the phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, calculating each pixel to be processed and the The maximum vector change of multiple neighboring pixels in the first solution set of the pixels to be processed includes:
    基于如下公式计算每个待处理像素点与所述每个待处理像素点的多个邻域像素点在第一解集中的最大向量变化:Calculate the maximum vector change in the first solution set for each pixel to be processed and multiple neighboring pixels for each pixel to be processed based on the following formula:
    Figure PCTCN2018125855-appb-100001
    Figure PCTCN2018125855-appb-100001
    其中,D w(r)表示待处理像素点r与所述待处理像素点r的邻域像素点在第一解集图中的最大向量变化;i表示邻域像素点;abs(.)代表求取绝对值;angle(.)表示求取相位角;conj(.)表示求取复共轭;P w(r i)表示待处理像素点r的邻域像素点i在第一解集中的相位因子解。 Where D w (r) represents the maximum vector change of the pixel to be processed r and the neighboring pixel of the pixel r to be processed in the first solution set graph; i represents the pixel of the neighborhood; abs(.) represents Find the absolute value; angle(.) means to find the phase angle; conj(.) means to find the complex conjugate; P w (r i ) means the neighboring pixel i of the pixel r to be processed in the first solution set Phase factor solution.
  5. 根据权利要求4所述的方法,其中,所述根据第一解集以及第二解集对应的最大向量变化确定出水脂转换区域,包括:The method according to claim 4, wherein the determining the water-fat conversion region according to the maximum vector change corresponding to the first solution set and the second solution set includes:
    如果当前待处理像素点在第一解集中的最大向量变化和在第二解集中的最大向量变化中的至少一个大于预设转换阈值时,则所述当前待处理像素点属于水脂转换区域,其中,所述预设转换阈值根据采样间隔时间内水脂信号之间的相位偏移确定。If at least one of the maximum vector change of the current pixel to be processed in the first solution set and the maximum vector change in the second solution set is greater than a preset conversion threshold, the current pixel to be processed belongs to a water-fat conversion region, Wherein, the preset conversion threshold is determined according to the phase shift between the water and fat signals within the sampling interval.
  6. 根据权利要求3所述的方法,其中,所述计算出所述水脂转换区域内每个待处理像素点的目标相位因子解,包括:The method according to claim 3, wherein the calculating the target phase factor solution of each pixel to be processed in the water-fat conversion region includes:
    确定所述水脂转换区域中每个待处理像素点的多个邻域像素点中所述最大向量变化最大的目标邻域像素点;Determining the target neighboring pixel with the largest change in the largest vector among the neighboring pixels in each pixel to be processed in the water-fat conversion region;
    当采样间隔时间内水脂信号之间的相位偏移不等于180度的整数倍时,根据所述水脂转换区域中每个待处理像素点以及与所述每个待处理像素点对应的 目标邻域像素点的相位因子解组合确定所述每个待处理像素点的目标相位因子解。When the phase shift between the water and fat signals within the sampling interval is not equal to an integer multiple of 180 degrees, according to each pixel to be processed in the water and fat conversion area and the target corresponding to each pixel to be processed The combination of phase factor solutions of the neighboring pixels determines the target phase factor solution of each pixel to be processed.
  7. 根据权利要求1所述的方法,其中,所述基于水脂转换区域以及所述水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解,包括:The method according to claim 1, wherein the target phase factor solution based on the water-fat conversion region and each pixel to be processed in the water-fat conversion region determines each pixel to be processed among the remaining pixels to be processed The target phase factor solution for points, including:
    根据所述第一解集和所述第二解集将除水脂转换区域之外的其余待处理像素点划分为第一数量的在空间上连续的待求解子区域,其中,每个待求解子区域内的所有待处理像素点都来自于同一个解集;According to the first solution set and the second solution set, the remaining pixels to be processed except the water-fat conversion region are divided into a first number of spatially continuous sub-regions to be solved, wherein each to be solved All pixels to be processed in the sub-region come from the same solution set;
    根据所述水脂转换区域内每个待处理像素点的目标相位因子解确定每个待求解子区域中每个待处理像素点的目标相位因子解。The target phase factor solution of each pixel to be processed in each sub-region to be solved is determined according to the target phase factor solution of each pixel to be processed in the water-fat conversion region.
  8. 根据权利要求7所述的方法,其中,所述根据所述水脂转换区域内每个待处理像素点的目标相位因子解确定每个所述待求解子区域中每个待处理像素点的目标相位因子解,包括:The method according to claim 7, wherein the target is determined according to the target phase factor solution of each pixel to be processed in the water-fat conversion region Phase factor solutions, including:
    获取当前所有已知区域以及当前待求解子区域在空间上邻近的多个边缘像素对,其中,当前已知区域包括水脂转换区域;Obtain spatially adjacent edge pixel pairs of all currently known regions and the current subregion to be solved, where the currently known region includes a water-fat conversion region;
    基于多个边缘像素对分别计算与所述第一解集以及所述第二解集对应的第一代价函数和第二代价函数;Calculating a first cost function and a second cost function corresponding to the first solution set and the second solution set based on a plurality of edge pixel pairs, respectively;
    根据所述第一代价函数以及所述第二代价函数确定每个待求解子区域中每个待处理像素点的目标相位因子解。The target phase factor solution of each pixel to be processed in each sub-region to be solved is determined according to the first cost function and the second cost function.
  9. 根据权利要求8所述的方法,其中,所述基于多个边缘像素对分别计算与所述第一解集以及所述第二解集对应的第一代价函数和第二代价函数,包括:The method according to claim 8, wherein the calculating the first cost function and the second cost function corresponding to the first solution set and the second solution set based on the plurality of edge pixel pairs respectively comprises:
    基于多个边缘像素对以及如下公式分别计算与所述第一解集以及所述第二 解集对应的第一代价函数C w和第二代价函数C fCalculate the first cost function C w and the second cost function C f corresponding to the first solution set and the second solution set based on multiple edge pixel pairs and the following formula:
    Figure PCTCN2018125855-appb-100002
    Figure PCTCN2018125855-appb-100002
    Figure PCTCN2018125855-appb-100003
    Figure PCTCN2018125855-appb-100003
    其中,
    Figure PCTCN2018125855-appb-100004
    表示当前已知区域,
    Figure PCTCN2018125855-appb-100005
    为当前待求解子区域,
    Figure PCTCN2018125855-appb-100006
    (s j,k j)表示
    Figure PCTCN2018125855-appb-100007
    Figure PCTCN2018125855-appb-100008
    在空间上邻近的多个边缘像素对,J为
    Figure PCTCN2018125855-appb-100009
    Figure PCTCN2018125855-appb-100010
    之间多个临近像素对的总数目;angle(.)表示求取相位角;conj(.)表示求取复共轭;|.|表示取绝对值;P w(s j)表示未知区域中的待处理像素点s j在第一解集P w中的相位因子解;P f(s j)表示未知待处理像素点s j在第一解集P f中的相位因子解;P(k j)表示当前已知区域待处理像素点k j的目标相位因子解。
    among them,
    Figure PCTCN2018125855-appb-100004
    Indicates the current known area,
    Figure PCTCN2018125855-appb-100005
    Is the current subregion to be solved,
    Figure PCTCN2018125855-appb-100006
    (s j , k j ) means
    Figure PCTCN2018125855-appb-100007
    with
    Figure PCTCN2018125855-appb-100008
    Multiple pairs of edge pixels adjacent in space, J is
    Figure PCTCN2018125855-appb-100009
    versus
    Figure PCTCN2018125855-appb-100010
    The total number of adjacent pixel pairs between; angle(.) means to obtain the phase angle; conj(.) means to obtain the complex conjugate; |.| means to take the absolute value; P w (s j ) means in the unknown region The phase factor solution of the to-be-processed pixel s j in the first solution set P w ; P f (s j ) represents the phase factor solution of the unknown to-be-processed pixel s j in the first solution set P f ; P(k j ) represents the target phase factor solution of the pixel k j to be processed in the currently known area.
  10. 根据权利要求8所述的方法,其中,所述根据所述第一代价函数以及所述第二代价函数确定每个待求解子区域中每个待处理像素点的目标相位因子解,包括:The method according to claim 8, wherein the determining the target phase factor solution of each pixel to be processed in each sub-region to be solved according to the first cost function and the second cost function comprises:
    将第一解集或第二解集中,与所述第一代价函数以及所述第二代价函数中较小的代价函数对应的解集中的相位因子解,作为当前待求解子区域中每个待处理像素点的目标相位因子解。The first solution set or the second solution set, the phase factor solution in the solution set corresponding to the smaller cost function of the first cost function and the second cost function is taken as each pending in the current sub-region to be solved Process the target phase factor solution of the pixel.
  11. 根据权利要求8所述的方法,还包括:The method of claim 8, further comprising:
    如果当前待求解子区域与任一当前已知区域均不相邻,且当前数据集中存在多层磁共振图像,则沿图像层排布的方向获取相邻磁共振图像层中当前所有已知区域以及当前待求解子区域在空间上邻近的多个边缘像素对。If the current sub-region to be solved is not adjacent to any currently known region, and there are multiple layers of magnetic resonance images in the current data set, all the currently known regions in the adjacent magnetic resonance image layer are obtained along the direction of the image layer arrangement And the spatially adjacent edge pixel pairs of the subregion to be solved.
  12. 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    如果所述磁共振图像的信噪比低于预设阈值,则通过局部增长的方式根据已知区域中多个待处理像素点的目标相位因子解重新确定所述水脂转换区域中 每个待处理像素点的目标相位因子解。If the signal-to-noise ratio of the magnetic resonance image is lower than a preset threshold, the target phase factor solution of a plurality of pixels to be processed in the known area is re-determined in a local growth manner to determine each target in the water-fat conversion area Process the target phase factor solution of the pixel.
  13. 根据权利要求12所述的方法,其中,所述通过局部增长的方式根据已知重新确定所述水脂转换区域中每个待处理像素点的目标相位因子解,包括:The method according to claim 12, wherein the re-determining the target phase factor solution of each pixel to be processed in the water-fat conversion region according to a known method by local growth includes:
    分别计算所述水脂转换区域中当前待处理像素点在第一解集以及第二解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别;Respectively calculating the difference between the phase factor solution to be selected in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion region and the target phase factor solution of multiple neighboring pixel points;
    将与计算出的两个差别中较小的差别对应的待选相位因子解作为所述当前待处理像素点的目标相位因子解。The phase factor solution to be selected corresponding to the smaller difference between the two calculated differences is used as the target phase factor solution of the current pixel to be processed.
  14. 根据权利要求13所述的方法,其中,所述分别计算所述水脂转换区域中当前待处理像素点在第一解集以及第二解集中的待选相位因子解与多个邻域像素点的目标相位因子解的差别,包括:The method according to claim 13, wherein the separately calculating the phase factor solution to be selected in the first solution set and the second solution set of the current pixel to be processed in the water-fat conversion region and the plurality of neighboring pixel points Differences in the solution of the target phase factor, including:
    基于如下公式计算所述水脂转换区域中当前待处理像素点第X个待选解与多个邻域像素点的目标相位因子的差别D XCalculate the difference D X between the X-th to-be-selected solution of the current pixel to be processed and the target phase factor of multiple neighboring pixels in the water-fat conversion area based on the following formula:
    Figure PCTCN2018125855-appb-100011
    Figure PCTCN2018125855-appb-100011
    其中,K是所有已知目标相位因子的邻域像素点;X为待选解个数;m k为第k个邻域像素点在所有回波信号中的最大幅值,p B,k表示第k个邻域像素的目标相位因子解;angle(.)表示求取相位角;conj(.)表示求取复共轭。 Among them, K is the neighboring pixels of all known target phase factors; X is the number of solutions to be selected; m k is the maximum amplitude of the kth neighboring pixel in all echo signals, p B, k represents The target phase factor solution of the k-th neighbor pixel; angle(.) means to obtain the phase angle; conj(.) means to obtain the complex conjugate.
  15. 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    获取多回波数据中与每个待处理像素点对应的最高幅值;Obtain the highest amplitude corresponding to each pixel to be processed in the multi-echo data;
    根据最高幅值与至少一个预设分级阈值将所述磁共振图像中的多个像素点划分为至少两个分级区域;Divide multiple pixels in the magnetic resonance image into at least two grading areas according to the highest amplitude and at least one preset grading threshold;
    将所述至少两个分级等级中按照从高信噪比的区域到低信噪比的区域的顺序依次处理。The at least two classification levels are processed in order from the region with a high signal-to-noise ratio to the region with a low signal-to-noise ratio.
  16. 一种基于磁共振图像的水脂分离装置,包括:A water-fat separation device based on magnetic resonance image, including:
    解集划分模块,设置为获取磁共振图像中的每个待处理像素点,计算每个待处理像素点的相位因子候选解,并将所述相位因子候选解中的多个相位因子解分别划分至第一解集和第二解集中;The solution set division module is set to obtain each pixel to be processed in the magnetic resonance image, calculate the phase factor candidate solution for each pixel to be processed, and divide the multiple phase factor solutions among the phase factor candidate solutions respectively To the first solution set and the second solution set;
    水脂转换区域确定模块,设置为基于所述第一解集和所述第二解集中每个待处理像素点对应的相位因子解,确定出水脂转换区域,并计算出所述水脂转换区域内每个待处理像素点的目标相位因子解;The water-fat conversion area determination module is configured to determine a water-fat conversion area based on a phase factor solution corresponding to each pixel to be processed in the first solution set and the second solution set, and calculate the water-fat conversion area The target phase factor solution of each pixel to be processed within;
    目标相位因子解确定模块,设置为基于水脂转换区域以及所述水脂转换区域内每个待处理像素点的目标相位因子解确定出其余待处理像素点中每个待处理像素点的目标相位因子解;The target phase factor solution determination module is configured to determine the target phase of each pixel to be processed among the remaining pixels to be processed based on the target phase factor solution of the water-fat conversion region and each pixel to be processed in the water-fat conversion region Factor solution
    水脂图像分离模块,设置为根据所述磁共振图像中的每个待处理像素点的目标相位因子解提取所述磁共振图像中的水图和脂肪图。The water-fat image separation module is configured to de-extract the water map and the fat map in the magnetic resonance image according to the target phase factor of each pixel to be processed in the magnetic resonance image.
  17. 一种设备,包括:A device, including:
    至少一个处理器;At least one processor;
    存储器,设置为存储至少一个程序;Memory, set to store at least one program;
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-11中任一所述的基于磁共振图像的水脂分离方法。When the at least one program is executed by the at least one processor, the at least one processor implements the water-fat separation method based on the magnetic resonance image according to any one of claims 1-11.
  18. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-11中任一所述的基于磁共振图像的水脂分离方法。A computer-readable storage medium storing a computer program, which when executed by a processor implements the water-fat separation method based on the magnetic resonance image according to any one of claims 1-11.
PCT/CN2018/125855 2018-12-29 2018-12-29 Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium WO2020133527A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125855 WO2020133527A1 (en) 2018-12-29 2018-12-29 Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125855 WO2020133527A1 (en) 2018-12-29 2018-12-29 Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium

Publications (1)

Publication Number Publication Date
WO2020133527A1 true WO2020133527A1 (en) 2020-07-02

Family

ID=71127473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125855 WO2020133527A1 (en) 2018-12-29 2018-12-29 Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium

Country Status (1)

Country Link
WO (1) WO2020133527A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013130587A1 (en) * 2012-02-28 2013-09-06 The Board Of Regents Of The University Of Texas System Method and apparatus for extended phase correction in phase sensitive magnetic resonance imaging
CN104382597A (en) * 2014-11-11 2015-03-04 奥泰医疗系统有限责任公司 Dixon water-grease separation and discriminating method and system in magnetic resonance imaging
CN106908747A (en) * 2015-12-23 2017-06-30 中国科学院深圳先进技术研究院 Chemical shift coded imaging method and device
CN107205684A (en) * 2015-12-30 2017-09-26 中国科学院深圳先进技术研究院 A kind of magnetic resonance chemical shift coded imaging method, device and equipment
US20170363699A1 (en) * 2016-06-20 2017-12-21 Toshiba Medical Systems Corporation Mri apparatus and image processing apparatus
EP3413070A1 (en) * 2017-06-09 2018-12-12 Koninklijke Philips N.V. Dual-echo dixon-type water/fat separation mr imaging

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013130587A1 (en) * 2012-02-28 2013-09-06 The Board Of Regents Of The University Of Texas System Method and apparatus for extended phase correction in phase sensitive magnetic resonance imaging
CN104382597A (en) * 2014-11-11 2015-03-04 奥泰医疗系统有限责任公司 Dixon water-grease separation and discriminating method and system in magnetic resonance imaging
CN106908747A (en) * 2015-12-23 2017-06-30 中国科学院深圳先进技术研究院 Chemical shift coded imaging method and device
CN107205684A (en) * 2015-12-30 2017-09-26 中国科学院深圳先进技术研究院 A kind of magnetic resonance chemical shift coded imaging method, device and equipment
US20170363699A1 (en) * 2016-06-20 2017-12-21 Toshiba Medical Systems Corporation Mri apparatus and image processing apparatus
EP3413070A1 (en) * 2017-06-09 2018-12-12 Koninklijke Philips N.V. Dual-echo dixon-type water/fat separation mr imaging

Similar Documents

Publication Publication Date Title
CN111768411B (en) Coronary centerline extraction method, device, computer equipment and storage medium
US8503751B2 (en) Method and apparatus for implementing fat-water separation in a magnetic resonance system
US9367924B2 (en) Method and system for segmentation of the liver in magnetic resonance images using multi-channel features
KR101423835B1 (en) Liver segmentation method in a medical image
JP5874039B2 (en) Stereo image processing apparatus and stereo image processing method
CN103578101A (en) Method and apparatus for improving depth of field (DOF) in microscopy
US11747424B2 (en) Magnetic resonance imaging apparatus, image processing apparatus, and image processing method
CN103345731A (en) Anisotropy diffusion image noise reduction method based on McIlhagga edge detection operator
Letscher et al. Image segmentation using topological persistence
JP6656895B2 (en) Image processing apparatus, image processing method, image processing program, and magnetic resonance imaging apparatus
CN107907846B (en) Eddy current correction method and device, mobile terminal and readable storage medium
JP2008146278A (en) Cell outline extraction device, cell outline extraction method and program
WO2020133527A1 (en) Method, device, and apparatus for water-fat separation using magnetic resonance image, and storage medium
CN109767433B (en) Water-fat separation method, device and equipment based on magnetic resonance image and storage medium
WO2017113208A1 (en) Magnetic resonance chemical-shift-encoded imaging method, apparatus, and device
WO2023061000A1 (en) Generation method for ultrasonic mammary gland three-dimensional panoramic image and ultrasonic device
Song et al. Analysis and improvement of joint bilateral upsampling for depth image super-resolution
CN110865322B (en) Water-fat separation method, device, storage medium and equipment for magnetic resonance imaging
JP2011179964A (en) Automatic polarization separation of ionogram ionosphere echo and automatic reading method
US10782379B2 (en) Method, apparatus, and device for magnetic resonance chemical shift encoding imaging
Mofidi et al. An adaptive parameter estimation in a BTV regularized image super-resolution reconstruction
CN109959885B (en) Imaging method based on binary decision tree, device and storage medium thereof
CN113470032A (en) Water-fat separation method and device based on magnetic resonance imaging and computer equipment
CN114325523B (en) T1 value determining method, device, electronic equipment and storage medium
US9710726B2 (en) Correlation using overlayed patches

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: 18944218

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18944218

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18944218

Country of ref document: EP

Kind code of ref document: A1