×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Aligning Pointcloud To Mesh

Aligning Pointcloud To Mesh

Aligning Pointcloud To Mesh

(OP)
Hello,

I have been given a task to Align the points of a Pointcloud towards a Mesh as closely as possible.

I've read about PCL and specificly the Random Consensus Sampling (RANSAC) algorithm and thought that it's exactly what i'm looking for.

I've attemped to implement the ransac code, using the SampleConsensusModelRegistration<PointXYZ>::Ptr to create the model and using the Mesh vertexes as the input cloud, and the Pointcloud as the target cloud.

I first had issues with RANSAC.computeModel failing, so i submited an issue of github and found out that computeModel requires the input and target clouds to be of the same size, which mine weren't.

To fix this I decided to split my Pointcloud into chunks where each chunk would be the same size as the input cloud, and the last chunk i only copied the points from the Pointcloud into it up until there were no points in the Poitcloud thus leaving the remaining points in that chunk with default values.

I then tried this code out and what i got was the same message after trying to computeModel each chunk: '[pcl::RandomSampleConsensus::computeModel] RANSAC found no model.'

And so I am now wondering if wherher or not i've done something incorrectly, or if RANSAC is simply not meant for doing a task such as mine? If so, is there perhaps something else with PCL that i could use to acomplish my goal?

Thank you for your time,
Alek

RE: Aligning Pointcloud To Mesh

Alek,

Well, this IS a PCL Forum, but I'm afraid we deal with HP's Printer Control Language (PCL), rather than the Point Cloud Library (PCL).

I don't really know where to direct you, but I have found stackoverflow to be wonderfully helpful for certain projects.

Good luck.



Hugh Hood


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close