Skip to content
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

Denoise and INU correct anatomical images post-merge #400

Open
effigies opened this issue Nov 23, 2023 · 1 comment
Open

Denoise and INU correct anatomical images post-merge #400

effigies opened this issue Nov 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@effigies
Copy link
Member

Is your feature request related to a problem? Please describe.

In cases where we run DenoiseImage and N4BiasFieldCorrection on multiple images, we're almost certainly wasting effort. DenoiseImage estimates and removes Gaussian or Rician noise. The sum of Gaussians is Gaussian and the sum of Ricians is Rician, so there is no advantage to running DenoiseImage prior to merge unless the noise present in the image damages the ability to align and merge the images.

Similarly, N4BiasFieldCorrection estimates bias fields at a particular spatial frequency. Summing the bias fields of two images should not generate a bias field of a higher spatial frequency. It should be safe to perform this after the fact.

Describe the solution you'd like
Instead of:

graph LR;
    img1 -- Denoise --> denoised1 -- N4 --> corrected1;
    img2 -- Denoise --> denoised2 -- N4 --> corrected2;
    img3 -- Denoise --> denoised3 -- N4 --> corrected3;
    corrected1 & corrected2 & corrected3 --> merged;
Loading

Do

graph LR;
    img1 & img2 & img3 --> merged -- Denoise --> denoised -- N4 --> corrected
Loading

A dataset with 3 or more T1w or T2w images would make a decent test to verify that the combined process is not measurably worse. Using a canonical FAST or Atropos segmentation, we could estimate the mean and variance within each tissue class in each image to have a quantitative estimate.

Describe alternatives you've considered

The status quo.

@effigies effigies added the enhancement New feature or request label Nov 23, 2023
@effigies
Copy link
Member Author

Reading up, it's not clear that the sum of Rician variates produce a Rician distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant