fft_tools Package¶
fft_tools
Package¶
image_registration.fft_tools Package¶
Functions¶
|
Cross-correlation of two images of arbitrary size. |
|
Translated from matlab: |
|
Returns fftn,ifftn using either numpy's fft or fftw |
|
2D version: obsolete - use ND version instead (though it's probably easier to parse the source of this one) |
|
FFT-based sub-pixel image shift. |
|
Returns a smoothed image using a gaussian, boxcar, or tophat kernel |
|
Use dftups to upsample an image (but takes an image and returns an image with all reals) |
convolve_nd
Module¶
image_registration.fft_tools.convolve_nd Module¶
Functions¶
|
Convolve an ndarray with an nd-kernel. |
correlate2d
Module¶
image_registration.fft_tools.correlate2d Module¶
Functions¶
|
Cross-correlation of two images of arbitrary size. |
fast_ffts
Module¶
image_registration.fft_tools.fast_ffts Module¶
Functions¶
|
Returns fftn,ifftn using either numpy's fft or fftw |
shift
Module¶
image_registration.fft_tools.shift Module¶
Shift¶
Fourier-transform based shifting. scipy.fftpack.shift does about the same thing, but only in one dimension
Functions¶
|
2D version: obsolete - use ND version instead (though it's probably easier to parse the source of this one) |
|
FFT-based sub-pixel image shift. |
zoom
Module¶
image_registration.fft_tools.zoom Module¶
Functions¶
|
Zoom in to the center of a 1D array using Fourier upsampling |
|
Zoom in on a 1D or 2D array using Fourier upsampling (in principle, should work on N-dimensions, but does not at present!) |
|
Zoom in to the center of a 1D or 2D array using Fourier upsampling (in principle, should work on N-dimensions, but does not at present!) |
scale
Module¶
image_registration.fft_tools.scale Module¶
Functions¶
|
Use the fourier scaling theorem to interpolate (or extrapolate, without raising any exceptions) data. |
|
Use the fourier scaling theorem to interpolate (or extrapolate, without raising any exceptions) data. |
|
Use the fourier scaling theorem to interpolate (or extrapolate, without raising any exceptions) data. |
upsample
Module¶
Fourier upsampling (or interpolation, scaling, zooming) is achieved via DFTs using a dot product rather than the usual fft, as there is (probably?) no way to perform FFTs with a different kernel.
This notebook demonstrates 1-d Fourier upsampling.
image_registration.fft_tools.upsample Module¶
Functions¶
|
Translated from matlab: |
|
|
|
|
|
Use dftups to upsample an image (but takes an image and returns an image with all reals) |