SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
51 stars 41 forks source link

Image Viewer: Compute the FT of the image too #1895

Open smk78 opened 3 years ago

smk78 commented 3 years ago

Suggestion from participant at 2021 CNMS/SHUG workshop on SAS Data Analysis: Should consider adding to the Image Viewer the ability to do the FT of the image.

To which I would add that also doing something like the 2D autocorrelation applied to APT images in https://doi.org/10.1016/j.actamat.2017.12.008 to get the correlation function would also be useful.

butlerpd commented 2 years ago

I just realized I don't understand this request. The image is an FT of the real space (projection in 2D) What does the FT of that 2D data image do/give? Or is the request for a general FT of 2D real space images akin to the tool Brian Pauw has?

pkienzle commented 2 years ago

Another ref, this one looking at wood: https://doi.org/10.1107/S002188981302150X

lucas-wilkins commented 2 years ago

It should be pretty trivial to implement.

pkienzle commented 2 years ago

Not quite trivial. You will need to fill in missing data such as behind the beam stop and from gaps between and around frames from pieced-together detectors. Different detector distances will have different q-spacing. FFT is circular, so you will need some padding and windowing.