Skip to content

Instantly share code, notes, and snippets.

@rysk-t
Created February 16, 2015 02:55
Show Gist options
  • Select an option

  • Save rysk-t/86aa40444573b0ec812a to your computer and use it in GitHub Desktop.

Select an option

Save rysk-t/86aa40444573b0ec812a to your computer and use it in GitHub Desktop.
dispCalc.m
clear all;
close all;
% PVM1741 Params
dp.Dist = 570;
dp.Width = 365.8;
dp.WidPx = 1920;
% calc
dp.WidDeg = 2*(atan(0.5*dp.Width/dp.Dist)*180/pi); % Angle of View
dp.PperD = dp.WidPx/dp.WidDeg; % => pix/deg
SpatFreq = 1/dp.PperD; %cycle/pix
% disp
disp(dp);
disp(['For 1.0 cycle/deg: OR:45 => SFOR ' num2str(SpatFreq) ' 45' ]);
% 実際は 0.12 をいれるとちょうど丁度 1cm = 1cycleででる?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment