50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


OPI (version 2.9)

pixToDeg: convert pixels to degrees for machine 'machine'

Description

convert pixels to degrees for machine 'machine'

Usage

pixToDeg(xy, machine = "compass")

Arguments

xy

a 2 element vector c(x,y) where x and y are in pixels

machine

"compass" or ...?

Value

xy converted to degrees of visual field with the usual conventions or NA if machine is unknown

Examples

Run this code
# NOT RUN {
pixToDeg(c(1000, 200), machine="compass")  # c(1.290323, 24.516129) degrees
pixToDeg(c(1920/2, 1920/2)) # c(0,0) degrees

# }

Run the code above in your browser using DataLab