Skip to content

Commit 076cce0

Browse files
sgiraudotsloriot
authored andcommitted
Add verbose display of matrix
1 parent ebaf506 commit 076cce0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ compute_registration_transformation(const PointRange1& range1, const PointRan
112112
double score =
113113
matcher.ComputeTransformation(set1, set2, mat, sampler, visitor);
114114

115+
#ifdef CGAL_OPENGR_VERBOSE
116+
std::cerr << "Transformation matrix: " << std::endl;
117+
for (std::size_t i = 0; i < 4; ++ i)
118+
{
119+
for (std::size_t j = 0; j < 4; ++ j)
120+
std::cerr << mat.coeff(i,j) << " ";
121+
std::cerr << std::endl;
122+
}
123+
#endif
124+
115125
typename Kernel::Aff_transformation_3 cgal_trsf(
116126
mat.coeff(0,0), mat.coeff(0,1), mat.coeff(0,2), mat.coeff(0,3),
117127
mat.coeff(1,0), mat.coeff(1,1), mat.coeff(1,2), mat.coeff(1,3),

0 commit comments

Comments
 (0)