Skip to content

Commit acdfb66

Browse files
committed
update image path in imagesegmentation docs
follow up patch to #125
1 parent d1e720d commit acdfb66

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/pkgs/segmentation/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ The documentation for `seeded_region_growing` says that it needs two arguments -
2525
```julia
2626
using Images, ImageView
2727

28-
img = load("src/packages/imagesegmentation/assets/horse.jpg")
28+
img = load("src/pkgs/segmentation/assets/horse.jpg")
2929
imshow(img)
3030
```
3131

3232
Hover over the different objects you'd like to segment, and read out the coordinates of one or more points inside each object. We will store the seed points as a vector of `(seed position, label)` tuples and use `seeded_region_growing` with the recorded seed points.
3333

34-
```jldoctest; setup = :(using Images; img = load("src/packages/imagesegmentation/assets/horse.jpg")), filter = r"\\s"
34+
```jldoctest; setup = :(using Images; img = load("src/pkgs/segmentation/assets/horse.jpg")), filter = r"\\s"
3535
using ImageSegmentation
3636
seeds = [(CartesianIndex(126,81),1), (CartesianIndex(93,255),2), (CartesianIndex(213,97),3)]
3737
segments = seeded_region_growing(img, seeds)
@@ -50,7 +50,7 @@ All the segmentation algorithms (except Fuzzy C-means) return a struct `Segmente
5050
```@meta
5151
DocTestSetup = quote
5252
using Images, ImageSegmentation
53-
img = load("src/packages/imagesegmentation/assets/horse.jpg")
53+
img = load("src/pkgs/segmentation/assets/horse.jpg")
5454
seeds = [(CartesianIndex(126,81),1), (CartesianIndex(93,255),2), (CartesianIndex(213,97),3)]
5555
segments = seeded_region_growing(img, seeds)
5656
end
@@ -96,7 +96,7 @@ Now let's segment this image using felzenszwalb algorithm. `felzenswalb` only ne
9696
```jldoctest
9797
julia> using Images, ImageSegmentation
9898
99-
julia> img = load("src/packages/imagesegmentation/assets/horse.jpg");
99+
julia> img = load("src/pkgs/segmentation/assets/horse.jpg");
100100
101101
julia> segments = felzenszwalb(img, 100)
102102
Segmented Image with:
@@ -184,7 +184,7 @@ If more than one point has the same label then they will be contribute to the sa
184184
```jldoctest
185185
julia> using Images, ImageSegmentation
186186
187-
julia> img = load("src/packages/imagesegmentation/assets/worm.jpg");
187+
julia> img = load("src/pkgs/segmentation/assets/worm.jpg");
188188
189189
julia> seeds = [(CartesianIndex(104, 48), 1), (CartesianIndex( 49, 40), 1),
190190
(CartesianIndex( 72,131), 1), (CartesianIndex(109,217), 1),
@@ -237,7 +237,7 @@ all the pixels have been assigned to some region.
237237
```jldoctest
238238
julia> using ImageSegmentation, Images
239239
240-
julia> img = load("src/packages/imagesegmentation/assets/tree.jpg");
240+
julia> img = load("src/pkgs/segmentation/assets/tree.jpg");
241241
242242
julia> seg = unseeded_region_growing(img, 0.05) # here 0.05 is the threshold
243243
Segmented Image with:
@@ -404,7 +404,7 @@ number of clusters and ``iter`` is the number of iterations.
404404
```jldoctest; filter=r"converged in [0-9]+ iterations"
405405
julia> using ImageSegmentation, Images
406406
407-
julia> img = load("src/packages/imagesegmentation/assets/flower.jpg");
407+
julia> img = load("src/pkgs/segmentation/assets/flower.jpg");
408408
409409
julia> r = fuzzy_cmeans(img, 3, 2)
410410
FuzzyCMeansResult: 3 clusters for 135360 points in 3 dimensions (converged in 27 iterations)

0 commit comments

Comments
 (0)