Skip to content

Commit

Permalink
Bumps release
Browse files Browse the repository at this point in the history
Also addresses deprecation message in tests, and removes some superfluous info  messages.
  • Loading branch information
zygmuntszpak authored and johnnychen94 committed Jul 13, 2021
1 parent 02464cc commit 3878b75
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ImageTracking"
uuid = "7632190a-71f5-11e9-04ef-99e081817785"
version = "0.1.0"
version = "0.2.0"

[deps]
AxisAlgorithms = "13072b0f-2c55-5437-9ae7-d433b7a33950"
Expand Down
2 changes: 1 addition & 1 deletion src/utility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function calculate_statistics(error::Array{Float64, 2})

# AX stats
AX_count = Dict()
edges, counts = imhist(error)
edges, counts = build_histogram(error)
max_val = maximum(counts)
total_pix = length(error)
pixel_cumulative_count = cumsum(counts)
Expand Down
9 changes: 2 additions & 7 deletions test/error_evaluation.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# We output a message after loading each package to work around a
# ten-minute timeout limit on Travis. Travis assumes the tests have hung
# if the interval between printing something to stdio exceeds ten minutes.
using Images
@info "Finished loading Images package."
using StaticArrays
@info "Finished loading StaticArrays package."

@testset "Error Evaluation" begin
@info "Running flow evaluation test."

img1 = load("../demo/car2.jpg")
img2 = load("../demo/car1.jpg")
img2 = load("../demo/car1.jpg")

algorithm = Farneback(50, estimation_window = 11,
σ_estimation_window = 9.0,
Expand All @@ -35,4 +30,4 @@ using StaticArrays
@test ep_AX[0.5] < 1e-5
@test ang_RX[0.5] == 0
@test ang_AX[0.5] < 1e-5
end;
end
11 changes: 1 addition & 10 deletions test/farneback.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# We output a message after loading each package to work around a
# ten-minute timeout limit on Travis. Travis assumes the tests have hung
# if the interval between printing something to stdio exceeds ten minutes.
using Images
@info "Finished loading Images package."
using TestImages
@info "Finished loading TestImages package."
using StaticArrays
@info "Finished loading StaticArrays package."
using OffsetArrays
@info "Finished loading OffsetArrays package."
using Random
@info "Finished loading Random package."
using CoordinateTransformations
@info "Finished loading CoordinateTransformations package."

function evaluate_error(dims, flow::Array{SVector{2, Float64}, 2}, Δ, tol)
error_count = 0
Expand Down Expand Up @@ -164,4 +155,4 @@ end

end

end;
end
9 changes: 1 addition & 8 deletions test/visualization.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# We output a message after loading each package to work around a
# ten-minute timeout limit on Travis. Travis assumes the tests have hung
# if the interval between printing something to stdio exceeds ten minutes.
using Images
@info "Finished loading Images package."
using StaticArrays
@info "Finished loading StaticArrays package."



@testset "Visualization" begin
@info "Running flow visualization test."
Expand All @@ -25,4 +18,4 @@ using StaticArrays
@test hsv[2] == hsv[4]
@test hsv[3] == hsv[5]

end;
end

0 comments on commit 3878b75

Please sign in to comment.