15 res = strsplit(obj.cam.Resolution,'x');
17 obj.pixelX = str2double(cell2mat(res(1)));
18 obj.pixelY = str2double(cell2mat(res(2)));
19 obj.exposureTime = 128;%???
21 obj.pixelPitch = 1; %
#nicht telezentrisch
23 obj.savePath = strcat(evalin(
'base',
'matlabPath'),
'\data\DCIM');
27 %Verbindung wird bereits im Konstruktor aufgebaut
30 function disconnect(obj)
31 %METHOD1 Summary of
this method goes here
32 % Detailed explanation goes here
35 function image = getImage(obj)
36 image=rgb2gray(snapshot(obj.cam));
für Beliebige USB-Webcams Erfordert Webcam-Toolbox für MAtlab