Ask Your Question

assertion failed px !=0 in PCL 1.6 [closed]

asked 2014-12-10 09:15:32 -0500

Armita_samandarian gravatar image

Hi expert. I am new in PCL and I have written a code for finding correspondences between two point clouds and then I tried to remove bad correspondences by writing some code. when I debug my code No error happens and when the code is running during the process in my Cmd window this error appears : Assertion Failed: Px !=0 I search in the internet and I know that the problem is related to the initialization of my shared_pointer! I tried to initialize them but still the same error happens. Please help me and let me know Where is my initialization is wrong. I am r eally confused right now! THX in advance

//Input data 
 pcl::PointCloud<pcl::PFHSignature125>::Ptr descriptors1_MVS_src (new   pcl::PointCloud<pcl::PFHSignature125>); 
 pcl::PointCloud<pcl::PFHSignature125>::Ptr descriptors1_TLS_trg (new pcl::PointCloud<pcl::PFHSignature125>); 
 pcl::CorrespondencesPtr correspondences_all(new pcl::Correspondences); 

    //Load MVS files From 

cout << "Finding correspondences..." << flush; 

pcl::registration::CorrespondenceEstimation<pcl::PFHSignature125, pcl::PFHSignature125> ce; 
cout << "OK! Correspondences found: " << correspondences_all->size() << endl; 

    pcl::CorrespondencesPtr correspondences_filtered(new pcl::Correspondences); 

    cout << "Finding Filtered correspondences..." << flush; 
    double inlierThreshold = 40; 
    pcl::registration::CorrespondenceRejectorFeatures  rejector; 
    rejector.setDistanceThreshold<pcl::PFHSignature125>(inlierThreshold, "inlierThreshold"); 
    cout << "OK! Correspondences filtered: " << correspondences_filtered->size()<< endl;
edit retag flag offensive reopen merge delete

Closed for the following reason PCL Question: The PCL community prefers to answer questions at by tfoote
close date 2015-03-16 13:35:55.344693

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-10 12:06:45 -0500

paulbovbel gravatar image

This is PCL specific and belongs on the PCL board/forum.

edit flag offensive delete link more

Question Tools


Asked: 2014-12-10 09:15:32 -0500

Seen: 627 times

Last updated: Dec 10 '14