BGlib.gmode.proc.fft.build_radius_matrix

BGlib.gmode.proc.fft.build_radius_matrix(image_shape)[source]

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. The result from this function is required by get_2d_gauss_lpf

Parameters:

image_shape (list or tuple) – Number of rows and columns in the image

Returns:

radius_mat – Radius matrix

Return type:

2d numpy float array