Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
yakir12 committed Dec 19, 2024
1 parent 48e323a commit ac0d62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildcalibrations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ end
Calculate reprojection, projection, distance, and inverse errors for the calibration `c`. `distance` measures the mean error of the distance between all adjacent checkerboard corners from the expected `checker_size`. `inverse` measures the mean error of applying the calibration's transformation and its inverse `inverse_samples` times.
"""
function calculate_errors(c, imgpointss, objpoints, checker_size, sz, files, n_corners, inverse_samples=100)
@show c.intrinsic, c.extrinsics, c.scale, c.k, c.files
reprojection = 0.0
projection = 0.0
distance = 0.0
inverse = 0.0
for (i, imgpoints) in pairs(imgpointss)
@show c, i, objpoints, imgpoints
reprojection += _reprojection(c, i, objpoints, imgpoints)

projected = c.(imgpoints, i)
Expand Down

0 comments on commit ac0d62f

Please sign in to comment.