pymovements.gaze.transforms.pix2deg#

pymovements.gaze.transforms.pix2deg(*, screen_resolution: tuple[int, int], screen_size: tuple[float, float], distance: float, origin: str, n_components: int, pixel_column: str = 'pixel', position_column: str = 'position') Expr[source]#

Converts pixel screen coordinates to degrees of visual angle.

Parameters:
  • screen_resolution – Pixel screen resolution as tuple (width, height).

  • screen_size – Screen size in centimeters as tuple (width, height).

  • distance – 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.

  • n_components – Number of components in input column.

  • pixel_column – The input pixel column name.

  • position_column – The output position column name.