Skip to content

Draft NORDIC example #27

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Draft NORDIC example #27

wants to merge 1 commit into from

Conversation

tsalo
Copy link
Contributor

@tsalo tsalo commented Dec 31, 2024

This is just a draft of an example that applies NORDIC to complex-valued data with noise volumes.

# Combine magnitude and phase into complex-valued data
complex_data = magnitude_data * np.exp(1j * phase_data)

# TODO: Filter complex data and calculate g-factor map
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paquiteau would adding these steps be useful for an example, or should they go into a function/class within patch-denoising?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this is already done in the load_complex_nifti function, which is what people would use in practice. I don't think it's needed to refactor that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you referring to combining the complex-valued data or the phase filtering and g-factor map creation? load_complex_nifti doesn't do the latter. Also, it doesn't rescale the phase data to -pi to pi, right? So this example definitely needs to separately rescale the data.

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

Successfully merging this pull request may close these issues.

2 participants