skxray.core.pixel_to_phi

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

Converts pixel positions to \(\phi\), the angle from vertical.

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:

phi : array

\(\phi\), the angle from the vertical axis. \(\phi \el [-\pi, \pi]\)