7 lines
228 B
Matlab
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; |