Skip to content

Commit

Permalink
integrate shepp_logan and release
Browse files Browse the repository at this point in the history
  • Loading branch information
tknopp committed Apr 24, 2021
1 parent 6182f6e commit fee5e2c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ImageUtils"
uuid = "8ad4436d-4835-5a14-8bce-3ae014d2950b"
authors = ["Tobias Knopp <tobias@knoppweb.de>"]
version = "0.2.4"
version = "0.2.5"

[deps]
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
Expand Down
5 changes: 5 additions & 0 deletions src/ImageUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ using LinearAlgebra
using Interpolations
using Unitful
using FFTW
import TestImages

@reexport using Colors
@reexport using FixedPointNumbers
@reexport using Images

export shepp_logan

include("Arrays.jl")
include("Coloring.jl")
include("Slicing.jl")
Expand All @@ -25,4 +28,6 @@ include("FileExport.jl")
include("Permutation.jl")
include("AnalyzeNifti.jl")

shepp_logan(args...) = Float64.(TestImages.shepp_logan(args...))

end # module
4 changes: 2 additions & 2 deletions test/Coloring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Random.seed!(1)

N = 64
I = Float64.(TestImages.shepp_logan(N))
I = shepp_logan(N)

IC = colorize(I, ColoringParams(0,1,"gray"), 0.0, 1.0)
@test typeof(IC) == Array{RGBA{Normed{UInt8,8}},2}
Expand Down Expand Up @@ -49,7 +49,7 @@ exportImage("img/coloring5.png", over)
@testImg("coloring5.png")


I = reshape(Float64.(TestImages.shepp_logan(N)),1,N,N)
I = reshape(shepp_logan(N),1,N,N)
O = reshape(O,1,N,N)
I = cat(I,O,dims=1)

Expand Down
2 changes: 1 addition & 1 deletion test/Transformation.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testset "Testing Transformation Submodule" begin

N = 256
I = reshape(Float64.(TestImages.shepp_logan(N)),N,N,1)
I = reshape(shepp_logan(N),N,N,1)


IInterp = interpolateToGrid(I, [1.0,1.0,1.0]./256, [0.0,0.0,0.0], [0.0,0.0,1.0],
Expand Down

2 comments on commit fee5e2c

@tknopp
Copy link
Owner Author

@tknopp tknopp commented on fee5e2c Apr 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/35188

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.5 -m "<description of version>" fee5e2c4b20ba821e4e23e0b14a43b666d38cf87
git push origin v0.2.5

Please sign in to comment.