Function ouster::sdk::core::frame_ops::select_by_index¶
Defined in File frame_ops.h
Function Documentation¶
-
LidarFrame ouster::sdk::core::frame_ops::select_by_index(const LidarFrame &frame, const std::vector<size_t> &indices, bool update_metadata = false)¶
Create a new LidarFrame containing only selected beam rows.
Copies header fields and selected pixel field rows into a new frame. Non-pixel fields are copied as-is.
- Parameters:
frame[in] Source lidar frame. Must have sensor_info set.
indices[in] Beam row indices to select. Must be unique and within [0, frame height).
update_metadata[in] If true, the output frame’s sensor_info is updated to reflect the selected beams. Defaults to false.
- Throws:
std::invalid_argument – If frame has no sensor_info, or indices are invalid.
- Returns:
New LidarFrame with only the selected beam rows.