Template Function ouster::sdk::core::dewarp(const Frame&, const XYZLutT<T>&, double, double)¶
Defined in File pose_util.h
Function Documentation¶
-
template<typename T>
std::vector<Eigen::Vector3<T>> ouster::sdk::core::dewarp(const Frame &frame, const XYZLutT<T> &xyzlut, double min_range, double max_range)¶ This function takes in a Frame and an XYZLut and applies dewarping to it based on the pose(s) associated with the frame.
It filters out points with zero range and points outside the specified range limits.
Works for any Frame that carries a uint32 RANGE field. A LidarFrame carries one pose per column and is dewarped column-by-column (rolling shutter); a single-pose frame such as a CameraFrame carries exactly one pose that is applied rigidly to every column. The only difference between the two cases is the number of poses.
Note
This method only operates on the first return at the moment.
- Parameters:
frame[in] The Frame containing the RANGE data and associated pose(s).
xyzlut[in] The XYZLut used to convert range data to 3D points.
min_range[in] Minimum range limit in meters. Points with range below this value will be filtered out.
max_range[in] Maximum range limit in meters. Points with range above this value will be filtered out.
- Template Parameters:
T – The numeric type for the output 3D points (e.g., float or double).
- Returns:
A vector of Eigen::Vector3<T> containing the dewarped 3D points.