pymovements.gaze.transforms.center_origin#
- pymovements.gaze.transforms.center_origin(*, screen_resolution: tuple[int, int], origin: str, n_components: int, pixel_column: str = 'pixel', output_column: str | None = None) pl.Expr[source]#
Center pixel data.
Pixel data will have the coordinates
(0, 0)afterwards.- Parameters:
screen_resolution – Pixel screen resolution as tuple (width, height).
origin – The location of the pixel origin. Supported values:
center,lower leftn_components – Number of components in input column.
pixel_column – Name of the input column with pixel data.
output_column – Name of the output column with centered pixel data.