25 namespace registration {
44 double relative_rmse = 1e-6,
45 int max_iteration = 30)
107 double max_correspondence_distance,
132 const double max_correspondence_distance,
138 const double voxel_size = -1.0,
139 const std::function<
void(
const std::unordered_map<std::string, core::Tensor>
140 &)> &callback_after_iteration =
nullptr);
170 const std::vector<double> &voxel_sizes,
171 const std::vector<ICPConvergenceCriteria> &criteria_list,
172 const std::vector<double> &max_correspondence_distances,
178 void(
const std::unordered_map<std::string, core::Tensor> &)>
179 &callback_after_iteration =
nullptr);
193 const double max_correspondence_distance,
static Tensor Eye(int64_t n, Dtype dtype, const Device &device)
Create an identity matrix of size n x n.
Definition: Tensor.cpp:385
A point cloud contains a list of 3D points.
Definition: PointCloud.h:80
Class that defines the convergence criteria of ICP.
Definition: Registration.h:31
double relative_rmse_
Definition: Registration.h:57
double relative_fitness_
Definition: Registration.h:54
ICPConvergenceCriteria(double relative_fitness=1e-6, double relative_rmse=1e-6, int max_iteration=30)
Parameterized Constructor. ICP algorithm stops if the relative change of fitness and rmse hit relativ...
Definition: Registration.h:43
~ICPConvergenceCriteria()
Definition: Registration.h:49
int max_iteration_
Maximum iteration before iteration stops.
Definition: Registration.h:59
Definition: Registration.h:65
core::Tensor correspondences_
Definition: Registration.h:88
~RegistrationResult()
Definition: Registration.h:75
double fitness_
Definition: Registration.h:93
core::Tensor transformation_
The estimated transformation matrix of dtype Float64 on CPU device.
Definition: Registration.h:84
bool IsBetterThan(const RegistrationResult &other) const
Definition: Registration.h:77
RegistrationResult(const core::Tensor &transformation=core::Tensor::Eye(4, core::Float64, core::Device("CPU:0")))
Parameterized Constructor.
Definition: Registration.h:71
double inlier_rmse_
RMSE of all inlier correspondences. Lower is better.
Definition: Registration.h:90
const Dtype Float64
Definition: Dtype.cpp:43
RegistrationResult MultiScaleICP(const geometry::PointCloud &source, const geometry::PointCloud &target, const std::vector< double > &voxel_sizes, const std::vector< ICPConvergenceCriteria > &criterias, const std::vector< double > &max_correspondence_distances, const core::Tensor &init_source_to_target, const TransformationEstimation &estimation, const std::function< void(const std::unordered_map< std::string, core::Tensor > &)> &callback_after_iteration)
Functions for Multi-Scale ICP registration. It will run ICP on different voxel level,...
Definition: Registration.cpp:318
core::Tensor GetInformationMatrix(const geometry::PointCloud &source, const geometry::PointCloud &target, const double max_correspondence_distance, const core::Tensor &transformation)
Computes Information Matrix, from the transformation between source and target pointcloud....
Definition: Registration.cpp:397
RegistrationResult EvaluateRegistration(const geometry::PointCloud &source, const geometry::PointCloud &target, double max_correspondence_distance, const core::Tensor &transformation)
Function for evaluating registration between point clouds.
Definition: Registration.cpp:64
RegistrationResult ICP(const geometry::PointCloud &source, const geometry::PointCloud &target, const double max_correspondence_distance, const core::Tensor &init_source_to_target, const TransformationEstimation &estimation, const ICPConvergenceCriteria &criteria, const double voxel_size, const std::function< void(const std::unordered_map< std::string, core::Tensor > &)> &callback_after_iteration)
Functions for ICP registration.
Definition: Registration.cpp:94
Definition: PinholeCameraIntrinsic.cpp:16