pymovements.gaze.transforms_pl.pix2deg#

pymovements.gaze.transforms_pl.pix2deg(*, screen_px: int, screen_cm: float, distance_cm: float, origin: str, pixel_column: str, position_column: str) Expr[source]#

Converts pixel screen coordinates to degrees of visual angle.

Parameters:
  • screen_px – Size of screen in pixels.

  • screen_cm – Size of screen in centimeters.

  • distance_cm – Eye-to-screen distance in centimeters

  • origin – The location of the pixel origin. Supported values: center, lower left. See also py:func:~pymovements.gaze.transform.center_origin for more information.

  • pixel_column – The input pixel column name.

  • position_column – The output position column name.