-
Notifications
You must be signed in to change notification settings - Fork 767
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
Consistent interface for pixel center #579
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.
There is already px and py ?? I do not support to duplicate versions of all these things
Yes, please :-) |
Wouldn't it be advisable to remove the px and py in the other models and reflect those changes across all places that use it, then? Might cause some avoidable confusion otherwise. |
@@ -597,6 +597,7 @@ class Rot3 { | |||
Rot3(double R11, double R12, double R13, | |||
double R21, double R22, double R23, | |||
double R31, double R32, double R33); | |||
Rot3(double w, double x, double y, double z); |
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.
Is this related to this PR? (I'm assuming it's a quaternion rot constructor?)
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 isn't, but it was minor and I didn't want to create a whole new PR for it.
That would break backwards compatibility. Also a lot of internal code uses the |
Please request a re-review after adding px and py to missing Cal. Remove all u0 and v0 that were not there yet. Pls deprecate u0 and v0 if there was any. |
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.
Thanks, pls address comments though.
gtsam/geometry/Cal3Bundler.h
Outdated
return v0_; | ||
} | ||
|
||
/// @deprecated |
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.
No, we have this #ifdef thingy, remember ? :-)
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.
Uhhh I'm stupid
class SfmTrack { | ||
SfmTrack(); | ||
|
||
double r; |
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.
double r,g,b;
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.
The wrap parser doesn't support this syntax. :(
gtsam/gtsam.i
Outdated
double r; | ||
double g; | ||
double b; | ||
//TODO Need to close wrap#10 to allow this to work. |
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.
Please use Google-style linting, which should flag an issue here.
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.
LGTM!
Will squash and merge once CI passes. |
Defined u0 and v0 in all camera models for consistent interface.