Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerHeintzmann committed Jun 14, 2024
2 parents 9d6a576 + 67c4ac0 commit 0eb4435
Show file tree
Hide file tree
Showing 13 changed files with 1,169 additions and 70 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- main
tags: ['*']
pull_request:
- master
tags: '*'
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
Expand All @@ -20,7 +22,7 @@ jobs:
version:
- '1'
os:
- ubuntu-latest
- [ubuntu-latest]
arch:
- x64
steps:
Expand All @@ -47,7 +49,7 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: "1"
version: "1.9"
- uses: julia-actions/julia-docdeploy@releases/v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,16 @@ arr_pollen = pollen3D((256, 256, 256));
arr_filaments = filaments3D((100,100,100); rel_theta=0, rand_offset=(0.2, 0.2, 0))
```



[docs-dev-img]: https://img.shields.io/badge/docs-dev-orange.svg
[docs-dev-url]: https://hzarei4.github.io/SyntheticObjects.jl/dev/

[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
[docs-stable-url]: https://hzarei4.github.io/SyntheticObjects.jl/stable/

[codecov-img]: https://codecov.io/gh/hzarei4/SyntheticObjects.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/hzarei4/SyntheticObjects.jl

[CI-img]: https://github.com/hzarei4/SyntheticObjects.jl/workflows/CI/badge.svg
[CI-url]: https://github.com/hzarei4/SyntheticObjects.jl/actions?query=workflow%3ACI
3 changes: 3 additions & 0 deletions docs/doc_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python3 -m http.server --bind localhost
Empty file added docs/generate_objects.jl
Empty file.
7 changes: 2 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ makedocs(sitename="SyntheticObjects.jl",
modules = [SyntheticObjects]
, pages = Any[
"SyntheticObjects.jl" => "index.md",
"API" => "function_references/objects.md",
]
,
#make = Documenter.make_julia_cmd()
)


deploydocs(repo = "github.com/hzarei4/SyntheticObjects.jl.git",
target = "gh-pages",
)
deploydocs(repo = "github.com/hzarei4/SyntheticObjects.jl.git")
Binary file added docs/src/assets/arr_filaments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/arr_pollen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/arr_resolution_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/src/function_references/objects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Objects
```@docs
pollen3D
object_3D
filaments3D
draw_sphere!
draw_line!
filaments3D!
spokes_object
hollow_sphere!
resolution_test
hollow_sphere
annotation_3D!
matrix_read
```
62 changes: 27 additions & 35 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,42 @@
# SyntheticObjects.jl Documentation
# SyntheticObjects.jl

```@docs
pollen3D(x)
```

```@docs
object_3D
```
This package creates several synthetic objects in Julia to further process in the image processing routines.

```@docs
filaments3D
```
## Overview
Using this package, user can generate different objetcs for the pupose of image processing. This package contains 2D as well as 3D samples
of different objects (Numbers, Alphabets, and objects).

```@docs
draw_sphere!
```

```@docs
annotation_3D!
```
## Installation
`SyntheticObjects.jl` can be installed using the command:

```@docs
draw_line!
```julia
julia> ] add SyntheticObjects
```

```@docs
filaments3D!
```

## Examples

```@docs
matrix_read
```
```julia
julia> using SyntheticObjects

```@docs
spokes_object
```
# this generates a pollen grain object array
arr_pollen = pollen3D((256, 256, 256));

```@docs
hollow_sphere!
```

```@docs
resolution_offset
# a set of filaments in 3D:
arr_filaments = filaments3D((256,256,256))

# and so on ...
```
### Image of the pollen object (plotted using [`View5D.jl`](https://github.com/RainerHeintzmann/View5D.jl) package)
![](assets/arr_pollen.png)

### Image of the filaments (plotted using [`View5D.jl`](https://github.com/RainerHeintzmann/View5D.jl) package)
![](assets/arr_filaments.png)



```@docs
hollow_sphere
```
### Image of the resolution test (plotted using [`View5D.jl`](https://github.com/RainerHeintzmann/View5D.jl) package)
![](assets/arr_resolution_test.png)
Loading

0 comments on commit 0eb4435

Please sign in to comment.