This repository contains an example of using the dlt
and cam-geom
crate
together.
Running the example should print the following:
Camera model:
┌ ┐
│ 83.31666666660156 33.36666666678236 -16.58333333339857 319.99999999999386 │
│ 33.29999999999758 33.39999999999455 33.49999999999713 239.99999999998653 │
│ -0.00000000007856193473543271 0.0000000001572350253470356 -0.00000000007865996742850712 1 │
└ ┘
3D -> 2D projections:
┌ ┐
│ -1 -2 -3 │
└ ┘
->
┌ ┐
│ 219.69994487244892 39.39990383876225 │
└ ┘
┌ ┐
│ 0 0 0 │
└ ┘
->
┌ ┐
│ 319.99994484173754 239.9999038389323 │
└ ┘
┌ ┐
│ 1 2 3 │
└ ┘
->
┌ ┐
│ 420.2999448356892 440.59990383759066 │
└ ┘
┌ ┐
│ 1.1 2.2 3.3 │
└ ┘
->
┌ ┐
│ 430.3299448474094 460.65990383792024 │
└ ┘
┌ ┐
│ 4 5 6 │
└ ┘
->
┌ ┐
│ 720.5999448329653 741.19990383635 │
└ ┘
┌ ┐
│ 4.4 5.5 6.6 │
└ ┘
->
┌ ┐
│ 760.6599448567381 791.3199038371719 │
└ ┘
┌ ┐
│ 7 8 9 │
└ ┘
->
┌ ┐
│ 1020.8999448302178 1041.7999038397072 │
└ ┘
┌ ┐
│ 7.7 8.8 9.9 │
└ ┘
->
┌ ┐
│ 1090.989944866038 1121.9799038410165 │
└ ┘