Point Cloud Library (PCL)  1.7.0
Classes | Public Member Functions
pcl::CRHAlignment< PointT, nbins_ > Class Template Reference

CRHAlignment uses two Camera Roll Histograms (CRH) to find the roll rotation that aligns both views. More...

#include <pcl/recognition/crh_alignment.h>

List of all members.

Classes

struct  peaks_ordering
 Sorts peaks.

Public Member Functions

 CRHAlignment ()
 Constructor.
void getTransforms (std::vector< Eigen::Matrix4f, Eigen::aligned_allocator< Eigen::Matrix4f > > &transforms)
 returns the computed transformations
void setInputAndTargetView (PointTPtr &input_view, PointTPtr &target_view)
 sets model and input views
void setInputAndTargetCentroids (Eigen::Vector3f &c1, Eigen::Vector3f &c2)
 sets model and input centroids
void align (pcl::PointCloud< pcl::Histogram< nbins_ > > &input_ftt, pcl::PointCloud< pcl::Histogram< nbins_ > > &target_ftt)
 Computes the transformation aligning model to input.
void computeRollAngle (pcl::PointCloud< pcl::Histogram< nbins_ > > &input_ftt, pcl::PointCloud< pcl::Histogram< nbins_ > > &target_ftt, std::vector< float > &peaks)
 Computes the roll angle that aligns input to modle.

Detailed Description

template<typename PointT, int nbins_>
class pcl::CRHAlignment< PointT, nbins_ >

CRHAlignment uses two Camera Roll Histograms (CRH) to find the roll rotation that aligns both views.

See:

Author:
Aitor Aldoma

Definition at line 31 of file crh_alignment.h.


Constructor & Destructor Documentation

template<typename PointT , int nbins_>
pcl::CRHAlignment< PointT, nbins_ >::CRHAlignment ( ) [inline]

Constructor.

Definition at line 107 of file crh_alignment.h.


Member Function Documentation

template<typename PointT , int nbins_>
void pcl::CRHAlignment< PointT, nbins_ >::align ( pcl::PointCloud< pcl::Histogram< nbins_ > > &  input_ftt,
pcl::PointCloud< pcl::Histogram< nbins_ > > &  target_ftt 
) [inline]

Computes the transformation aligning model to input.

Parameters:
[in]input_fttCRH histogram of the input cloud
[in]target_fttCRH histogram of the target cloud

Definition at line 147 of file crh_alignment.h.

template<typename PointT , int nbins_>
void pcl::CRHAlignment< PointT, nbins_ >::computeRollAngle ( pcl::PointCloud< pcl::Histogram< nbins_ > > &  input_ftt,
pcl::PointCloud< pcl::Histogram< nbins_ > > &  target_ftt,
std::vector< float > &  peaks 
) [inline]

Computes the roll angle that aligns input to modle.

Parameters:
[in]CRHhistogram of the input cloud
[in]CRHhistogram of the target cloud
[out]Vectorcontaining angles where the histograms correlate

Definition at line 185 of file crh_alignment.h.

References pcl::PointCloud< PointT >::points, and kiss_fft_cpx::r.

template<typename PointT , int nbins_>
void pcl::CRHAlignment< PointT, nbins_ >::getTransforms ( std::vector< Eigen::Matrix4f, Eigen::aligned_allocator< Eigen::Matrix4f > > &  transforms) [inline]

returns the computed transformations

Parameters:
[out]transformations

Definition at line 116 of file crh_alignment.h.

template<typename PointT , int nbins_>
void pcl::CRHAlignment< PointT, nbins_ >::setInputAndTargetCentroids ( Eigen::Vector3f &  c1,
Eigen::Vector3f &  c2 
) [inline]

sets model and input centroids

Parameters:
[in]c1model view centroid
[in]c2input view centroid

Definition at line 136 of file crh_alignment.h.

template<typename PointT , int nbins_>
void pcl::CRHAlignment< PointT, nbins_ >::setInputAndTargetView ( PointTPtr &  input_view,
PointTPtr &  target_view 
) [inline]

sets model and input views

Parameters:
[in]modelview
[in]input_view

Definition at line 125 of file crh_alignment.h.


The documentation for this class was generated from the following file: