\brief Return an Eigen MatrixXf (assumes float values) mapped to the specified dimensions of the PointCloud. * \note This method is for advanced users only! Use with care! * * \attention Compile time flags used for Eigen might affect the dimension of the Eigen::Map returned. If Eigen * is using row major storage, the matrix shape would be (number of Points X eleme
| 331 | * \attention PointT types are most of the time aligned, so the offsets are not continuous! |
| 332 | */ |
| 333 | inline Eigen::Map<Eigen::MatrixXf, Eigen::Aligned, Eigen::OuterStride<> > |
| 334 | getMatrixXfMap (int dim, int stride, int offset) |
| 335 | { |
| 336 | if (Eigen::MatrixXf::Flags & Eigen::RowMajorBit) |
| 337 | return (Eigen::Map<Eigen::MatrixXf, Eigen::Aligned, Eigen::OuterStride<> >(reinterpret_cast<float*>(&points[0])+offset, size (), dim, Eigen::OuterStride<> (stride))); |
| 338 | else |
| 339 | return (Eigen::Map<Eigen::MatrixXf, Eigen::Aligned, Eigen::OuterStride<> >(reinterpret_cast<float*>(&points[0])+offset, dim, size (), Eigen::OuterStride<> (stride))); |
| 340 | } |
| 341 | |
| 342 | /** \brief Return an Eigen MatrixXf (assumes float values) mapped to the specified dimensions of the PointCloud. |
| 343 | * \note This method is for advanced users only! Use with care! |