Name
subsample - subsample image by an arbitrary factor (<1) - the image size will decrease, the physical pixel size will increase.
Usage
output = subsample(input, ratio)
Input
- input
- image to be subsampled
- ratio
subsampling ratio `r`. nx_new = r * nx_old
Output
- output
- image with reduced size.
Description
This function is used to change the 'physical pixel size'.
Method
Input image is convoluted in real space with a sinc-Blackman window and samples at new locations are retrieved.
Author / Maintainer
Pawel A. Penczek
Keywords
- category 1
- FUNDAMENTALS
Files
fundamentals.py
See also
Maturity
- alpha
- works
Bugs
None. It is perfect.