I have an image of a grid of holes. Processing it with numpy.fft.fft2
yields a nice image where I can clearly see periodicity, base vectors etc.
But how can I extract the lattice spacing?
The lattice points in real-space have a spacing of about 96px
, so the spacing in k-space would be 2*Pi / 96px = 0.065 1/px
.
Naturally, numpy can't return an image array with sub-pixel spacing, so it is somehow scaled - spacing in k-space is about 70px
.
But how is the scaling done and what is the exact scaling factor?