Skip to content

Commit d1e720d

Browse files
authored
reorganize and update documentation (#125)
* reorganize the documentation by splitting the manual into two parts: tutorials and package documentations * add documentation introductions in the frontpage * add packages introduction at the beginning of packages part * update and add more refs * update the "Getting started" page * add docs for ImageDistances and ImageQualityIndexes * some other minor changes
1 parent 1be439b commit d1e720d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+313
-345
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: julia
33
os:
44
- linux
55
julia:
6-
- 1.3
6+
- 1
77
env:
88
- DOCUMENTER_DEBUG=true
99
notifications:

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ImageFeatures = "92ff4b2b-8094-53d3-b29d-97f740f06cef"
1616
ImageFiltering = "6a3955dd-da59-5b1f-98d4-e7296123deb5"
1717
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
1818
ImageMetadata = "bc367c6b-8a6b-528e-b4bd-a4b897500b49"
19+
ImageMorphology = "787d08f9-d448-5407-9aad-5290dd7ab264"
1920
ImageSegmentation = "80713f31-8817-5129-9cf8-209ff8fb23e1"
2021
ImageShow = "4e3cecfd-b093-5904-9786-8bbb286a6a31"
2122
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
@@ -38,13 +39,14 @@ Documenter = "0.24.2"
3839
FileIO = "1"
3940
FixedPointNumbers = "0"
4041
ImageAxes = "0"
41-
ImageCore = "0"
4242
ImageContrastAdjustment = "0.3"
43+
ImageCore = "0"
4344
ImageDraw = "0"
4445
ImageFeatures = "0"
4546
ImageFiltering = "0"
4647
ImageMagick = "0, 1"
4748
ImageMetadata = "0"
49+
ImageMorphology = "0.2"
4850
ImageSegmentation = "1"
4951
ImageShow = "0"
5052
Images = "0.22"

docs/examples/color_channels/color_separations_svd.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# This demonstration shows how to work with color channels to explore image compression
77
# using the Singular Value Decomposition (SVD).
88

9-
using Images, TestImages, MosaicViews
9+
using Images, TestImages
1010
using LinearAlgebra
1111

1212
img = float.(testimage("mandrill"))
@@ -29,9 +29,9 @@ nothing #hide #md
2929
# $512 \times 512$ numbers. Hence this gives us a compression ratio $19.55\%$ if we don't consider
3030
# the storage type.
3131

32-
## after julia v1.1:
33-
## svdfactors = svd.(eachslice(channels; dims=1))
34-
svdfactors = (svd(channels[1,:,:]), svd(channels[2,:,:]), svd(channels[3,:,:]))
32+
## before julia v1.1:
33+
## svdfactors = (svd(channels[1,:,:]), svd(channels[2,:,:]), svd(channels[3,:,:]))
34+
svdfactors = svd.(eachslice(channels; dims=1))
3535
imgs = map((10, 50, 100)) do k
3636
colorview(RGB, rank_approx.(svdfactors, k)...)
3737
end

docs/examples/spatial_transformation/alpha_compositing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# [OffsetArrays](https://github.com/JuliaArrays/OffsetArrays.jl) and
99
# [PaddedViews](https://github.com/JuliaArrays/PaddedViews.jl)
1010

11-
using Images, MosaicViews
12-
using OffsetArrays, PaddedViews # provide `OffsetArray` and `paddedviews`
11+
using Images
12+
using OffsetArrays # provide `OffsetArray`
1313

1414
# ## 1. basic offset and pad operation
1515

@@ -100,4 +100,4 @@ color_panel = color_panel[axes(red_c)...] # crop empty region
100100

101101
# --- save covers --- #src
102102
using FileIO #src
103-
save("assets/alpha_compositing.png", color_panel) #src
103+
save("assets/alpha_compositing.png", map(clamp01nan, color_panel)) #src

docs/examples/spatial_transformation/image_diffview.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# [`imshowpair`](https://www.mathworks.com/help/images/ref/imshowpair.html), but in JuliaImages
1010
# it is not that indispensable.
1111

12-
using Images, MosaicViews
12+
using Images
1313
using TestImages
1414

1515
img = float.(testimage("cameraman"))
@@ -41,4 +41,4 @@ mosaicview(plain_diffview, RGB_diffview, Gray_diffview;
4141

4242
# --- save covers --- #src
4343
using FileIO #src
44-
save("assets/image_diffview.png", RGB_diffview) #src
44+
save("assets/image_diffview.png", map(clamp01nan, RGB_diffview)) #src

docs/make.jl

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Documenter, DemoCards
22
using Images, ImageFiltering, ImageSegmentation, ImageFeatures, PaddedViews
3-
using ImageContrastAdjustment
3+
using ImageContrastAdjustment, TestImages, FileIO, MosaicViews, ImageMorphology
44

55
branch = "master"
66

@@ -13,27 +13,30 @@ format = Documenter.HTML(edit_link = "source",
1313

1414
makedocs(modules = [Images, ImageCore, Colors, ColorTypes, FixedPointNumbers, ImageAxes,
1515
ImageFeatures, ImageFiltering, ImageMetadata, ImageContrastAdjustment,
16+
ImageDistances, ImageQualityIndexes, MosaicViews, TestImages, FileIO,
1617
ImageSegmentation, ImageTransformations, PaddedViews, ImageMorphology],
1718
format = format,
1819
sitename = "JuliaImages",
1920
pages = ["Home" => "index.md",
2021
"install.md",
21-
"Manual" => Any[
22-
"quickstart.md",
23-
"arrays_colors.md",
24-
"conversions_views.md",
25-
"indexing.md",
26-
"imageaxes.md",
27-
"imagefiltering.md",
28-
"imagemetadata.md",
29-
"imagesegmentation.md",
30-
"imagetransformations.md",
31-
"imagefeatures.md",
32-
"troubleshooting.md",
22+
"Tutorials" => Any[
23+
joinpath("tutorials", "quickstart.md"),
24+
joinpath("tutorials", "arrays_colors.md"),
25+
joinpath("tutorials", "conversions_views.md"),
26+
joinpath("tutorials", "indexing.md")
27+
],
28+
"Packages" => Any[
29+
"Introduction" => joinpath("pkgs", "index.md"),
30+
"ImageAxes.jl" => joinpath("pkgs", "axes", "index.md"),
31+
"ImageMetaData.jl" => joinpath("pkgs", "metadata", "index.md"),
32+
"ImageSegmentation.jl" => joinpath("pkgs", "segmentation", "index.md"),
33+
"ImageTransformations.jl" => joinpath("pkgs", "transformations", "index.md"),
34+
"ImageFeatures.jl" => joinpath("pkgs", "features", "index.md")
3335
],
3436
"Demos" => demos,
35-
"function_reference.md",
37+
"References" => "function_reference.md",
3638
"api_comparison.md",
39+
# "faqs.md"
3740
])
3841

3942
demos_cb()

0 commit comments

Comments
 (0)