Subversion Repositories seema-scanner

Rev

Rev 28 | Rev 155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28 Rev 154
Line 1... Line 1...
1
%CAMERA Matlab wrapper class for the Camera C++ class.
1
%CAMERA Matlab wrapper class for the Camera C++ class.
2
% Gives low level access to custom industrial cameras by wrapping their
2
% Gives low level access to custom industrial cameras by wrapping their
3
% API. Currently libdc1394 IIDC and IDS Imaging uEye are implemented.
3
% API. Currently libdc1394 IIDC and IDS Imaging uEye are implemented.
4
%
4
%
5
% Jakob Wilm, DTU 2013
5
% Jakob Wilm, DTU 2015
6
 
6
 
7
classdef Camera < handle
7
classdef Camera < handle
8
    properties (SetAccess = private, Hidden = true)
8
    properties (SetAccess = private, Hidden = true)
9
        objectHandle; % Handle to the underlying C++ class instance
9
        objectHandle; % Handle to the underlying C++ class instance
10
    end
10
    end
Line 42... Line 42...
42
        % getFrame
42
        % getFrame
43
        function varargout = getFrame(this)
43
        function varargout = getFrame(this)
44
            frame = CameraMex('getFrame', this.objectHandle);
44
            frame = CameraMex('getFrame', this.objectHandle);
45
            [varargout{1:nargout}] = permute(frame,[3 2 1]);
45
            [varargout{1:nargout}] = permute(frame,[3 2 1]);
46
        end
46
        end
-
 
47
			
-
 
48
        % setSettings
-
 
49
        function varargout = setSettings(this, gain, shutter)
-
 
50
            frame = CameraMex('setSettings', this.objectHandle, gain, shutter);
-
 
51
        end
47
        
52
        
48
    end
53
    end
49
end
54
end