![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <image.h>
Public Member Functions | |
| Image () | |
| void | SetUp (const Camera &camera) |
| void | TearDown () |
| image_t | ImageId () const |
| void | SetImageId (const image_t image_id) |
| const std::string & | Name () const |
| std::string & | Name () |
| void | SetName (const std::string &name) |
| camera_t | CameraId () const |
| void | SetCameraId (const camera_t camera_id) |
| bool | HasCamera () const |
| bool | IsRegistered () const |
| void | SetRegistered (const bool registered) |
| point2D_t | NumPoints2D () const |
| point2D_t | NumPoints3D () const |
| point2D_t | NumObservations () const |
| void | SetNumObservations (const point2D_t num_observations) |
| point2D_t | NumCorrespondences () const |
| void | SetNumCorrespondences (const point2D_t num_observations) |
| point2D_t | NumVisiblePoints3D () const |
| size_t | Point3DVisibilityScore () const |
| const std::vector< point2D_t > & | NumCorrespondencesHavePoint3D () const |
| std::vector< point2D_t > & | NumCorrespondencesHavePoint3D () |
| const VisibilityPyramid & | Point3DVisibilityPyramid () const |
| VisibilityPyramid & | Point3DVisibilityPyramid () |
| const Eigen::Vector4d & | Qvec () const |
| Eigen::Vector4d & | Qvec () |
| double | Qvec (const size_t idx) const |
| double & | Qvec (const size_t idx) |
| void | SetQvec (const Eigen::Vector4d &qvec) |
| const Eigen::Vector4d & | QvecPrior () const |
| Eigen::Vector4d & | QvecPrior () |
| double | QvecPrior (const size_t idx) const |
| double & | QvecPrior (const size_t idx) |
| bool | HasQvecPrior () const |
| void | SetQvecPrior (const Eigen::Vector4d &qvec) |
| const Eigen::Vector3d & | Tvec () const |
| Eigen::Vector3d & | Tvec () |
| double | Tvec (const size_t idx) const |
| double & | Tvec (const size_t idx) |
| void | SetTvec (const Eigen::Vector3d &tvec) |
| const Eigen::Vector3d & | TvecPrior () const |
| Eigen::Vector3d & | TvecPrior () |
| double | TvecPrior (const size_t idx) const |
| double & | TvecPrior (const size_t idx) |
| bool | HasTvecPrior () const |
| void | SetTvecPrior (const Eigen::Vector3d &tvec) |
| const class Point2D & | Point2D (const point2D_t point2D_idx) const |
| class Point2D & | Point2D (const point2D_t point2D_idx) |
| const std::vector< class Point2D > & | Points2D () const |
| void | SetPoints2D (const std::vector< Eigen::Vector2d > &points) |
| void | SetPoints2D (const std::vector< class Point2D > &points) |
| void | SetPoint3DForPoint2D (const point2D_t point2D_idx, const point3D_t point3D_id) |
| void | ResetPoint3DForPoint2D (const point2D_t point2D_idx) |
| bool | IsPoint3DVisible (const point2D_t point2D_idx) const |
| bool | HasPoint3D (const point3D_t point3D_id) const |
| void | IncrementCorrespondenceHasPoint3D (const point2D_t point2D_idx) |
| void | DecrementCorrespondenceHasPoint3D (const point2D_t point2D_idx) |
| void | NormalizeQvec () |
| Eigen::Matrix3x4d | ProjectionMatrix () const |
| Eigen::Matrix3x4d | InverseProjectionMatrix () const |
| Eigen::Matrix3d | RotationMatrix () const |
| Eigen::Vector3d | ProjectionCenter () const |
| Eigen::Vector3d | ViewingDirection () const |
Static Public Attributes | |
| static const int | kNumPoint3DVisibilityPyramidLevels = 6 |
| colmap::Image::Image | ( | ) |
Definition at line 46 of file image.cc.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 248 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), colmap::IncrementalMapper::RegisterInitialImagePair(), colmap::IncrementalMapper::RegisterNextImage(), and colmap::IncrementalTriangulator::Retriangulate().
| void colmap::Image::DecrementCorrespondenceHasPoint3D | ( | const point2D_t | point2D_idx | ) |
Definition at line 125 of file image.cc.
References colmap::VisibilityPyramid::ResetPoint(), colmap::Point2D::X(), and colmap::Point2D::Y().
|
inline |
Definition at line 255 of file image.h.
References colmap::kInvalidCameraId.
| bool colmap::Image::HasPoint3D | ( | const point3D_t | point3D_id | ) | const |
|
inline |
Definition at line 321 of file image.h.
References colmap::IsNaN().
|
inline |
Definition at line 345 of file image.h.
References colmap::IsNaN().
|
inline |
Definition at line 238 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), cloudViewer::TwoViewInfoTab::ShowMatches(), and colmap::TwoViewInfoTab::ShowMatches().
| void colmap::Image::IncrementCorrespondenceHasPoint3D | ( | const point2D_t | point2D_idx | ) |
Definition at line 112 of file image.cc.
References colmap::VisibilityPyramid::SetPoint(), colmap::Point2D::X(), and colmap::Point2D::Y().
| Eigen::Matrix3x4d colmap::Image::InverseProjectionMatrix | ( | ) | const |
Definition at line 144 of file image.cc.
References colmap::ComposeProjectionMatrix(), and colmap::InvertProjectionMatrix().
|
inline |
|
inline |
Definition at line 257 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), colmap::Reconstruction::IsImageRegistered(), colmap::IncrementalMapper::RegisterNextImage(), and colmap::IncrementalTriangulator::Retriangulate().
|
inline |
|
inline |
Definition at line 242 of file image.h.
References name_.
Referenced by colmap::Reconstruction::FindCommonRegImageIds(), colmap::Reconstruction::Load(), cloudViewer::TwoViewInfoTab::ShowMatches(), and colmap::TwoViewInfoTab::ShowMatches().
| void colmap::Image::NormalizeQvec | ( | ) |
Definition at line 138 of file image.cc.
References colmap::NormalizeQuaternion().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 261 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), and colmap::Reconstruction::Load().
|
inline |
Definition at line 265 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), colmap::Reconstruction::ComputeNumObservations(), and colmap::BundleAdjustmentConfig::NumResiduals().
|
inline |
Definition at line 349 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), colmap::Reconstruction::Merge(), colmap::IncrementalMapper::RegisterInitialImagePair(), colmap::IncrementalMapper::RegisterNextImage(), and colmap::IncrementalTriangulator::Retriangulate().
|
inline |
|
inline |
|
inline |
Definition at line 281 of file image.h.
References colmap::VisibilityPyramid::Score().
|
inline |
| Eigen::Vector3d colmap::Image::ProjectionCenter | ( | ) | const |
Definition at line 152 of file image.cc.
References colmap::ProjectionCenterFromPose().
Referenced by colmap::AlignToPrincipalPlane(), BOOST_AUTO_TEST_CASE(), colmap::IncrementalTriangulator::CompleteImage(), colmap::IncrementalMapper::RegisterInitialImagePair(), and colmap::RunModelComparer().
| Eigen::Matrix3x4d colmap::Image::ProjectionMatrix | ( | ) | const |
Definition at line 140 of file image.cc.
References colmap::ComposeProjectionMatrix().
Referenced by colmap::IncrementalTriangulator::CompleteImage(), and colmap::IncrementalMapper::RegisterInitialImagePair().
|
inline |
Definition at line 301 of file image.h.
Referenced by colmap::AlignToPrincipalPlane(), colmap::CameraRig::ComputeRelativePoses(), colmap::IncrementalMapper::RegisterInitialImagePair(), and colmap::RunModelComparer().
|
inline |
Definition at line 311 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
|
inline |
| void colmap::Image::ResetPoint3DForPoint2D | ( | const point2D_t | point2D_idx | ) |
Definition at line 97 of file image.cc.
References colmap::Point2D::HasPoint3D(), colmap::kInvalidPoint3DId, and colmap::Point2D::SetPoint3DId().
Referenced by colmap::Reconstruction::Merge().
| Eigen::Matrix3d colmap::Image::RotationMatrix | ( | ) | const |
Definition at line 148 of file image.cc.
References colmap::QuaternionToRotationMatrix().
Referenced by ViewingDirection().
|
inline |
Definition at line 250 of file image.h.
References colmap::kInvalidCameraId.
Referenced by BOOST_AUTO_TEST_CASE(), and colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
|
inline |
Definition at line 240 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), and colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
|
inline |
Definition at line 246 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), and colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
|
inline |
Definition at line 275 of file image.h.
Referenced by colmap::Reconstruction::DeleteAllPoints2DAndPoints3D(), and colmap::Reconstruction::Load().
|
inline |
Definition at line 269 of file image.h.
Referenced by colmap::Reconstruction::Load().
| void colmap::Image::SetPoint3DForPoint2D | ( | const point2D_t | point2D_idx, |
| const point3D_t | point3D_id | ||
| ) |
Definition at line 87 of file image.cc.
References colmap::Point2D::HasPoint3D(), colmap::kInvalidPoint3DId, and colmap::Point2D::SetPoint3DId().
| void colmap::Image::SetPoints2D | ( | const std::vector< class Point2D > & | points | ) |
| void colmap::Image::SetPoints2D | ( | const std::vector< Eigen::Vector2d > & | points | ) |
Definition at line 71 of file image.cc.
References points.
Referenced by GenerateReconstruction(), and colmap::Reconstruction::Load().
|
inline |
Definition at line 309 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), and colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
|
inline |
Definition at line 323 of file image.h.
Referenced by colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
|
inline |
Definition at line 259 of file image.h.
Referenced by colmap::Reconstruction::DeleteAllPoints2DAndPoints3D(), and colmap::Reconstruction::Merge().
|
inline |
Definition at line 333 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE(), and colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
|
inline |
Definition at line 347 of file image.h.
Referenced by colmap::Reconstruction::DeleteAllPoints2DAndPoints3D().
| void colmap::Image::SetUp | ( | const Camera & | camera | ) |
Definition at line 60 of file image.cc.
References colmap::Camera::CameraId(), colmap::Camera::Height(), kNumPoint3DVisibilityPyramidLevels, and colmap::Camera::Width().
|
inline |
Definition at line 325 of file image.h.
Referenced by colmap::AlignToPrincipalPlane(), BOOST_AUTO_TEST_CASE(), colmap::CameraRig::ComputeRelativePoses(), colmap::IncrementalMapper::RegisterInitialImagePair(), and colmap::RunModelComparer().
|
inline |
Definition at line 335 of file image.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
|
inline |
| Eigen::Vector3d colmap::Image::ViewingDirection | ( | ) | const |
Definition at line 156 of file image.cc.
References RotationMatrix().
|
static |