MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / getMatrixXfMap

Method getMatrixXfMap

common/include/pcl/point_cloud.h:333–340  ·  view source on GitHub ↗

\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

Source from the content-addressed store, hash-verified

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!

Callers 1

TEST_FFunction · 0.80

Calls 1

sizeFunction · 0.85

Tested by 1

TEST_FFunction · 0.64