tlhedrick / dltdv

DLTdv MATLAB based video digitizing and annotation tool
BSD 3-Clause "New" or "Revised" License
17 stars 7 forks source link

DLTdv: Minimum number of points for calibration #1

Closed liofeu closed 2 years ago

liofeu commented 2 years ago

Dear Tyson,

Thank you very much for this great piece of code.

I’m trying to calibrate 3 cameras using 5 points only. I manage to initialize the calibration with a 5point calibration CSV file, I get the message ‘Loaded 5 point calibration object specification file’, but once I’m finished with the selection of the 5 points on the first camera, I cannot add the other camera images. The button ‘Initialize’ remains grey and does not change to “Add a camera” as when I have a 11 point calibration file instead.

Is there any reason for not allowing a calibration with 5 points only?

Do you see any issue in making CSV file which points are duplicated in order to have (artificially) 11 points, e.g. {pt1, pt1, pt2, p2, p3, p3, p4, p4, p5, p5, p5} instead of {p1, p2, p3, p4, p5} ?

Version: Application for Mac (DLTdv8a_v8p2p3).

Kind regards, Lionel

tlhedrick commented 2 years ago

Hi Lionel,

5 points is actually not enough to compute the 11 DLT coefficients; you need a minimum of 6 points. Duplicating some of the points to bring the count up to 11 won't solve the underlying issue, though you may get a more interesting error message! Probably the best option is to add 2 to 3 additional points that are at the midpoint of the line between some of the pre-existing points, since you can probably identify that location even if there is no marker. I'll see about adding a more informative error message in a future version!

Does that make sense, or did I mis-interpret your issue?

Cheers, Ty Hedrick

On 2/9/2022 11:51 AM, Lionel Feugère wrote:

Dear Tyson,

Thank you very much for this great piece of code.

I’m trying to calibrate 3 cameras using 5 points only. I manage to initialize the calibration with a 5point calibration CSV file, I get the message ‘Loaded 5 point calibration object specification file’, but once I’m finished with the selection of the 5 points on the first camera, I cannot add the other camera images. The button ‘Initialize’ remains grey and does not change to “Add a camera” as when I have a 11 point calibration file instead.

Is there any reason for not allowing a calibration with 5 points only?

Do you see any issue in making CSV file which points are duplicated in order to have (artificially) 11 points, e.g. {pt1, pt1, pt2, p2, p3, p3, p4, p4, p5, p5, p5} instead of {p1, p2, p3, p4, p5} ?

Version: Application for Mac (DLTdv8a_v8p2p3).

Kind regards, Lionel

— Reply to this email directly, view it on GitHub https://github.com/tlhedrick/dltdv/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/APPXBCJ6HGXXCBHDIRLYQ4TU2KLRNANCNFSM5N6BYAPA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

liofeu commented 2 years ago

Ok, thank you very much!