Subversion Repositories seema-scanner

Rev

Rev 28 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jakw 1
%CAMERA Matlab wrapper class for the Camera C++ class.
2
% Gives low level access to custom industrial cameras by wrapping their
3
% API. Currently libdc1394 IIDC and IDS Imaging uEye are implemented.
4
%
5
% Jakob Wilm, DTU 2013
6
 
7
classdef Camera < handle
8
    properties (SetAccess = private, Hidden = true)
9
        objectHandle; % Handle to the underlying C++ class instance
10
    end
11
    methods (Static = true)
12
        function varargout = GetInterfaceCameraList
13
            [varargout{1:nargout}] = CameraMex('GetInterfaceCameraList');
14
        end
15
    end
16
    methods
17
        % Constructor - Create a new C++ class instance 
18
        function this = Camera(interfaceNum, cameraNum)
19
            this.objectHandle = CameraMex('NewCamera', interfaceNum, cameraNum);
20
        end
21
 
22
        % Destructor - Destroy the C++ class instance
23
        function delete(this)
24
            CameraMex('delete', this.objectHandle);
25
        end
26
 
27
        % getSingleFrame
28
        function varargout = getSingleFrame(this)
29
            frame = CameraMex('getSingleFrame', this.objectHandle);
30
            [varargout{1:nargout}] = transpose(frame);
31
        end
32
 
33
    end
34
end