-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.m
More file actions
33 lines (27 loc) · 1.06 KB
/
Copy pathCamera.m
File metadata and controls
33 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
classdef Camera
properties
principleDistance
principlePoint
sensorArrayPx
sensorSize
pixelSize
cameraID
end
methods
function obj = Camera()
% The camera class is used to hold all of the information about
% the camera that does not change from image to image,
% including the principle distance, the principle point, the
% sensor array size in pixels, the size of the pixels, and the
% size of the sensor in mm. It also contains an arbirtary ID
% for the camera, just to be consistent with the rest of the
% program, and to
obj.principleDistance = 24; % mm
obj.principlePoint = [0,0]; % mm, not that it matters
obj.sensorArrayPx = [4928,3264]; % pixels, in x then y
obj.pixelSize = 0.00481; % mm, or 4.81 microns
obj.sensorSize = obj.sensorArrayPx *obj.pixelSize; % mm
obj.cameraID = 'cam99';
end
end
end