Skip to content

Replace some deprecated Eigen and VTK functions#6420

Merged
larshg merged 2 commits intoPointCloudLibrary:masterfrom
mvieth:replace_deprecated
Apr 27, 2026
Merged

Replace some deprecated Eigen and VTK functions#6420
larshg merged 2 commits intoPointCloudLibrary:masterfrom
mvieth:replace_deprecated

Conversation

@mvieth
Copy link
Copy Markdown
Member

@mvieth mvieth commented Apr 6, 2026

  • 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

@mvieth mvieth added the changelog: fix Meta-information for changelog generation label Apr 6, 2026
- 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
@mvieth mvieth force-pushed the replace_deprecated branch from 854f412 to 79eb2cf Compare April 7, 2026 11:58
@mvieth mvieth marked this pull request as ready for review April 8, 2026 08:24
@mvieth mvieth added this to the pcl-1.16.0 milestone Apr 9, 2026
@mvieth mvieth requested a review from Copilot April 24, 2026 09:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() to canonicalEulerAngles() for Eigen ≥ 5.
  • Update jacobiSvd option 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.

Comment thread sample_consensus/include/pcl/sample_consensus/impl/sac_model_torus.hpp Outdated
Comment thread registration/include/pcl/registration/impl/ndt.hpp Outdated
Comment thread recognition/src/face_detection/rf_face_detector_trainer.cpp Outdated
Comment thread recognition/src/face_detection/face_detector_data_provider.cpp Outdated
Comment thread recognition/src/face_detection/face_detector_data_provider.cpp Outdated
Comment thread apps/src/face_detection/filesystem_face_detection.cpp Outdated
Comment thread visualization/src/point_picking_event.cpp
@mvieth mvieth requested a review from larshg April 24, 2026 15:48
@larshg larshg merged commit f0e75e5 into PointCloudLibrary:master Apr 27, 2026
13 checks passed
@mvieth mvieth deleted the replace_deprecated branch April 27, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: fix Meta-information for changelog generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants