This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/projects/project_eyetracker/solution/convert_pixel_to_meter.m

7 lines
228 B
Matlab

function [x, y] = convert_pixel_to_meter(x_pos, y_pos, width_m, height_m, width_pixel, height_pixel)
x_resolution = width_m/width_pixel;
y_resolution = height_m/height_pixel;
x = x_pos * x_resolution;
y = y_pos * y_resolution;