-
Notifications
You must be signed in to change notification settings - Fork 12
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
Implementation questions #4
Comments
Hey @HansBrende Q1: Distance is always positive, so no need for Q2: Yes, that's most likely the case. Q3: Agreed, your second fix looks good. Retrospectively, I would depend on Q4: Exactly, I'm surprised that this works so well as is. (On second thought, it's not that surprising, considering that there is an implicit assumption that the chain of line segments all come from the same linear structure on the scene. It's definitely not intended though.) |
@bbenligiray thanks for the response! Regarding Q1, I'm not so sure that's the case, as the dot product can be signed. Take for example, the following line segments: lineSeg1 = (0, 0, 1, 1) In this case, One other somewhat philosophical question, regarding calculating the inverse distortions here: any reason you did it manually instead of using OpenCV's built-in |
@HansBrende Looking at the source (pg.22) the actual equation seems to be About the second point, I vaguely remember knowing about |
Question: is this line:
lens-distortion-rectification/groupLineSegments.m
Line 107 in 9a79efe
supposed to be:
as I am assuming the distance calculation here can return signed numbers?
Second question: was this line:
lens-distortion-rectification/groupLineSegments.m
Line 62 in 9a79efe
supposed to be:
for symmetry with the preceding logic of
ang1, ang0
, or wasang1
intended here?Third question: regarding the following two lines:
lens-distortion-rectification/groupLineSegments.m
Line 29 in 9a79efe
and
lens-distortion-rectification/groupLineSegments.m
Line 65 in 9a79efe
it seems like one of the following should be true: either (1), the first line is amended to:
OR (2), the second line is amended to:
for consistency (although I suspect the latter case is the correct one, if the intent was to mark all but the last index as
Inf
). Was one of the above intended?Fourth question:
The following line appears to disagree with the published paper (equation 3):
lens-distortion-rectification/getDistParamError.m
Line 66 in 9a79efe
Should that not be:
(no loop)?
The text was updated successfully, but these errors were encountered: