gadomski / cpd

C++ implementation of the Coherent Point Drift point set registration algorithm.
http://www.gadom.ski/cpd
GNU General Public License v2.0
385 stars 122 forks source link

cpd::Matrix #155

Closed tungtungyan closed 2 years ago

tungtungyan commented 2 years ago

I am using PCL to convert the matrix. It defines as a float type. However, the cpd::Matrix defines as an Eigen::MatrixXd. Can it change to Eigen::MatrixXf? How can solve this problem?

gadomski commented 2 years ago

At this time, CPD's transformation functions are not generic over the numeric type in the matrix. I've opened https://github.com/gadomski/cpd/issues/156 to capture the feature request.

You could always convert PCL's output to doubles to use them w/ CPD.