Skip to content

Commit

Permalink
Merge pull request #697 from JuliaRobotics/23Q3/fix/GenericProj
Browse files Browse the repository at this point in the history
Bugfix GenericProjection
  • Loading branch information
Affie committed Aug 16, 2023
2 parents cb3fa03 + 61e2f3e commit 4d6c466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/RoMECameraModelsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function (cf::CalcFactor{<:GenericProjection{S,T}})(
# κ*(abs(pred.depth) - pred.depth)^2 + (c_X[1]-pred[1])^2 + (c_X[2]-pred[2])^2

frontPenalty = κ*(abs(pred.depth) - pred.depth)^2
res = SVector{3,Float64}(
res = SVector{2,Float64}(
frontPenalty + (c_X[1]-pred[1]),
frontPenalty + (c_X[2]-pred[2]),
)
Expand Down

0 comments on commit 4d6c466

Please sign in to comment.