Skip to content

Commit 4ee2570

Browse files
authored
Merge pull request #52 from JuliaImages/jc/doctest
fix doctest for watershed
2 parents 5b9e420 + c48ff45 commit 4ee2570

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.jl.cov
22
*.jl.*.cov
33
*.jl.mem
4+
/Manifest.toml

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1919
Clustering = "0.10, 0.11, 0.12, 0.13, 0.14"
2020
DataStructures = "0.12, 0.13, 0.14, 0.15, 0.16, 0.17"
2121
Distances = "0.8"
22+
Documenter = "0.24, 0.25"
2223
ImageFiltering = "0.6"
2324
Images = "0.18, 0.19, 0.20, 0.21, 0.22"
2425
LightGraphs = "1.1"
@@ -28,7 +29,8 @@ StaticArrays = "0.9, 0.10, 0.11, 0.12"
2829
julia = "1"
2930

3031
[extras]
32+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3133
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3234

3335
[targets]
34-
test = ["Test"]
36+
test = ["Documenter", "Test"]

src/watershed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ julia> markers = label_components(seeds); # give each seed a unique integer id
4040
4141
julia> results = watershed(dists, markers);
4242
43-
julia> labels_map(result); # labels of segmented image
43+
julia> labels_map(results); # labels of segmented image
4444
```
4545
"""
4646
function watershed(img::AbstractArray{T, N},

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
using ImageSegmentation, Images, Test, SimpleWeightedGraphs, LightGraphs, StaticArrays, RegionTrees
22

3+
using Documenter
4+
doctest(ImageSegmentation, manual = false)
5+
36
include("core.jl")
47
include("region_growing.jl")
58
include("felzenszwalb.jl")

0 commit comments

Comments
 (0)