magpack.image_utils#

Functions

complex_color

Applies complex domain coloring to a 3D vector field.

fft

Returns the shifted fast Fourier transform for plotting.

fourier_shell_correlation

Compute the Fourier shell correlation (FSC) between two images.

get_perspective_matrix

Provides the non-affine matrix that maps four points on the source image to the destination image.

hls2rgb

Convert HLS values (Hue, Lightness, Saturation) to RGB values (Red, Green, Blue) for plotting.

ifft

Returns the shifted inverse fast Fourier transform for plotting.

intensity_fft

Returns the intensity of a shifted fast Fourier transform for plotting.

non_affine_transform

Applies a non-affine transformation to the input image.

remove_distortion

Remove perspective distortion from an image.

rgb2gray

Converts RGB/RGBA data of shape (x, y, ..., 3) to grayscale.