forked from realsenseai/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilter.m
More file actions
19 lines (17 loc) · 633 Bytes
/
Copy pathfilter.m
File metadata and controls
19 lines (17 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% Wraps librealsense2 filter class
classdef filter < realsense.options
methods
% Constructor
function this = filter(handle)
this = this@realsense.options(handle);
end
% Destructor (uses base class destructor)
% Functions
function out_frame = process(this, frame)
narginchk(2, 2)
validateattributes(frame, {'realsense.frame'}, {'scalar'}, '', 'frame', 2);
out = realsense.librealsense_mex('rs2::filter', 'process', this.objectHandle, frame.objectHandle);
out_frame = realsense.frame(out);
end
end
end