-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Units for FWHM of N4BiasFieldCorrection #334
Comments
I would suggest reading the original N3 paper (page 88) as the meaning of that parameter is exactly the same in N4. You can read this there but, in the image formation model, u(x) = v(x)f(x) + n(x), F is the probability distribution of the spatially-dependent scaling factor f(x) (i.e., bias field). The FWHM parameter is in reference to the F distribution. Another reason to read the original N3 discussion is that Sled discusses varying the FWHM parameter in the evaluation. |
Thanks Nick. I’ll add the paper to my reading list. I did some more experimenting today and found that adding an extra stage (and so correspondingly decreasing the spline distance) made a bigger improvement than decreasing the FWHM.
|
If you have small voxels, be sure you're taking that into account when using the spline distance option. - |
Yes, I’m using -b [1x1x1,3] for the spline initialisation. I guess that’s why adding the third stage made such an improvement.
|
I find a good way to think about bias field correction is the following: In the original N3, you just specify the FWHM of the correction, and it tries to fit at that scale immediately. This sometimes has issues, especially when fitting smaller scales due to poor initialization of the splines compared to the actual field. N4, in comparison, can be initialized at a larger scale, and then with each step decrease the scale to improve convergence. Your initialization Instead, it may make more sense to initialize with a real-world scale like i.e. Note: My discussions of scale are a slight simplification, N4 actually picks a number of control points based on the scale specified and then doubles them each step. |
Thanks Gabriel. Just to clear up some potential misconceptions - the FWHM I was asking about is for the -t option, not the spline point spacing of the -b option. The bias field is the inhomogeneity in the RF coil’s receive field - not the main magnetic field. The scale of this inhomogeneity is on the order of the wavelength of the RF field at the field strength / frequency of your scanner. For a 3T scanner the frequency is 128 MHz, which in free space would have a wavelength of about 2 meters. However dielectric effects reduce this to around 20 cm in water - see page 32 of this thesis: http://d-scholarship.pitt.edu/9979/1/saekho_121904.pdf http://d-scholarship.pitt.edu/9979/1/saekho_121904.pdf. For 7T the frequency is 300 MHz, so the corresponding wavelengths will be reduced by a factor of 2.3. So I should probably be using an initial spline distance of ~85mm, given that 200mm is the default and I assume was worked out on 3T images. I’ll give that a try. Toby
|
Ah, I missed you were discussing a different parameter. Thanks for the citation, that's really helpful! |
Hi,
I've cross-posted this question to the ITK community list as well. Sorry for the duplication.
What are the units for the FWHM of the histogram-sharpening option on N4BiasFieldCorrection? mm? Voxels? Something else entirely?
I am trying to bias-correct some pre-clinical images that have small voxels (100 micron isotropic), and reducing the FWHM by a factor of 10 makes quite a difference to the output bias field.
Thanks.
The text was updated successfully, but these errors were encountered: