Function ouster::sdk::core::frame_ops::reduce_by_factor_metadata¶
Defined in File frame_ops.h
Function Documentation¶
-
SensorInfo ouster::sdk::core::frame_ops::reduce_by_factor_metadata(const SensorInfo &metadata, size_t factor)¶
Create updated SensorInfo for downsampling by a given factor.
Equivalent to calling select_by_index_metadata with indices generated by reduce_factor_to_indices.
- Parameters:
metadata[in] Original sensor metadata.
factor[in] Downsampling factor. Must be a non-zero divisor of the metadata height.
- Throws:
std::invalid_argument – If factor is 0 or does not evenly divide the metadata height.
- Returns:
New SensorInfo reflecting the downsampled beams.