From 238d2fb5d8b719d8c98c65d61e2ea23e5d697697 Mon Sep 17 00:00:00 2001 From: boxanm Date: Mon, 20 Nov 2023 16:19:42 -0500 Subject: [PATCH] Replace 3D point cloud by 2D data inside 2D transformation tests --- utest/ui/Transformations.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/utest/ui/Transformations.cpp b/utest/ui/Transformations.cpp index d2fb43d4..6e4f97c4 100644 --- a/utest/ui/Transformations.cpp +++ b/utest/ui/Transformations.cpp @@ -185,7 +185,7 @@ TEST(Transformation, ComputePureTranslationDataPoints2D) const Eigen::Rotation2D rotation{ 0 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure translation. { @@ -193,7 +193,7 @@ TEST(Transformation, ComputePureTranslationDataPoints2D) const Eigen::Rotation2D rotation{ 0 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } } @@ -230,7 +230,7 @@ TEST(Transformation, ComputeRigidTransformDataPoints2D) const Eigen::Rotation2D rotation{ 0 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure translation. { @@ -238,7 +238,7 @@ TEST(Transformation, ComputeRigidTransformDataPoints2D) const Eigen::Rotation2D rotation{ 0 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure rotation. { @@ -246,7 +246,7 @@ TEST(Transformation, ComputeRigidTransformDataPoints2D) const Eigen::Rotation2D rotation{ 3.53453 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Translation + rotation. { @@ -254,7 +254,7 @@ TEST(Transformation, ComputeRigidTransformDataPoints2D) const Eigen::Rotation2D rotation{ -123.3 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } } @@ -310,7 +310,7 @@ TEST(Transformation, ComputeSimilarityTransformDataPoints2D) const NumericType scale{ 1.0 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation, scale); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure Upscaling. { @@ -319,7 +319,7 @@ TEST(Transformation, ComputeSimilarityTransformDataPoints2D) const NumericType scale{ 5.0 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation, scale); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure Downscaling. { @@ -328,7 +328,7 @@ TEST(Transformation, ComputeSimilarityTransformDataPoints2D) const NumericType scale{ 0.1 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation, scale); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure translation + Downscaling. { @@ -337,7 +337,7 @@ TEST(Transformation, ComputeSimilarityTransformDataPoints2D) const NumericType scale{ 0.5 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation, scale); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Pure rotation + Upscaling. { @@ -346,7 +346,7 @@ TEST(Transformation, ComputeSimilarityTransformDataPoints2D) const NumericType scale{ 1.9 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation, scale); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } // Translation + rotation + Upscaling. { @@ -355,7 +355,7 @@ TEST(Transformation, ComputeSimilarityTransformDataPoints2D) const NumericType scale{ 1.9 }; const Eigen::Transform transformation = buildUpTransformation2D(translation, rotation, scale); // Transform and assert on the result. - assertOnDataPointsTransformation(data3D, transformation.matrix(), transformator); + assertOnDataPointsTransformation(data2D, transformation.matrix(), transformator); } }