Function ouster::sdk::core::frame_ops::clip

Function Documentation

void ouster::sdk::core::frame_ops::clip(LidarFrame &frame, const std::vector<std::string> &fields, double lower, double upper, double invalid = 0)

Clip field values to a range, setting out-of-range values to invalid.

For each resolved pixel field, values outside [lower, upper] are replaced with the invalid value. If fields is empty, all pixel fields are clipped.

Parameters:
  • frame[inout] The lidar frame whose fields will be modified in place.

  • fields[in] List of field names to clip. If empty, all pixel fields are used.

  • lower[in] Lower bound of the valid range (inclusive).

  • upper[in] Upper bound of the valid range (inclusive).

  • invalid[in] Value to assign to out-of-range elements. Defaults to 0.