visual_size_from_shape_ppd

visual_size_from_shape_ppd#

stimupy.utils.visual_size_from_shape_ppd(shape, ppd)#

Calculate visual size (degrees) from given shape (pixels) and pixels-per-degree

Parameters:
  • shape (Sequence[int, int]; or int, or None) – each element has to be of type that can be cast to int, or None. See validate_shape

  • ppd (Sequence[int, int]; or int, or None) – each element has to be of type that can be cast to int, or None. See validate_ppd

Returns:

.height: float, height in degrees visual angle .width: float, width in degrees visual angle See validate_visual_size

Return type:

Visual_size NamedTuple, with two attributes