#include <rs_frame.hpp>
◆ frameset() [1/2]
rs2::frameset::frameset |
( |
| ) |
|
|
inline |
Extends the frame class with additional frameset related attributes and functions
◆ frameset() [2/2]
rs2::frameset::frameset |
( |
const frame & |
f | ) |
|
|
inline |
Extends the frame class with additional frameset related attributes and functions
- Parameters
-
[in] | frame | - existing frame instance |
◆ begin()
◆ end()
◆ first()
Retrieve the first frame of a specific stream type and optionally with a specific format. If no frame is found, an error will be thrown.
- Parameters
-
[in] | rs2_stream | s - frame to be retrieved from this stream type. |
[in] | rs2_format | f - frame to be retrieved from this format type. |
- Returns
- frame - first found frame with s stream type.
◆ first_or_default()
Retrieve the first frame of a specific stream and optionally with a specific format. If no frame is found, return an empty frame instance.
- Parameters
-
[in] | rs2_stream | s - frame to be retrieved from this stream type. |
[in] | rs2_format | f - frame to be retrieved from this format type. |
- Returns
- frame - first found frame with s stream type.
◆ foreach_rs()
template<class T >
void rs2::frameset::foreach_rs |
( |
T |
action | ) |
const |
|
inline |
Template function, extract internal frame handles from the frameset and invoke the action function
- Parameters
-
[in] | action | - instance with () operator implemented will be invoke after frame extraction. |
◆ get_color_frame()
Retrieve the first color frame, if no frame is found, search for the color frame from IR stream. If one still can't be found, return an empty frame instance.
- Returns
- video_frame - first found color frame.
◆ get_depth_frame()
Retrieve the first depth frame, if no frame is found, return an empty frame instance.
- Returns
- depth_frame - first found depth frame.
◆ get_fisheye_frame()
video_frame rs2::frameset::get_fisheye_frame |
( |
const size_t |
index = 0 | ) |
const |
|
inline |
Retrieve the fisheye monochrome video frame
- Parameters
-
- Returns
- video_frame - the fisheye frame denoted by index.
◆ get_infrared_frame()
video_frame rs2::frameset::get_infrared_frame |
( |
const size_t |
index = 0 | ) |
const |
|
inline |
Retrieve the first infrared frame, if no frame is found, return an empty frame instance.
- Parameters
-
- Returns
- video_frame - first found infrared frame.
◆ get_pose_frame()
pose_frame rs2::frameset::get_pose_frame |
( |
const size_t |
index = 0 | ) |
const |
|
inline |
Retrieve the pose frame
- Parameters
-
- Returns
- pose_frame - the sensor's positional data
◆ operator[]()
frame rs2::frameset::operator[] |
( |
size_t |
index | ) |
const |
|
inline |
Bracket operator retrieves back the frame from frameset using arrary notation
- Parameters
-
[in] | index | - index of array to retrieve data back. |
- Returns
- frame - retrieved frame.
◆ size()
size_t rs2::frameset::size |
( |
| ) |
const |
|
inline |
Return the size of the frameset
- Returns
- size_t - frameset size.
The documentation for this class was generated from the following file:
- C:/jenkins_sys_rsbuild/workspace/LRS_doxygen_pipeline/source/include/librealsense2/hpp/rs_frame.hpp