JA_prop2dim.m 234 B

123456789
  1. function [dim_in_pix] = JA_prop2dim(misure_schermo, propX, propY)
  2. % transforms distances from proportions to pixels
  3. dim_in_pix(1) = round(propX*misure_schermo(3), 0);
  4. dim_in_pix(2) = round(propY*misure_schermo(4), 0);
  5. end