Save parameters for N4 bias field correction

Hi, I have acquired a 6 points MRI Dixon sequence from which I have derived Water, Fat and Fat Fraction images. Since the derived images all come from the same original sequence, they all share the same field bias (at least, they do visually). I was wondering if instead of performing bias field correction on all of them (via SimpleITK.N4BiasFieldCorrectionImageFilter) I could simply calculate the bias field correction on one of the derived image, save the correction parameters and apply them to the others, in order to save time.

Hello @federico_nemmi,

Unfortunately, this is not doable just yet. It has been on our todo list for a while. Now that you’ve raised the issue again, we’ll look into it shortly.

This example computes the bias field, then applies it to the image. What you need is to apply it to multiple images instead of one. You could save the bias field image into a file, but that complicates things a little and might not be necessary.

A new method has just been added: N4BiasFieldCorrectionImageFilter::GetLogBiasFieldAsImage(Image referenceImage ) to do what you want. And the N4 example to use this method to apply the bias field to the original input image.

This new feature is available in the latest nightly builds and will be in the future 2.1 release:

1 Like