mirror of https://github.com/CGAL/cgal
Replace large XYZ by smaller binary PLY + fix examples
This commit is contained in:
parent
5beaa0c164
commit
10b92bc1d5
|
|
@ -100,8 +100,8 @@ if ( CGAL_FOUND )
|
|||
|
||||
# Executables that require both libpointmatcher and OpenGR
|
||||
if (libpointmatcher_FOUND AND OpenGR_FOUND)
|
||||
# include_directories(SYSTEM ${libpointmatcher_INCLUDE_DIR})
|
||||
# include_directories(SYSTEM ${OpenGR_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${libpointmatcher_INCLUDE_DIR})
|
||||
include_directories(SYSTEM ${OpenGR_INCLUDE_DIR})
|
||||
create_single_source_cgal_program( "registration_with_opengr_pointmatcher_pipeline.cpp" )
|
||||
target_link_libraries(registration_with_opengr_pointmatcher_pipeline PRIVATE ${libpointmatcher_LIBRARIES})
|
||||
else()
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
typedef CGAL::Simple_cartesian<float> K;
|
||||
typedef CGAL::Simple_cartesian<double> K;
|
||||
typedef K::Point_3 Point_3;
|
||||
typedef K::Vector_3 Vector_3;
|
||||
typedef std::pair<Point_3, Vector_3> Pwn;
|
||||
|
|
@ -50,7 +50,7 @@ int main(int argc, const char** argv)
|
|||
}
|
||||
input.close();
|
||||
|
||||
std::cout << "Computing registration transformation using OpenGR Super4PCS.." << std::endl;
|
||||
std::cerr << "Computing registration transformation using OpenGR Super4PCS.." << std::endl;
|
||||
// First, compute registration transformation using OpenGR Super4PCS
|
||||
K::Aff_transformation_3 res =
|
||||
std::get<0>( // get first of pair, which is the transformation
|
||||
|
|
@ -60,7 +60,7 @@ int main(int argc, const char** argv)
|
|||
params::point_map(Point_map()).normal_map(Normal_map()))
|
||||
);
|
||||
|
||||
std::cout << "Computing registration transformation using PointMatcher ICP, "
|
||||
std::cerr << "Computing registration transformation using PointMatcher ICP, "
|
||||
<< "taking transformation computed by OpenGR Super4PCS as initial transformation.." << std::endl;
|
||||
// Then, compute registration transformation using PointMatcher ICP, taking transformation computed
|
||||
// by OpenGR as initial transformation, and apply the transformation to pwns2
|
||||
|
|
@ -81,8 +81,8 @@ int main(int argc, const char** argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
std::cout << "Transformed version of " << fname2
|
||||
std::cerr << "Transformed version of " << fname2
|
||||
<< " written to pwn2_aligned.ply.\n";
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
typedef CGAL::Simple_cartesian<float> K;
|
||||
typedef CGAL::Simple_cartesian<double> K;
|
||||
typedef K::Point_3 Point_3;
|
||||
typedef K::Vector_3 Vector_3;
|
||||
typedef std::pair<Point_3, Vector_3> Pwn;
|
||||
|
|
@ -147,4 +147,4 @@ int main(int argc, const char** argv)
|
|||
<< " written to pwn2_aligned.ply.\n";
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue