Point Cloud Library, robust registration of two point clouds
I need to find the transformation and rotation difference between two 3d point clouds. For this I am looking at PCL, as it seems ideal.
On clean test data I have Iterative closest point working, but giving strange results(although I may have implemented it incorrectly...)
I have pcl::estimateRigidTransformation
working, and it seems better, although I assume will deal worse with noisy data.
My question is:
The two clouds will be noisy, and although they should contain the same points, there will be some discrepancies. What is the best way to deal with this?
Should I find corresponding features in the two clouds to begin with and THEN use estimateTransform
? Or should I look at a RANSAC
function to remove outliers? Is ICP
a better way to go than estimateRigidTransform
?
c++ point-cloud-library point-clouds
add a comment |
I need to find the transformation and rotation difference between two 3d point clouds. For this I am looking at PCL, as it seems ideal.
On clean test data I have Iterative closest point working, but giving strange results(although I may have implemented it incorrectly...)
I have pcl::estimateRigidTransformation
working, and it seems better, although I assume will deal worse with noisy data.
My question is:
The two clouds will be noisy, and although they should contain the same points, there will be some discrepancies. What is the best way to deal with this?
Should I find corresponding features in the two clouds to begin with and THEN use estimateTransform
? Or should I look at a RANSAC
function to remove outliers? Is ICP
a better way to go than estimateRigidTransform
?
c++ point-cloud-library point-clouds
I'm new to PCL, so please pardon me if this is not useful. There's the PCL Registration library which I think will be useful for your purpose.
– dhanushka
Jun 4 '15 at 6:18
Just follow first some tutorials about ICP. And it depence on application Which filter you use, I really like the fast Voxel grid filter. ICP is not the best way to do so. First learn the examples and than build your own (from the trunk) pcl ICP. The ICP from the example is just a working function, instead you want a real preformer (a preformer ICP is an ICP that is build for you application) build your own!
– Martijn van Wezel
Oct 6 '15 at 19:24
add a comment |
I need to find the transformation and rotation difference between two 3d point clouds. For this I am looking at PCL, as it seems ideal.
On clean test data I have Iterative closest point working, but giving strange results(although I may have implemented it incorrectly...)
I have pcl::estimateRigidTransformation
working, and it seems better, although I assume will deal worse with noisy data.
My question is:
The two clouds will be noisy, and although they should contain the same points, there will be some discrepancies. What is the best way to deal with this?
Should I find corresponding features in the two clouds to begin with and THEN use estimateTransform
? Or should I look at a RANSAC
function to remove outliers? Is ICP
a better way to go than estimateRigidTransform
?
c++ point-cloud-library point-clouds
I need to find the transformation and rotation difference between two 3d point clouds. For this I am looking at PCL, as it seems ideal.
On clean test data I have Iterative closest point working, but giving strange results(although I may have implemented it incorrectly...)
I have pcl::estimateRigidTransformation
working, and it seems better, although I assume will deal worse with noisy data.
My question is:
The two clouds will be noisy, and although they should contain the same points, there will be some discrepancies. What is the best way to deal with this?
Should I find corresponding features in the two clouds to begin with and THEN use estimateTransform
? Or should I look at a RANSAC
function to remove outliers? Is ICP
a better way to go than estimateRigidTransform
?
c++ point-cloud-library point-clouds
c++ point-cloud-library point-clouds
edited Sep 4 '16 at 22:03
Berriel
2,85211331
2,85211331
asked May 31 '15 at 16:09
antianti
9621231
9621231
I'm new to PCL, so please pardon me if this is not useful. There's the PCL Registration library which I think will be useful for your purpose.
– dhanushka
Jun 4 '15 at 6:18
Just follow first some tutorials about ICP. And it depence on application Which filter you use, I really like the fast Voxel grid filter. ICP is not the best way to do so. First learn the examples and than build your own (from the trunk) pcl ICP. The ICP from the example is just a working function, instead you want a real preformer (a preformer ICP is an ICP that is build for you application) build your own!
– Martijn van Wezel
Oct 6 '15 at 19:24
add a comment |
I'm new to PCL, so please pardon me if this is not useful. There's the PCL Registration library which I think will be useful for your purpose.
– dhanushka
Jun 4 '15 at 6:18
Just follow first some tutorials about ICP. And it depence on application Which filter you use, I really like the fast Voxel grid filter. ICP is not the best way to do so. First learn the examples and than build your own (from the trunk) pcl ICP. The ICP from the example is just a working function, instead you want a real preformer (a preformer ICP is an ICP that is build for you application) build your own!
– Martijn van Wezel
Oct 6 '15 at 19:24
I'm new to PCL, so please pardon me if this is not useful. There's the PCL Registration library which I think will be useful for your purpose.
– dhanushka
Jun 4 '15 at 6:18
I'm new to PCL, so please pardon me if this is not useful. There's the PCL Registration library which I think will be useful for your purpose.
– dhanushka
Jun 4 '15 at 6:18
Just follow first some tutorials about ICP. And it depence on application Which filter you use, I really like the fast Voxel grid filter. ICP is not the best way to do so. First learn the examples and than build your own (from the trunk) pcl ICP. The ICP from the example is just a working function, instead you want a real preformer (a preformer ICP is an ICP that is build for you application) build your own!
– Martijn van Wezel
Oct 6 '15 at 19:24
Just follow first some tutorials about ICP. And it depence on application Which filter you use, I really like the fast Voxel grid filter. ICP is not the best way to do so. First learn the examples and than build your own (from the trunk) pcl ICP. The ICP from the example is just a working function, instead you want a real preformer (a preformer ICP is an ICP that is build for you application) build your own!
– Martijn van Wezel
Oct 6 '15 at 19:24
add a comment |
3 Answers
3
active
oldest
votes
Setting up a robust point cloud registration algorithm can be a challenging task with a variaty of different options, hyperparameters and techniques to be set correctly to obtain strong results.
However the Point Cloud Library comes with a whole set of preimplemented function to solve this kind of task. The only thing left to do is to understand what each blocks is doing and to then set up a so called ICP Pipeline consisting of these blocks stacked on each other.
An ICP pipeline can follow two different paths:
1. Iterative registration algorithm
The easier path starts right away applying an Iterative Closest Point Algorithm on the Input-Cloud (IC) to math it with the fixed Reference-Cloud (RC) by always using the closest point method. The ICP takes an optimistic asumption that the two point clouds are close enough (good prior of rotation R and translation T) and the registration will converge without further initial alignment.
This path of course can get stucked in a local minimum and therefore perform very poorly as it is prone to get fooled by any kind of inaccuracies in the given input data.
2. Feature-based registration algorithm
To overcome this people have worked on developing all kinds of methods and ideas to overcome bad performing registration. In contrast to a merely iterative registration algorithm a feature-based registration first tires to find higher lever correspondences between the two point clouds to speed up the process and to improve the accuracy. The methods are capsuled and then embedded in the registration pipleline to form a complete registration model.
The following picture from the PCL documentation shows such a Registation pipeline:
As you can see a pairwise registration should run trough different computational steps to perform best. The single steps are:
Data acquisition: An input cloud and a reference cloud are fed into the algorithm.
Estimating Keypoints: A keypoint (interest point) is a point within the point cloud that has the following characteristics:
- it has a clear, preferably mathematically well-founded, definition,
- it has a well-defined position in image space,
- the local image structure around the interest point is rich in terms of local information contents
Such salient points in a point cloud are so usefull because the sum of them characterizes a point cloud and helps making different parts of it distinguishable.
pcl::NarfKeypoint
pcl::ISSKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint6D< PointInT, PointOutT, NormalT >
pcl::SIFTKeypoint< PointInT, PointOutT >
pcl::SUSANKeypoint< PointInT, PointOutT, NormalT, IntensityT >
Detailed Information: PCL Keypoint - Documentation
Describing keypoints - Feature descriptors: After detecting keypoints we go on to compute a descriptor for every one of them. "A local descriptor a compact representation of a point’s local neighborhood. In contrast to global descriptors describing a complete object or point cloud, local descriptors try to resemble shape and appearance only in a local neighborhood around a point and thus are very suitable for representing it in terms of matching." (Dirk Holz et al.)
pcl::FPFHEstimation< PointInT, PointNT, PointOutT >
pcl::NormalEstimation< PointInT, PointOutT >
pcl::NormalEstimationOMP< PointInT, PointOutT >
pcl::OURCVFHEstimation< PointInT, PointNT, PointOutT >
pcl::PrincipalCurvaturesEstimation< PointInT, PointNT, PointOutT >
pcl::IntensitySpinEstimation< PointInT, PointOutT >
Detailed information: PCL Features - Documentation
Correspondence Estimation: The next task is to find correspondences between the keypoints found in the point clouds. Usually one takes advantage of the computed local featur-descriptors and match each one of them to his corresponding counterpart in the other point cloud. However due to the fact that two scans from a similar scene don't necessarily have the same number of feature-descriptors as one cloud can have more data then the other, we need to run a seperated correspondence rejection process.
pcl::registration::CorrespondenceEstimation< PointSource, PointTarget, Scalar >
pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >
pcl::registration::CorrespondenceEstimationNormalShooting< PointSource, PointTarget, NormalT, Scalar >
Correspondence rejection: One of the most common approaches to perform correspondence rejection is to use RANSAC (Random Sample Consensus). But PCL comes with more rejection algorithms that a worth it giving them a closer look:
pcl::registration::CorrespondenceRejectorSampleConsensus< PointT >
pcl::registration::CorrespondenceRejectorDistance
pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer< FeatureT >
pcl::registration::CorrespondenceRejectorPoly< SourceT, TargetT >
Detailed information: PCL Module registration - Documentation
Transformation Estimation: After robust correspondences between the two point clouds are computed an Absolute Orientation Algorithm is used to calculate a 6DOF (6 degrees of freedom) transformation which is applied on the input cloud to match the reference point cloud. There are many different algorithmic approaches to do so, PCL however includes an implementation based on the Singular Value Decomposition(SVD). A 4x4 matrix is computed that describes the rotation and translation needed to match the point clouds.
pcl::registration::TransformationEstimationSVD< PointSource, PointTarget, Scalar >
Detailed information: PCL Module registration - Documentation
Further reading:
- PCL Point Cloud Registration
- Registration with the Point Cloud Library
- PCL Registration - Presentation
- PCL - How features work
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
add a comment |
If your clouds are noisy and your initial alignment is not very good, forget about applying ICP from the beginning. Try obtaining keypoints on your clouds, and then estimating the features of these keypoints. You can test different keypoint/feature algorithms and choose the one that performs better for your case.
Then you can match these features and obtain correspondences. Filter those correspondences in a RANSAC loop to get inliers that you will use for obtaining an initial transformation. CorrespondenceRejectorSampleConsensus
will help you in this step.
Once you have applied this transformation, then you can use ICP for a final refinement.
The pipeline is something like:
- Detect keypoins in both point clouds
- Estimate features of these keypoints
- Match features and obtain correspondences
- Remove duplicates and apply RANSAC-ish loop to get inliers
- Obtain initial transformation and apply to one point cloud
- Once both clouds are initially aligned, apply ICP registration for the refinement
NOTE: This pipeline is only useful if both point clouds are in the same scale. In other case you need to calculate the scale factor between the clouds.
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
1
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
add a comment |
You can use super 4pcs for global registration. ICP is local method such as Gradient descent that depend to initial answer.
more info: http://geometry.cs.ucl.ac.uk/projects/2014/super4PCS/
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f30559556%2fpoint-cloud-library-robust-registration-of-two-point-clouds%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Setting up a robust point cloud registration algorithm can be a challenging task with a variaty of different options, hyperparameters and techniques to be set correctly to obtain strong results.
However the Point Cloud Library comes with a whole set of preimplemented function to solve this kind of task. The only thing left to do is to understand what each blocks is doing and to then set up a so called ICP Pipeline consisting of these blocks stacked on each other.
An ICP pipeline can follow two different paths:
1. Iterative registration algorithm
The easier path starts right away applying an Iterative Closest Point Algorithm on the Input-Cloud (IC) to math it with the fixed Reference-Cloud (RC) by always using the closest point method. The ICP takes an optimistic asumption that the two point clouds are close enough (good prior of rotation R and translation T) and the registration will converge without further initial alignment.
This path of course can get stucked in a local minimum and therefore perform very poorly as it is prone to get fooled by any kind of inaccuracies in the given input data.
2. Feature-based registration algorithm
To overcome this people have worked on developing all kinds of methods and ideas to overcome bad performing registration. In contrast to a merely iterative registration algorithm a feature-based registration first tires to find higher lever correspondences between the two point clouds to speed up the process and to improve the accuracy. The methods are capsuled and then embedded in the registration pipleline to form a complete registration model.
The following picture from the PCL documentation shows such a Registation pipeline:
As you can see a pairwise registration should run trough different computational steps to perform best. The single steps are:
Data acquisition: An input cloud and a reference cloud are fed into the algorithm.
Estimating Keypoints: A keypoint (interest point) is a point within the point cloud that has the following characteristics:
- it has a clear, preferably mathematically well-founded, definition,
- it has a well-defined position in image space,
- the local image structure around the interest point is rich in terms of local information contents
Such salient points in a point cloud are so usefull because the sum of them characterizes a point cloud and helps making different parts of it distinguishable.
pcl::NarfKeypoint
pcl::ISSKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint6D< PointInT, PointOutT, NormalT >
pcl::SIFTKeypoint< PointInT, PointOutT >
pcl::SUSANKeypoint< PointInT, PointOutT, NormalT, IntensityT >
Detailed Information: PCL Keypoint - Documentation
Describing keypoints - Feature descriptors: After detecting keypoints we go on to compute a descriptor for every one of them. "A local descriptor a compact representation of a point’s local neighborhood. In contrast to global descriptors describing a complete object or point cloud, local descriptors try to resemble shape and appearance only in a local neighborhood around a point and thus are very suitable for representing it in terms of matching." (Dirk Holz et al.)
pcl::FPFHEstimation< PointInT, PointNT, PointOutT >
pcl::NormalEstimation< PointInT, PointOutT >
pcl::NormalEstimationOMP< PointInT, PointOutT >
pcl::OURCVFHEstimation< PointInT, PointNT, PointOutT >
pcl::PrincipalCurvaturesEstimation< PointInT, PointNT, PointOutT >
pcl::IntensitySpinEstimation< PointInT, PointOutT >
Detailed information: PCL Features - Documentation
Correspondence Estimation: The next task is to find correspondences between the keypoints found in the point clouds. Usually one takes advantage of the computed local featur-descriptors and match each one of them to his corresponding counterpart in the other point cloud. However due to the fact that two scans from a similar scene don't necessarily have the same number of feature-descriptors as one cloud can have more data then the other, we need to run a seperated correspondence rejection process.
pcl::registration::CorrespondenceEstimation< PointSource, PointTarget, Scalar >
pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >
pcl::registration::CorrespondenceEstimationNormalShooting< PointSource, PointTarget, NormalT, Scalar >
Correspondence rejection: One of the most common approaches to perform correspondence rejection is to use RANSAC (Random Sample Consensus). But PCL comes with more rejection algorithms that a worth it giving them a closer look:
pcl::registration::CorrespondenceRejectorSampleConsensus< PointT >
pcl::registration::CorrespondenceRejectorDistance
pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer< FeatureT >
pcl::registration::CorrespondenceRejectorPoly< SourceT, TargetT >
Detailed information: PCL Module registration - Documentation
Transformation Estimation: After robust correspondences between the two point clouds are computed an Absolute Orientation Algorithm is used to calculate a 6DOF (6 degrees of freedom) transformation which is applied on the input cloud to match the reference point cloud. There are many different algorithmic approaches to do so, PCL however includes an implementation based on the Singular Value Decomposition(SVD). A 4x4 matrix is computed that describes the rotation and translation needed to match the point clouds.
pcl::registration::TransformationEstimationSVD< PointSource, PointTarget, Scalar >
Detailed information: PCL Module registration - Documentation
Further reading:
- PCL Point Cloud Registration
- Registration with the Point Cloud Library
- PCL Registration - Presentation
- PCL - How features work
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
add a comment |
Setting up a robust point cloud registration algorithm can be a challenging task with a variaty of different options, hyperparameters and techniques to be set correctly to obtain strong results.
However the Point Cloud Library comes with a whole set of preimplemented function to solve this kind of task. The only thing left to do is to understand what each blocks is doing and to then set up a so called ICP Pipeline consisting of these blocks stacked on each other.
An ICP pipeline can follow two different paths:
1. Iterative registration algorithm
The easier path starts right away applying an Iterative Closest Point Algorithm on the Input-Cloud (IC) to math it with the fixed Reference-Cloud (RC) by always using the closest point method. The ICP takes an optimistic asumption that the two point clouds are close enough (good prior of rotation R and translation T) and the registration will converge without further initial alignment.
This path of course can get stucked in a local minimum and therefore perform very poorly as it is prone to get fooled by any kind of inaccuracies in the given input data.
2. Feature-based registration algorithm
To overcome this people have worked on developing all kinds of methods and ideas to overcome bad performing registration. In contrast to a merely iterative registration algorithm a feature-based registration first tires to find higher lever correspondences between the two point clouds to speed up the process and to improve the accuracy. The methods are capsuled and then embedded in the registration pipleline to form a complete registration model.
The following picture from the PCL documentation shows such a Registation pipeline:
As you can see a pairwise registration should run trough different computational steps to perform best. The single steps are:
Data acquisition: An input cloud and a reference cloud are fed into the algorithm.
Estimating Keypoints: A keypoint (interest point) is a point within the point cloud that has the following characteristics:
- it has a clear, preferably mathematically well-founded, definition,
- it has a well-defined position in image space,
- the local image structure around the interest point is rich in terms of local information contents
Such salient points in a point cloud are so usefull because the sum of them characterizes a point cloud and helps making different parts of it distinguishable.
pcl::NarfKeypoint
pcl::ISSKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint6D< PointInT, PointOutT, NormalT >
pcl::SIFTKeypoint< PointInT, PointOutT >
pcl::SUSANKeypoint< PointInT, PointOutT, NormalT, IntensityT >
Detailed Information: PCL Keypoint - Documentation
Describing keypoints - Feature descriptors: After detecting keypoints we go on to compute a descriptor for every one of them. "A local descriptor a compact representation of a point’s local neighborhood. In contrast to global descriptors describing a complete object or point cloud, local descriptors try to resemble shape and appearance only in a local neighborhood around a point and thus are very suitable for representing it in terms of matching." (Dirk Holz et al.)
pcl::FPFHEstimation< PointInT, PointNT, PointOutT >
pcl::NormalEstimation< PointInT, PointOutT >
pcl::NormalEstimationOMP< PointInT, PointOutT >
pcl::OURCVFHEstimation< PointInT, PointNT, PointOutT >
pcl::PrincipalCurvaturesEstimation< PointInT, PointNT, PointOutT >
pcl::IntensitySpinEstimation< PointInT, PointOutT >
Detailed information: PCL Features - Documentation
Correspondence Estimation: The next task is to find correspondences between the keypoints found in the point clouds. Usually one takes advantage of the computed local featur-descriptors and match each one of them to his corresponding counterpart in the other point cloud. However due to the fact that two scans from a similar scene don't necessarily have the same number of feature-descriptors as one cloud can have more data then the other, we need to run a seperated correspondence rejection process.
pcl::registration::CorrespondenceEstimation< PointSource, PointTarget, Scalar >
pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >
pcl::registration::CorrespondenceEstimationNormalShooting< PointSource, PointTarget, NormalT, Scalar >
Correspondence rejection: One of the most common approaches to perform correspondence rejection is to use RANSAC (Random Sample Consensus). But PCL comes with more rejection algorithms that a worth it giving them a closer look:
pcl::registration::CorrespondenceRejectorSampleConsensus< PointT >
pcl::registration::CorrespondenceRejectorDistance
pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer< FeatureT >
pcl::registration::CorrespondenceRejectorPoly< SourceT, TargetT >
Detailed information: PCL Module registration - Documentation
Transformation Estimation: After robust correspondences between the two point clouds are computed an Absolute Orientation Algorithm is used to calculate a 6DOF (6 degrees of freedom) transformation which is applied on the input cloud to match the reference point cloud. There are many different algorithmic approaches to do so, PCL however includes an implementation based on the Singular Value Decomposition(SVD). A 4x4 matrix is computed that describes the rotation and translation needed to match the point clouds.
pcl::registration::TransformationEstimationSVD< PointSource, PointTarget, Scalar >
Detailed information: PCL Module registration - Documentation
Further reading:
- PCL Point Cloud Registration
- Registration with the Point Cloud Library
- PCL Registration - Presentation
- PCL - How features work
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
add a comment |
Setting up a robust point cloud registration algorithm can be a challenging task with a variaty of different options, hyperparameters and techniques to be set correctly to obtain strong results.
However the Point Cloud Library comes with a whole set of preimplemented function to solve this kind of task. The only thing left to do is to understand what each blocks is doing and to then set up a so called ICP Pipeline consisting of these blocks stacked on each other.
An ICP pipeline can follow two different paths:
1. Iterative registration algorithm
The easier path starts right away applying an Iterative Closest Point Algorithm on the Input-Cloud (IC) to math it with the fixed Reference-Cloud (RC) by always using the closest point method. The ICP takes an optimistic asumption that the two point clouds are close enough (good prior of rotation R and translation T) and the registration will converge without further initial alignment.
This path of course can get stucked in a local minimum and therefore perform very poorly as it is prone to get fooled by any kind of inaccuracies in the given input data.
2. Feature-based registration algorithm
To overcome this people have worked on developing all kinds of methods and ideas to overcome bad performing registration. In contrast to a merely iterative registration algorithm a feature-based registration first tires to find higher lever correspondences between the two point clouds to speed up the process and to improve the accuracy. The methods are capsuled and then embedded in the registration pipleline to form a complete registration model.
The following picture from the PCL documentation shows such a Registation pipeline:
As you can see a pairwise registration should run trough different computational steps to perform best. The single steps are:
Data acquisition: An input cloud and a reference cloud are fed into the algorithm.
Estimating Keypoints: A keypoint (interest point) is a point within the point cloud that has the following characteristics:
- it has a clear, preferably mathematically well-founded, definition,
- it has a well-defined position in image space,
- the local image structure around the interest point is rich in terms of local information contents
Such salient points in a point cloud are so usefull because the sum of them characterizes a point cloud and helps making different parts of it distinguishable.
pcl::NarfKeypoint
pcl::ISSKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint6D< PointInT, PointOutT, NormalT >
pcl::SIFTKeypoint< PointInT, PointOutT >
pcl::SUSANKeypoint< PointInT, PointOutT, NormalT, IntensityT >
Detailed Information: PCL Keypoint - Documentation
Describing keypoints - Feature descriptors: After detecting keypoints we go on to compute a descriptor for every one of them. "A local descriptor a compact representation of a point’s local neighborhood. In contrast to global descriptors describing a complete object or point cloud, local descriptors try to resemble shape and appearance only in a local neighborhood around a point and thus are very suitable for representing it in terms of matching." (Dirk Holz et al.)
pcl::FPFHEstimation< PointInT, PointNT, PointOutT >
pcl::NormalEstimation< PointInT, PointOutT >
pcl::NormalEstimationOMP< PointInT, PointOutT >
pcl::OURCVFHEstimation< PointInT, PointNT, PointOutT >
pcl::PrincipalCurvaturesEstimation< PointInT, PointNT, PointOutT >
pcl::IntensitySpinEstimation< PointInT, PointOutT >
Detailed information: PCL Features - Documentation
Correspondence Estimation: The next task is to find correspondences between the keypoints found in the point clouds. Usually one takes advantage of the computed local featur-descriptors and match each one of them to his corresponding counterpart in the other point cloud. However due to the fact that two scans from a similar scene don't necessarily have the same number of feature-descriptors as one cloud can have more data then the other, we need to run a seperated correspondence rejection process.
pcl::registration::CorrespondenceEstimation< PointSource, PointTarget, Scalar >
pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >
pcl::registration::CorrespondenceEstimationNormalShooting< PointSource, PointTarget, NormalT, Scalar >
Correspondence rejection: One of the most common approaches to perform correspondence rejection is to use RANSAC (Random Sample Consensus). But PCL comes with more rejection algorithms that a worth it giving them a closer look:
pcl::registration::CorrespondenceRejectorSampleConsensus< PointT >
pcl::registration::CorrespondenceRejectorDistance
pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer< FeatureT >
pcl::registration::CorrespondenceRejectorPoly< SourceT, TargetT >
Detailed information: PCL Module registration - Documentation
Transformation Estimation: After robust correspondences between the two point clouds are computed an Absolute Orientation Algorithm is used to calculate a 6DOF (6 degrees of freedom) transformation which is applied on the input cloud to match the reference point cloud. There are many different algorithmic approaches to do so, PCL however includes an implementation based on the Singular Value Decomposition(SVD). A 4x4 matrix is computed that describes the rotation and translation needed to match the point clouds.
pcl::registration::TransformationEstimationSVD< PointSource, PointTarget, Scalar >
Detailed information: PCL Module registration - Documentation
Further reading:
- PCL Point Cloud Registration
- Registration with the Point Cloud Library
- PCL Registration - Presentation
- PCL - How features work
Setting up a robust point cloud registration algorithm can be a challenging task with a variaty of different options, hyperparameters and techniques to be set correctly to obtain strong results.
However the Point Cloud Library comes with a whole set of preimplemented function to solve this kind of task. The only thing left to do is to understand what each blocks is doing and to then set up a so called ICP Pipeline consisting of these blocks stacked on each other.
An ICP pipeline can follow two different paths:
1. Iterative registration algorithm
The easier path starts right away applying an Iterative Closest Point Algorithm on the Input-Cloud (IC) to math it with the fixed Reference-Cloud (RC) by always using the closest point method. The ICP takes an optimistic asumption that the two point clouds are close enough (good prior of rotation R and translation T) and the registration will converge without further initial alignment.
This path of course can get stucked in a local minimum and therefore perform very poorly as it is prone to get fooled by any kind of inaccuracies in the given input data.
2. Feature-based registration algorithm
To overcome this people have worked on developing all kinds of methods and ideas to overcome bad performing registration. In contrast to a merely iterative registration algorithm a feature-based registration first tires to find higher lever correspondences between the two point clouds to speed up the process and to improve the accuracy. The methods are capsuled and then embedded in the registration pipleline to form a complete registration model.
The following picture from the PCL documentation shows such a Registation pipeline:
As you can see a pairwise registration should run trough different computational steps to perform best. The single steps are:
Data acquisition: An input cloud and a reference cloud are fed into the algorithm.
Estimating Keypoints: A keypoint (interest point) is a point within the point cloud that has the following characteristics:
- it has a clear, preferably mathematically well-founded, definition,
- it has a well-defined position in image space,
- the local image structure around the interest point is rich in terms of local information contents
Such salient points in a point cloud are so usefull because the sum of them characterizes a point cloud and helps making different parts of it distinguishable.
pcl::NarfKeypoint
pcl::ISSKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint3D< PointInT, PointOutT, NormalT >
pcl::HarrisKeypoint6D< PointInT, PointOutT, NormalT >
pcl::SIFTKeypoint< PointInT, PointOutT >
pcl::SUSANKeypoint< PointInT, PointOutT, NormalT, IntensityT >
Detailed Information: PCL Keypoint - Documentation
Describing keypoints - Feature descriptors: After detecting keypoints we go on to compute a descriptor for every one of them. "A local descriptor a compact representation of a point’s local neighborhood. In contrast to global descriptors describing a complete object or point cloud, local descriptors try to resemble shape and appearance only in a local neighborhood around a point and thus are very suitable for representing it in terms of matching." (Dirk Holz et al.)
pcl::FPFHEstimation< PointInT, PointNT, PointOutT >
pcl::NormalEstimation< PointInT, PointOutT >
pcl::NormalEstimationOMP< PointInT, PointOutT >
pcl::OURCVFHEstimation< PointInT, PointNT, PointOutT >
pcl::PrincipalCurvaturesEstimation< PointInT, PointNT, PointOutT >
pcl::IntensitySpinEstimation< PointInT, PointOutT >
Detailed information: PCL Features - Documentation
Correspondence Estimation: The next task is to find correspondences between the keypoints found in the point clouds. Usually one takes advantage of the computed local featur-descriptors and match each one of them to his corresponding counterpart in the other point cloud. However due to the fact that two scans from a similar scene don't necessarily have the same number of feature-descriptors as one cloud can have more data then the other, we need to run a seperated correspondence rejection process.
pcl::registration::CorrespondenceEstimation< PointSource, PointTarget, Scalar >
pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >
pcl::registration::CorrespondenceEstimationNormalShooting< PointSource, PointTarget, NormalT, Scalar >
Correspondence rejection: One of the most common approaches to perform correspondence rejection is to use RANSAC (Random Sample Consensus). But PCL comes with more rejection algorithms that a worth it giving them a closer look:
pcl::registration::CorrespondenceRejectorSampleConsensus< PointT >
pcl::registration::CorrespondenceRejectorDistance
pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer< FeatureT >
pcl::registration::CorrespondenceRejectorPoly< SourceT, TargetT >
Detailed information: PCL Module registration - Documentation
Transformation Estimation: After robust correspondences between the two point clouds are computed an Absolute Orientation Algorithm is used to calculate a 6DOF (6 degrees of freedom) transformation which is applied on the input cloud to match the reference point cloud. There are many different algorithmic approaches to do so, PCL however includes an implementation based on the Singular Value Decomposition(SVD). A 4x4 matrix is computed that describes the rotation and translation needed to match the point clouds.
pcl::registration::TransformationEstimationSVD< PointSource, PointTarget, Scalar >
Detailed information: PCL Module registration - Documentation
Further reading:
- PCL Point Cloud Registration
- Registration with the Point Cloud Library
- PCL Registration - Presentation
- PCL - How features work
edited Aug 29 '16 at 21:59
answered Jul 20 '16 at 16:01
Kevin KatzkeKevin Katzke
1,65031931
1,65031931
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
add a comment |
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
Thanks, that's an awesome answers!
– freakinpenguin
Sep 28 '16 at 8:35
add a comment |
If your clouds are noisy and your initial alignment is not very good, forget about applying ICP from the beginning. Try obtaining keypoints on your clouds, and then estimating the features of these keypoints. You can test different keypoint/feature algorithms and choose the one that performs better for your case.
Then you can match these features and obtain correspondences. Filter those correspondences in a RANSAC loop to get inliers that you will use for obtaining an initial transformation. CorrespondenceRejectorSampleConsensus
will help you in this step.
Once you have applied this transformation, then you can use ICP for a final refinement.
The pipeline is something like:
- Detect keypoins in both point clouds
- Estimate features of these keypoints
- Match features and obtain correspondences
- Remove duplicates and apply RANSAC-ish loop to get inliers
- Obtain initial transformation and apply to one point cloud
- Once both clouds are initially aligned, apply ICP registration for the refinement
NOTE: This pipeline is only useful if both point clouds are in the same scale. In other case you need to calculate the scale factor between the clouds.
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
1
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
add a comment |
If your clouds are noisy and your initial alignment is not very good, forget about applying ICP from the beginning. Try obtaining keypoints on your clouds, and then estimating the features of these keypoints. You can test different keypoint/feature algorithms and choose the one that performs better for your case.
Then you can match these features and obtain correspondences. Filter those correspondences in a RANSAC loop to get inliers that you will use for obtaining an initial transformation. CorrespondenceRejectorSampleConsensus
will help you in this step.
Once you have applied this transformation, then you can use ICP for a final refinement.
The pipeline is something like:
- Detect keypoins in both point clouds
- Estimate features of these keypoints
- Match features and obtain correspondences
- Remove duplicates and apply RANSAC-ish loop to get inliers
- Obtain initial transformation and apply to one point cloud
- Once both clouds are initially aligned, apply ICP registration for the refinement
NOTE: This pipeline is only useful if both point clouds are in the same scale. In other case you need to calculate the scale factor between the clouds.
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
1
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
add a comment |
If your clouds are noisy and your initial alignment is not very good, forget about applying ICP from the beginning. Try obtaining keypoints on your clouds, and then estimating the features of these keypoints. You can test different keypoint/feature algorithms and choose the one that performs better for your case.
Then you can match these features and obtain correspondences. Filter those correspondences in a RANSAC loop to get inliers that you will use for obtaining an initial transformation. CorrespondenceRejectorSampleConsensus
will help you in this step.
Once you have applied this transformation, then you can use ICP for a final refinement.
The pipeline is something like:
- Detect keypoins in both point clouds
- Estimate features of these keypoints
- Match features and obtain correspondences
- Remove duplicates and apply RANSAC-ish loop to get inliers
- Obtain initial transformation and apply to one point cloud
- Once both clouds are initially aligned, apply ICP registration for the refinement
NOTE: This pipeline is only useful if both point clouds are in the same scale. In other case you need to calculate the scale factor between the clouds.
If your clouds are noisy and your initial alignment is not very good, forget about applying ICP from the beginning. Try obtaining keypoints on your clouds, and then estimating the features of these keypoints. You can test different keypoint/feature algorithms and choose the one that performs better for your case.
Then you can match these features and obtain correspondences. Filter those correspondences in a RANSAC loop to get inliers that you will use for obtaining an initial transformation. CorrespondenceRejectorSampleConsensus
will help you in this step.
Once you have applied this transformation, then you can use ICP for a final refinement.
The pipeline is something like:
- Detect keypoins in both point clouds
- Estimate features of these keypoints
- Match features and obtain correspondences
- Remove duplicates and apply RANSAC-ish loop to get inliers
- Obtain initial transformation and apply to one point cloud
- Once both clouds are initially aligned, apply ICP registration for the refinement
NOTE: This pipeline is only useful if both point clouds are in the same scale. In other case you need to calculate the scale factor between the clouds.
answered May 12 '16 at 6:53
Finfa811Finfa811
334217
334217
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
1
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
add a comment |
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
1
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
What did you mean saying the same scale? Did you mean that point clouds must have the same size?
– Aram Gevorgyan
Feb 14 '17 at 15:39
1
1
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
@AramGevorgyan Sometimes two point clouds of the same scene could be retrieved with a different scale. If you are obtaining them with a RGB-D camera, they will mostly have the same absolute scale (meters, feet...). However, there may be some scenarios where you can retrieve point clouds with different or arbitrary scale (e.g. Structure-from-Motion), and firstly you will need to convert all your clouds to the same scale to apply the pipeline above.
– Finfa811
Feb 15 '17 at 11:21
add a comment |
You can use super 4pcs for global registration. ICP is local method such as Gradient descent that depend to initial answer.
more info: http://geometry.cs.ucl.ac.uk/projects/2014/super4PCS/
add a comment |
You can use super 4pcs for global registration. ICP is local method such as Gradient descent that depend to initial answer.
more info: http://geometry.cs.ucl.ac.uk/projects/2014/super4PCS/
add a comment |
You can use super 4pcs for global registration. ICP is local method such as Gradient descent that depend to initial answer.
more info: http://geometry.cs.ucl.ac.uk/projects/2014/super4PCS/
You can use super 4pcs for global registration. ICP is local method such as Gradient descent that depend to initial answer.
more info: http://geometry.cs.ucl.ac.uk/projects/2014/super4PCS/
answered Aug 22 '15 at 16:44
mahdi_12167mahdi_12167
30138
30138
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f30559556%2fpoint-cloud-library-robust-registration-of-two-point-clouds%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm new to PCL, so please pardon me if this is not useful. There's the PCL Registration library which I think will be useful for your purpose.
– dhanushka
Jun 4 '15 at 6:18
Just follow first some tutorials about ICP. And it depence on application Which filter you use, I really like the fast Voxel grid filter. ICP is not the best way to do so. First learn the examples and than build your own (from the trunk) pcl ICP. The ICP from the example is just a working function, instead you want a real preformer (a preformer ICP is an ICP that is build for you application) build your own!
– Martijn van Wezel
Oct 6 '15 at 19:24