Skip to content

Commit

Permalink
wip8
Browse files Browse the repository at this point in the history
  • Loading branch information
yakir12 committed Dec 19, 2024
1 parent 154a105 commit 68a01b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ CoordinateTransformations = "0.6"
FileIO = "1"
ImageBase = "0.1.7"
ImageDraw = "0.2"
ImageFiltering = "0.7.9"
ImageIO = "0.6"
ImageTransformations = "0.9, 0.10"
JSON3 = "1.14.1"
Expand All @@ -46,9 +47,10 @@ julia = "1.10"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
ImageFiltering = "6a3955dd-da59-5b1f-98d4-e7296123deb5"
PaddedViews = "5432bcbf-9aad-5242-b902-cca2824c8663"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "ColorTypes", "FileIO", "PaddedViews", "StaticArrays", "Test"]
test = ["Aqua", "ColorTypes", "FileIO", "PaddedViews", "ImageFiltering", "StaticArrays", "Test"]
5 changes: 3 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using CameraCalibrations
using Test
using Aqua
using FileIO, StaticArrays, PaddedViews, ColorTypes
using FileIO, StaticArrays, PaddedViews, ColorTypes, ImageFiltering

function index2bw(ij::CartesianIndex)
i, j = Tuple(ij)
Expand All @@ -12,7 +12,8 @@ function generate_checkerboard(n_corners, n)
xys = [n .* SVector{2, Float32}(Tuple(ij)) - SVector(0.5, 0.5) for ij in CartesianIndices(StepRange.(n_corners .+ 1, -1, 2))]
img = index2bw.(CartesianIndices(n_corners .+ 1))
imgl = kron(PaddedView(true, img, UnitRange.(0, n_corners .+ 2)), ones(Int, n, n))
return xys, imgl
imgw = imfilter(imgl, Kernel.gaussian(2))
return xys, imgw
end

@testset "CameraCalibrations.jl" begin
Expand Down

0 comments on commit 68a01b8

Please sign in to comment.