Skip to content

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