compute_ppd

compute_ppd#

stimupy.utils.compute_ppd(screen_size, resolution, distance)#

Compute the pixels per degree in a presentation setup i.e., the number of pixels in the central one degree of visual angle

Parameters:
  • screen_size ((float, float)) – physical size, in whatever units you prefer, of the presentation screen

  • resolution ((float, float)) – screen resolution, in pixels, in the same direction that screen size was measured in

  • distance (float) – physical distance between the observer and the screen, in the same unit as screen_size

Returns:

ppd, the number of pixels in one degree of visual angle

Return type:

float