You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use CImg quite a bit for image processing tasks, and if I'm obviously overlooking something, by all means just throw it at me.
I've been doing a few FFT's, and when calculating the magnitude, or power spectrum of the real and complex parts returned, I noticed that there's no magnitude() or norm() function that acts across the z axis for images, and across the stack for CImgList objects. I end up with code that has the form
If norm isn't the right term, replace with magnitude. Perhaps it's a better self documenting name anyways.
This would seem to put the CImgList class at least with parity against the CImg class, in that it has both a magnitude() and norm() function. Alternatively, I could compose the two images returned from the FFT into an image with two channels, but that seems kludgy and not really better than what I have in terms of the expressiveness of the code.
Thanks for your thoughts! I really appreciate this project and all who've contributed to it.
Kyle B
The text was updated successfully, but these errors were encountered:
KBentley57
changed the title
Feature request: L2 norm across z for CImg objects, L2 across depth for CImgList objects
[Enhancement] Feature request: L2 norm across z for CImg objects, L2 across depth for CImgList objects
Aug 25, 2023
HI All,
I use CImg quite a bit for image processing tasks, and if I'm obviously overlooking something, by all means just throw it at me.
I've been doing a few FFT's, and when calculating the magnitude, or power spectrum of the real and complex parts returned, I noticed that there's no magnitude() or norm() function that acts across the z axis for images, and across the stack for CImgList objects. I end up with code that has the form
While it works fine, it seems that there ought to be something like this
or possibly even
If norm isn't the right term, replace with magnitude. Perhaps it's a better self documenting name anyways.
This would seem to put the CImgList class at least with parity against the CImg class, in that it has both a magnitude() and norm() function. Alternatively, I could compose the two images returned from the FFT into an image with two channels, but that seems kludgy and not really better than what I have in terms of the expressiveness of the code.
Thanks for your thoughts! I really appreciate this project and all who've contributed to it.
Kyle B
The text was updated successfully, but these errors were encountered: