-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
Optical center relative to the image center #1072
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add a compatibility code in IO files.
f346c9d
to
7cf9b06
Compare
src/aliceVision/version.hpp
Outdated
inline bool isVersionOlder(const Vec3 & version, const Vec3 & base) | ||
{ | ||
for (Vec3::Index i = 0; i < 3; i++) | ||
{ | ||
if (version[i] < base[i]) | ||
{ | ||
return true; | ||
} | ||
|
||
if (version[i] > base[i]) | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class Version
{
public:
Version(const Vec3&);
Version(int major, int minor, int micro);
bool operator<(const Vec3& other) const;
private:
Vec3 _v;
};
const double ppx = 2020.0 - (double(w) / 2.0); | ||
const double ppy = 1040.0 - (double(h) / 2.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const double ppx = 2020.0 - (double(w) / 2.0); | |
const double ppy = 1040.0 - (double(h) / 2.0); | |
const double ppx = -26; | |
const double ppy = 16; |
src/aliceVision/version.hpp
Outdated
} | ||
|
||
private: | ||
Vec3 _v; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vec3 _v; | |
Vec3i _v; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's obvious that integers are better suited for this task.
However, i choose doubles as Json I/O has always loaded/saved doubles.
5ed3d73
to
3ef5de8
Compare
… to the image center The "principal point" (or optical center) was relative to the top-left corner of the image. It is now defined as an "offset" relative to the image center.
Need to have the same width/height in View and Intrinsic
c1e1a87
to
ad65482
Compare
46086cd
to
4b2d4cc
Compare
4b2d4cc
to
85dd16d
Compare
replace principal point with offset from image center in camera internal description