Function ouster::sdk::core::frame_ops::filter_uv¶
Defined in File frame_ops.h
Function Documentation¶
-
void ouster::sdk::core::frame_ops::filter_uv(LidarFrame &frame, const std::string &coord_2d, size_t lower, size_t upper, double invalid = 0, const std::vector<std::string> *filtered_fields = nullptr)¶
Filter frame fields by zeroing out rows or columns in UV coordinates.
When coord_2d is “u”, rows in [lower, upper) are invalidated directly. When coord_2d is “v”, columns in [lower, upper) are invalidated in the destaggered domain and then re-staggered.
- Parameters:
frame[inout] The lidar frame to filter in place.
coord_2d[in] Coordinate axis to filter along: “u” for rows or “v” for columns.
lower[in] Start index of the range to invalidate (inclusive).
upper[in] End index of the range to invalidate (exclusive).
invalid[in] Value assigned to filtered-out pixels. Defaults to 0.
filtered_fields[in] Optional list of field names to apply the filter to. If null, all pixel fields are filtered.
- Throws:
std::invalid_argument – If coord_2d is not “u” or “v”, or if bounds are out of range.