skxray.core.img_to_relative_xyi

skxray.core.img_to_relative_xyi(img, cx, cy, pixel_size_x=None, pixel_size_y=None)

Convert the 2D image to a list of x y I coordinates where x == x_img - detector_center[0] and y == y_img - detector_center[1]

Parameters:

img: `ndarray` :

2D image

cx : float

Image center in the x direction

cy : float

Image center in the y direction

pixel_size_x : float, optional

Pixel size in x

pixel_size_y : float, optional

Pixel size in y

**kwargs: dict :

Bucket for extra parameters in an unpacked dictionary

Returns:

x : ndarray

x-coordinate of pixel. shape (N, )

y : ndarray

y-coordinate of pixel. shape (N, )

I : ndarray

intensity of pixel. shape (N, )