forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 2
/
video_frame.m
28 lines (26 loc) · 1.11 KB
/
video_frame.m
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
% Wraps librealsense2 video_frame class
classdef video_frame < realsense.frame
methods
% Constructor
function this = video_frame(handle)
this = [email protected](handle);
end
% Destructor (uses base class destructor)
% Functions
function width = get_width(this)
width = realsense.librealsense_mex('rs2::video_frame', 'get_width', this.objectHandle);
end
function height = get_height(this)
height = realsense.librealsense_mex('rs2::video_frame', 'get_height', this.objectHandle);
end
function stride = get_stride_in_bytes(this)
stride = realsense.librealsense_mex('rs2::video_frame', 'get_stride_in_bytes', this.objectHandle);
end
function bipp = get_bits_per_pixel(this)
bipp = realsense.librealsense_mex('rs2::video_frame', 'get_bits_per_pixel', this.objectHandle);
end
function bpp = get_bytes_per_pixel(this)
bpp = realsense.librealsense_mex('rs2::video_frame', 'get_bytes_per_pixel', this.objectHandle);
end
end
end