Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR3: Adding abstract class corresponding to OpenCvVisualizer3D and making other relevant changes #4

Open
wants to merge 2 commits into
base: xcomp_refactor/add_colorutils
Choose a base branch
from

Conversation

sarika93
Copy link
Member

Changes include:

  • Adding BaseOpenCvVisualizer3D abstract class
  • Updating OpenCvVisualizer3D to override relevant functions and be derived from abstract class
  • Updating all non-visualizer classes using OpenCvVisualizer3D to reference the abstract class instead.

The follow up PR will have all other abstract classes, but submitting this one first to make sure the format of changes are reasonable.

@@ -51,7 +51,7 @@ class MeshOptimization {
MeshOptimization(const MeshOptimizerType& solver_type,
const MeshColorType& mesh_color_type,
Camera::ConstPtr camera,
OpenCvVisualizer3D::Ptr visualizer = nullptr);
std::shared_ptr<VIO::BaseOpenCvVisualizer3D> visualizer = nullptr);
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure about format of the this, per Google C++ styleguide.

@@ -50,7 +50,7 @@ constexpr float MeshOptimization::kMaxZ;
MeshOptimization::MeshOptimization(const MeshOptimizerType& solver_type,
const MeshColorType& mesh_color_type,
Camera::ConstPtr camera,
OpenCvVisualizer3D::Ptr visualizer)
std::shared_ptr<VIO::BaseOpenCvVisualizer3D> visualizer)
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure about format of the this, per Google C++ styleguide.

@sarika93 sarika93 requested review from vpradeep07 and shiv1994 and removed request for vpradeep07, shiv1994 and enrique-ramkissoon January 6, 2025 18:53
@sarika93 sarika93 changed the title Adding abstract class corresponding to OpenCvVisualizer3D and making other relevant changes PR3: Adding abstract class corresponding to OpenCvVisualizer3D and making other relevant changes Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant