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
Add image_fft and image_rfft #1953
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1953 +/- ##
==========================================
+ Coverage 94.03% 94.06% +0.03%
==========================================
Files 76 76
Lines 16399 16495 +96
==========================================
+ Hits 15420 15516 +96
Misses 979 979 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WFM
I'd like to see if we can find a better example where we use the FFT to perform noise reduction or some other, more visible effect. |
|
I'd also be nice to show off a 3D example as well |
Does Perlin noise have structure in its Fourier spectrum corresponding to its base frequency? If so that could also be a fun demo. |
I think we can learn from the OpenCV example: by adding vtkImageButterworthHighPass and vtkImageButterworthLowPass, we can add an example like the following. |
Thanks. I will add it. |
Sounds good! Thanks. I will add it too. |
Built in high pass and low pass sounds good! |
That's right. I am trying to create an image of a geometrically simple shape in PyVista and create its outline. |
Not sure if this helps, but perhaps a depth image of a simple scene might work. |
I’d like to have both actually. Can you add it back? |
Reproduced the error locally. 100% agree this must be fixed before the next release. |
I'll want to look at the built docs for the example I edited, and someone will have to review my recent changes, but pending these this should be good to go. |
Rendered result looks excellent! |
Thank for improving this PR lots. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the proofreading @tkoyama010 🚀 There are a few cases which I'd prefer to leave in the original state though, please see comments below. I'll leave it up to you to decide if you want to accept any of these suggestions, these are just my two cents as a fellow not-native-speaker :)
Co-authored-by: Andras Deak <adeak@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you all for the patience, this is great 🎉
I didn't get an email about the latest comments and commit from @akaszynski, I hope this doesn't become a more general thing with github. I very much rely on email notifications...
Update: got one of at least 3 emails now, more than 2 hours late. I guess they'll arrive eventually.
In case anyone else is surprised by the dismissal of @akaszynski's review: it was auto-dismissed by this setting being enabled: #2245 (reply in thread) |
I think this is a great idea to add; I'm quite guilty of getting an early approval and then adding whatever I see fit. This will at least help me in-check. |
Overview
Add vtkImageFFT and vtkImageRFFT wrapper.
Requires:
Convert rgb to grayscale (see https://en.wikipedia.org/wiki/Grayscale#Luma_coding_in_video_systems).
It is also possible to apply filters to images. The following is the Fast Fourier Transformed image data.
Once Fast Fourier Transformed, images can also Reverse Fast Fourier Transformed.
Details