How to get the center of FFT spot

I’d like to the exact position of FFT spot. I can firstly give a rough position to the script, and then the script will extract a box with defined size. Then I’d like to automatically get the exact position of the spot center. I think I need to use 2D gaussian to fit the spot, or use centroid algorithm. Is there any good idea?

Leave a Comment