skxray.core.pixel_to_radius

skxray.core.pixel_to_radius(shape, calibrated_center, pixel_size=None)

Converts pixel positions to radius from the calibrated center

Parameters:

shape : tuple

The shape of the image (nrow, ncol) to warp the coordinates of

calibrated_center : tuple

The center in pixels-units (row, col)

pixel_size : tuple, optional

The size of a pixel (really the pitch) in real units. (height, width).

Defaults to 1 pixel/pixel if not specified.

Returns:

R : array

The L2 norm of the distance of each pixel from the calibrated center.