BGlib.gmode.proc.fftΒΆ

A collection of 1D and 2D FFT based utilities for image and spectral processing based on the :module:`numpy.fft` module

Created on Tue Oct 20 17:42:41 2015

@author: Suhas Somnath

Functions

are_compatible_filters

build_composite_freq_filter

build_radius_matrix

Builds a matrix where the value of a given pixel is its L2 distance from the origin, which is located at the center of the provided image rather one of the corners of the image.

down_sample

Downsamples the provided data vector

fft_to_real

Provides the real-space equivalent of the provided image in Fourier space

get_2d_gauss_lpf

Builds a 2D, radially symmetric, low-pass Gaussian filter based on the provided radius matrix.

get_fft_stack

Gets the 2D FFT for a single or stack of images by applying a blackman window

get_noise_floor

Calculate the noise floor from the FFT data.

Classes

BandPassFilter

Builds a bandpass filter

FrequencyFilter

HarmonicPassFilter

Builds a filter that only keeps N harmonics

LowPassFilter

Builds a low pass filter

NoiseBandFilter

Builds a filter that removes specified noise frequencies