Skip to content

Commit

Permalink
remove pose strcuture from all concerned interfaces and replace it by…
Browse files Browse the repository at this point in the history
… Transform3D
  • Loading branch information
akacete committed May 7, 2018
1 parent a678ce4 commit a0e9fb0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions interfaces/api/solver/map/ITriangulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace SolAR {
const std::vector<SRef<Point2Df>>& pt2d_2,
const std::vector<DescriptorMatch>&matches,
const std::pair<int,int>&working_views,
const SRef<Pose>&p1,
const SRef<Pose>&p2,
const Transform3Df&p1,
const Transform3Df&p2,
const CamCalibration&cam,
const CamDistortion&dist,
std::vector<SRef<CloudPoint>>& pcloud)=0;
Expand All @@ -58,11 +58,11 @@ namespace SolAR {
const std::vector<SRef<Point2Df>>& pt2d_2,
const std::vector<DescriptorMatch>&matches,
const std::pair<int,int>&working_views,
const SRef<Pose>&p1,
const std::vector<SRef<Pose>>&p2,
const Transform3Df&p1,
const std::vector<Transform3Df>&p2,
const CamCalibration&cam,
const CamDistortion&dist,
SRef<Pose>&corrected_p,
Transform3Df&corrected_p,
std::vector<SRef<CloudPoint>>& pcloud)=0;

XPCF_DECLARE_UUID("3a01b0e9-9a76-43f5-97b3-85bb6979b953");
Expand Down
2 changes: 1 addition & 1 deletion interfaces/api/solver/pose/I2Dto3DTransformDecomposer.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using namespace datastructure;
virtual bool decompose(const Transform2Df& F,
const CamCalibration& K,
const CamDistortion& dist,
std::vector<SRef<Pose>>& decomposedPoses)= 0;
std::vector<Transform3Df>& decomposedPoses)= 0;
XPCF_DECLARE_UUID("0404e8b9-b824-4852-a34d-6eafa7563918");
};
}
Expand Down
4 changes: 2 additions & 2 deletions interfaces/api/solver/pose/I3DTransformFinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ namespace SolAR {
/// @param[out] Camera pose in the world coordinates system of the view_1.
virtual FrameworkReturnCode estimate(const std::vector<SRef<Point2Df>> & imagePoints,
const std::vector<SRef<Point3Df>> & worldPoints,
SRef<Pose> & pose) =0; ///
Transform3Df & pose) =0; ///

virtual FrameworkReturnCode reproject(SRef<Image>&input,
SRef<Pose> & pose,
Transform3Df & pose,
const CamCalibration&cam,
const CamDistortion&dist,
std::vector<SRef<Point2Df>> & imagePoints,
Expand Down
4 changes: 2 additions & 2 deletions interfaces/datastructure/Keyframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ class SOLARFRAMEWORK_API Keyframe {
Keyframe::Keyframe(SRef<Image>view,
SRef<DescriptorBuffer>desc,
int idx,
SRef<Pose>pose,
Transform3Df&pose,
std::vector<SRef<Keypoint>>kpts);
SRef<Image> m_view;
int m_idx;
SRef<Pose> m_pose;
Transform3Df m_pose;

private:
SRef<DescriptorBuffer> m_descriptor;
Expand Down
2 changes: 1 addition & 1 deletion src/datastructure/Keyframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace datastructure {
Keyframe::Keyframe(SRef<Image>view,
SRef<DescriptorBuffer>desc,
int idx,
SRef<Pose>pose,
Transform3Df&pose,
std::vector<SRef<Keypoint>>kpts): m_view(view),
m_descriptor(desc),
m_idx(idx),
Expand Down

0 comments on commit a0e9fb0

Please sign in to comment.