Template Function lvr2::transformAndReducePointCloud(ModelPtr, int, const T&, const T&, const T&, const unsigned char&, const unsigned char&, const unsigned char&)
Defined in File TransformUtils.hpp
Function Documentation
-
template<typename T>
void lvr2::transformAndReducePointCloud(ModelPtr model, int modulo, const T &sx, const T &sy, const T &sz, const unsigned char &xPos, const unsigned char &yPos, const unsigned char &zPos) Transforms (scale and switch coordinates) and reduces a model containing point cloud data using a modulo filter. Use this function the convert between different coordinate systems.
- Parameters:
model – A model containing point cloud data
modulo – The reduction factor for the modulo filter. Set to 1 to keep the original resolution.
sx – Scaling factor in x direction
sy – Scaling factor in y direction
sz – Scaling factor in z direction
xPos –
Position of the x position in the input data, i.e, “which array position has the x coordinate that is written
to the output data in the input data”
yPos – Same as with xPos for y.
zPos – Same as with xPos for z.