-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow use of complex numbers with denoise_nl_means #5483
Comments
It would likely require substantial work to refactor the underlying Cython code to support complex types directly, but there are a couple of other options: 1.) Run non-local means independently on the real and imaginary components. 2.) If the data is 2D it might also be possible to stack the real and imaginary data along a new axis (e.g. np.stack((image.real, image.imag), axis=-1) and call it with |
Thank you for the quick reply! |
Hi @shirawerman, I opened a PR for 3D+multichannel (and 4D) support in #5488. If you want to compile scikit-image from that branch you can try it out. We are hoping to make a 0.19 release soon, but I don't know that the PR will be reviewed in time for that. |
The code of non_local_means.py converts the dataset to 'float', but I have a dataset with complex numbers. Is there a possibility to support more data types?
Thanks
The text was updated successfully, but these errors were encountered: