Skip to content

Commit b49efef

Browse files
authored
rename to ImageBase and reexport ImageCore (#6)
* rename to ImageBase * reexport ImageCore
1 parent eb63a15 commit b49efef

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name = "ImageUtils"
1+
name = "ImageBase"
22
uuid = "c817782e-172a-44cc-b673-b171935fbb9e"
33
version = "0.1.0"
44

55
[deps]
66
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
7+
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
78

89
[compat]
910
ImageCore = "0.8, 0.9"

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# ImageUtils
1+
# ImageBase
22

3-
[![Build Status](https://github.com/JuliaImages/ImageUtils.jl/workflows/CI/badge.svg)](https://github.com/JuliaImages/ImageUtils.jl/actions)
4-
[![Coverage](https://codecov.io/gh/JuliaImages/ImageUtils.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaImages/ImageUtils.jl)
3+
[![Build Status](https://github.com/JuliaImages/ImageBase.jl/workflows/CI/badge.svg)](https://github.com/JuliaImages/ImageBase.jl/actions)
4+
[![Coverage](https://codecov.io/gh/JuliaImages/ImageBase.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaImages/ImageBase.jl)
55

66
This is a twin package to [ImageCore] with functions that are used among many of the packages in JuliaImages.
77
The main purpose of this package is to reduce unnecessary compilation overhead from external dependencies.
88

9+
This package reexports [ImageCore] so can be a direct replacement of it.
10+
911
This package can be seen as an experimental package inside JuliaImages:
1012

1113
1. functions here might be moved to a seperate package if they get better supports (with more dependency), and

src/ImageUtils.jl renamed to src/ImageBase.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
module ImageUtils
1+
module ImageBase
22

33
export restrict
44

5+
using Reexport
6+
57
using Base.Cartesian: @nloops
6-
using ImageCore
8+
@reexport using ImageCore
79
using ImageCore.OffsetArrays
810

911
include("restrict.jl")

src/restrict.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ restrict(A, (1, 2)) # size: (3, 3)
3535
Unless the input array is 1-based, the origin will be halfed:
3636
3737
```julia
38-
julia> using ImageUtils, OffsetArrays
38+
julia> using ImageBase, OffsetArrays
3939
4040
julia> Ao = OffsetArray(rand(5, 4), 5, 6);
4141

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using ImageUtils, ImageCore, OffsetArrays
1+
using ImageBase, ImageCore, OffsetArrays
22
using Test, TestImages
33

4-
@testset "ImageUtils.jl" begin
4+
@testset "ImageBase.jl" begin
55
include("restrict.jl")
66

77
@info "deprecations are expected"

0 commit comments

Comments
 (0)