Replace some deprecated Eigen and VTK functions#6420
Merged
larshg merged 2 commits intoPointCloudLibrary:masterfrom Apr 27, 2026
Merged
Replace some deprecated Eigen and VTK functions#6420larshg merged 2 commits intoPointCloudLibrary:masterfrom
larshg merged 2 commits intoPointCloudLibrary:masterfrom
Conversation
- Use `canonicalEulerAngles` instead of `eulerAngles` if Eigen version is 5.0.0 or newer - Specify options as template parameters in `jacobiSvd` if Eigen version is 5.0.0 or newer - Do not call `PreserveImageExtentOn` if VTK version is 9.6.0 or newer - Use `GetCapacity` insstead of `GetSize` if VTK version is 9.7.0 or newer
854f412 to
79eb2cf
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Updates PCL’s Eigen/VTK integration points to avoid newly deprecated APIs by selecting alternative calls based on detected library versions.
Changes:
- Switch from
eulerAngles()tocanonicalEulerAngles()for Eigen ≥ 5. - Update
jacobiSvdoption passing style for Eigen ≥ 5. - Gate
vtkImageFlip::PreserveImageExtentOn()for VTK < 9.6 and replace deprecated VTK array size query usage for VTK ≥ 9.7.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| visualization/src/point_picking_event.cpp | Adds VTK-version-dependent check using GetCapacity() vs GetSize() before reading selected indices |
| visualization/src/image_viewer.cpp | Skips deprecated/no-op PreserveImageExtentOn() on VTK ≥ 9.6 |
| sample_consensus/include/pcl/sample_consensus/impl/sac_model_torus.hpp | Uses Eigen-version-dependent jacobiSvd invocation style |
| registration/include/pcl/registration/impl/ndt.hpp | Uses Eigen-version-dependent Euler angle extraction method |
| recognition/src/face_detection/rf_face_detector_trainer.cpp | Uses Eigen-version-dependent Euler angle extraction method |
| recognition/src/face_detection/face_detector_data_provider.cpp | Uses Eigen-version-dependent Euler angle extraction method (two call sites) |
| apps/src/face_detection/filesystem_face_detection.cpp | Uses Eigen-version-dependent Euler angle extraction method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
larshg
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
canonicalEulerAnglesinstead ofeulerAnglesif Eigen version is 5.0.0 or newerjacobiSvdif Eigen version is 5.0.0 or newerPreserveImageExtentOnif VTK version is 9.6.0 or newerGetCapacityinsstead ofGetSizeif VTK version is 9.7.0 or newer