||Perform an FFT on the supplied image array.|
||Load an image from a file, and low-pass filter via a Gaussian kernel.|
Some basic image processing routines.
Perform an FFT on the supplied image array.
Parameters: image (ndarray) – An array of the image Returns: A namedtuple containing the the fast-fourier transform, the amplitude and phase. Return type: namedtuple
lowpass_filter_image(image=None, filename=None, flatten=False, sigma=3)¶
Load an image from a file, and low-pass filter via a Gaussian kernel.
- image (ndarray, optional) – The image to be processed. This will usually have been created using scipy.misc.imread or a similar function. If this argument is present, filename will be ignored.
- filename (string, optional) – The name of the image file to load and process. Will be ignored is image_array is not None.
- flatten (bool, optional) – Whether to “flatten” the image before filtering, i.e. convert it to grayscale.
- sigma (scalar, optional) – The standard deviation for Gaussian kernel. See scipy.ndimage.filters.gaussian_filter.
The lowpass-filtered image.