Name

fpol - interpolate up the input image using padding with zeroes in Fourier space

Usage

output = fpol(image,nnx, nny, nnz, RetReal)

Input

image
image to be interpolated.
nnx
new nx dimension
nny
new ny dimension (default = 0, meaning equal to the original ny)
nnz
new nz dimension (default = 0, meaning equal to the original nz)
RetReal
Logical flag, if True, the returned image is real, if False, it is Fourier

Output

output
the output interpolated up image

Description

The FFT of the input image is create, padded with zero to correspond to the new requested image size. The apdding is done such that the total energy of the inpterpolated image is preserved, but the new values on the old grid or not equal to the old values.

Author / Maintainer

Pawel A. Penczek

Keywords

category 1
FUNDAMENTALS
category 2
FOURIER

Files

fundamentals.py

Maturity

stable
works for most people, has been tested; test cases/examples available.

Bugs

None. It is perfect.

fpol (last edited 2013-07-01 13:12:38 by localhost)