Convert point-spread function to optical transfer function
To ensure that OTF
is not altered because of
PSF
off-centering, psf2otf
postpads
PSF
(down or to the right) with 0
s
to match dimensions specified in sz
. Then
psf2otf
circularly shifts the values of
PSF
up (or to the left) until the central pixel reaches
(1,1) position.
This function is used in image convolution and deconvolution when the operations involve the FFT.