-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from zygmuntszpak/covariance_matrix
Adds measure of uncertainty for AML-based fundamental matrix estimate
- Loading branch information
Showing
41 changed files
with
884 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module ModuleCarriers | ||
using MultipleViewGeometry.ModuleTypes, MultipleViewGeometry.ModuleMathAliases, MultipleViewGeometry.ModuleOperators | ||
using StaticArrays | ||
export ββu, uβ | ||
include("carriers.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
# Carrier vector for fundamental matrix estimation. | ||
function ββu(entity::FundamentalMatrix, π) | ||
m, mΚΉ = π | ||
π¦ = π(collect(Float64,m.coords)) | ||
π¦ΚΉ = π(collect(Float64,mΚΉ.coords)) | ||
@inline function ββu(entity::FundamentalMatrix, π) | ||
m, mΚΉ = collect(π) | ||
# π¦ = π(collect(Float64,m.coords)) | ||
# π¦ΚΉ = π(collect(Float64,mΚΉ.coords)) | ||
π¦ = π(m) | ||
π¦ΚΉ = π(mΚΉ) | ||
ββu(entity, π¦ , π¦ΚΉ) | ||
end | ||
|
||
function ββu(entity::FundamentalMatrix, π¦::Vector{Float64}, π¦ΚΉ::Vector{Float64}) | ||
@inline function ββu(entity::FundamentalMatrix, π¦::AbstractVector, π¦ΚΉ::AbstractVector) | ||
πβ = [1.0 0.0 0.0]' | ||
πβ = [0.0 1.0 0.0]' | ||
[(πβ β π¦ΚΉ) (πβ β π¦ΚΉ) (π¦ β πβ) (π¦ β πβ)] | ||
end | ||
|
||
|
||
function uβ(entity::FundamentalMatrix, π) | ||
m, mΚΉ = π | ||
π¦ = π(collect(Float64,m.coords)) | ||
π¦ΚΉ = π(collect(Float64,mΚΉ.coords)) | ||
@inline function uβ(entity::FundamentalMatrix, π) | ||
m, mΚΉ = collect(π) | ||
# π¦ = π(collect(Float64,m.coords)) | ||
# π¦ΚΉ = π(collect(Float64,mΚΉ.coords)) | ||
π¦ = π(m) | ||
π¦ΚΉ = π(mΚΉ) | ||
uβ(entity, π¦ , π¦ΚΉ) | ||
end | ||
|
||
function uβ(entity::FundamentalMatrix, π¦::Vector{Float64}, π¦ΚΉ::Vector{Float64}) | ||
@inline function uβ(entity::FundamentalMatrix, π¦::AbstractVector, π¦ΚΉ::AbstractVector) | ||
π¦ β π¦ΚΉ | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
module ModuleConstruct | ||
using MultipleViewGeometry.ModuleTypes, MultipleViewGeometry.ModuleMathAliases, MultipleViewGeometry.ModuleOperators | ||
using MultipleViewGeometry.ModuleProjection | ||
using StaticArrays | ||
export construct | ||
|
||
include("construct_projectionmatrix.jl") | ||
include("construct_fundamentalmatrix.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
module ModuleCostFunction | ||
using MultipleViewGeometry.ModuleTypes, MultipleViewGeometry.ModuleOperators, MultipleViewGeometry.ModuleMathAliases | ||
using MultipleViewGeometry.ModuleCarriers | ||
export cost, X, H | ||
using MultipleViewGeometry.ModuleTransform | ||
using StaticArrays | ||
export cost, X, H, covariance_matrix, covariance_matrix_debug, covariance_matrix_normalised | ||
include("cost_functions.jl") | ||
end |
Oops, something went wrong.