Class frameset
Defined in File rs_frame.hpp
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public rs2::frame
(Class frame)
Class Documentation
-
class frameset : public rs2::frame
Public Functions
-
inline frameset()
Extends the frame class with additional frameset related attributes and functions
-
inline frameset(const frame &f)
Extends the frame class with additional frameset related attributes and functions
- Parameters:
frame – [in] - existing frame instance
-
inline frame first_or_default(rs2_stream s, rs2_format f = RS2_FORMAT_ANY) const
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:
rs2_stream – [in] s - frame to be retrieved from this stream type.
rs2_format – [in] f - frame to be retrieved from this format type.
- Returns:
frame - first found frame with s stream type.
-
inline frame first(rs2_stream s, rs2_format f = RS2_FORMAT_ANY) const
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:
rs2_stream – [in] s - frame to be retrieved from this stream type.
rs2_format – [in] f - frame to be retrieved from this format type.
- Returns:
frame - first found frame with s stream type.
-
inline depth_frame get_depth_frame() const
Retrieve the first depth frame, if no frame is found, return an empty frame instance.
- Returns:
depth_frame - first found depth frame.
-
inline video_frame get_color_frame() const
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.
-
inline video_frame get_infrared_frame(const size_t index = 0) const
Retrieve the first infrared frame, if no frame is found, return an empty frame instance.
- Parameters:
size_t – [in] index
- Returns:
video_frame - first found infrared frame.
-
inline video_frame get_fisheye_frame(const size_t index = 0) const
Retrieve the fisheye monochrome video frame
- Parameters:
size_t – [in] index
- Returns:
video_frame - the fisheye frame denoted by index.
-
inline pose_frame get_pose_frame(const size_t index = 0) const
Retrieve the pose frame
- Parameters:
size_t – [in] index
- Returns:
pose_frame - the sensor’s positional data
-
inline size_t size() const
Return the size of the frameset
- Returns:
size_t - frameset size.
-
template<class T>
inline void foreach_rs(T action) const Template function, extract internal frame handles from the frameset and invoke the action function
- Parameters:
action – [in] - instance with () operator implemented will be invoke after frame extraction.
-
inline frameset()