-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The goal is to simplify the docs: to contain only what's this package about so we can keep it up-to-date, no duplicates (rather use cross-references), simpler structure, less talking. The biggest change in README is the addition of contributing section. Main changes in docs: Menu structure is simpler New example for integration with Flux.jl Added docs for MapFun and AggregateThenMapFun Removed the "Working with images in Julia" page (instead, it is only a tiny section in introduction that refers to JuliaImages docs) Removed indices.md Co-authored-by: Johnny Chen <[email protected]>
- Loading branch information
1 parent
b3a1873
commit 8d80713
Showing
16 changed files
with
379 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"order":[ | ||
"layout.jl", | ||
"utilities.jl" | ||
"utilities.jl", | ||
"higherorder.jl" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# --- | ||
# title: Higher-order functions | ||
# description: a set of helper opeartions that allow applying any function | ||
# --- | ||
|
||
# These operations are useful to perform an operation that is not explicitly | ||
# defined in Augmentor. | ||
|
||
using Augmentor | ||
using Random | ||
using Statistics: mean | ||
|
||
Random.seed!(1337) | ||
|
||
DecreaseContrast = MapFun(pixel -> pixel / 2) | ||
IncreaseBrightness = AggregateThenMapFun(img -> mean(img), | ||
(pixel, M) -> pixel + M / 5) | ||
|
||
img_in = testpattern(RGB, ratio=0.5) | ||
img_out = augment(img_in, DecreaseContrast |> IncreaseBrightness) | ||
|
||
# ## References | ||
|
||
#md # ```@docs | ||
#md # MapFun | ||
#md # AggregateThenMapFun | ||
#md # ``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.