-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from JuliaImages/ash/base
Need the benchmarks now
- Loading branch information
Showing
17 changed files
with
1,054 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: CompatHelper | ||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
jobs: | ||
CompatHelper: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Pkg.add("CompatHelper") | ||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")' | ||
- name: CompatHelper.main() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} | ||
run: julia -e 'using CompatHelper; CompatHelper.main()' |
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,15 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
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,68 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: '*' | ||
pull_request: | ||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
- '1' | ||
- 'nightly' | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
include: | ||
- os: windows-latest | ||
version: '1' | ||
arch: x64 | ||
- os: macOS-latest | ||
version: '1' | ||
arch: x64 | ||
- os: ubuntu-latest | ||
version: '1' | ||
arch: x86 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov.info | ||
multithreads: | ||
name: Julia (threads) 1 - ubuntu-latest - x64 - ${{ github.event_name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1' | ||
arch: 'x64' | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- name: run test | ||
run: julia --project --code-coverage -t4 -e 'using Pkg; Pkg.test()' | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov.info |
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 @@ | ||
name: docs | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1' | ||
- run: | | ||
julia --project=docs -e ' | ||
using Pkg | ||
Pkg.develop(PackageSpec(path=pwd())) | ||
Pkg.instantiate()' | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using ImageCorners | ||
DocMeta.setdocmeta!(ImageCorners, :DocTestSetup, :(using ImageCorners); recursive=true) | ||
doctest(ImageCorners)' | ||
- run: julia --project=docs docs/make.jl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
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 +1,27 @@ | ||
# ImageCorners.jl | ||
# ImageCorners.jl | ||
|
||
ImageCorners.jl provides image corner related algorithms in Julia. | ||
|
||
### Supported Algorithms | ||
- Harris | ||
- Shi-Tomasi | ||
- Kitchen and Rosenfeld | ||
- FAST Corners | ||
|
||
These Algorithms can be accessed using the following methods: | ||
```julia | ||
julia> using ImageCorners, TestImages | ||
|
||
julia> img = testimage("mandrill"); | ||
|
||
# corner detection using harris method | ||
julia> corners = imcorner(img; method = harris); | ||
|
||
# threshold can be specified for the thresolding the corner pixels | ||
julia> corners = imcorner(img, 0.001; method = harris); | ||
|
||
julia> corners = imcorner(img, Percentile(95); method = harris); | ||
|
||
# for corner detection to subpixel precision imgcorner_subpixel can be used | ||
julia> corners = imcorner_subpixel(img; method = harris); | ||
``` |
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,3 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
ImageCorners = "89d5987c-236e-4e32-acd0-25bd6bd87b70" |
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,14 @@ | ||
push!(LOAD_PATH,"../src/") | ||
using ImageCorners | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(ImageCorners, :DocTestSetup, :(using ImageCorners); recursive=true) | ||
|
||
makedocs(; | ||
modules=[ImageCorners], | ||
sitename="ImageCorners.jl", | ||
) | ||
|
||
deploydocs(; | ||
repo="github.com/JuliaImages/ImageCorners.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,35 @@ | ||
```@meta | ||
CurrentModule = ImageCorners | ||
``` | ||
|
||
# ImageCorners.jl | ||
|
||
ImageCorners.jl provides image corner related algorithms in Julia. | ||
|
||
### Supported Algorithms | ||
- Harris | ||
- Shi-Tomasi | ||
- Kitchen and Rosenfeld | ||
- FAST Corners | ||
|
||
These Algorithms can be accessed using the following methods: | ||
```julia | ||
julia> using ImageCorners, TestImages | ||
|
||
julia> img = testimage("mandrill"); | ||
|
||
# corner detection using harris method | ||
julia> corners = imcorner(img; method = harris); | ||
|
||
# threshold can be specified for the thresolding the corner pixels | ||
julia> corners = imcorner(img, 0.001; method = harris); | ||
|
||
julia> corners = imcorner(img, Percentile(95); method = harris); | ||
|
||
# for corner detection to subpixel precision imgcorner_subpixel can be used | ||
julia> corners = imcorner_subpixel(img; method = harris); | ||
``` | ||
|
||
```@autodocs | ||
Modules = [ImageCorners] | ||
``` |
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,5 +1,29 @@ | ||
module ImageCorners | ||
|
||
greet() = print("Hello World!") | ||
using ColorTypes | ||
using ColorVectorSpace | ||
using ImageCore: NumberLike | ||
using ImageFiltering | ||
using PrecompileTools | ||
using StaticArrays | ||
using StatsBase | ||
|
||
include("utils.jl") | ||
include("cornerapi.jl") | ||
include("precompile.jl") | ||
|
||
export | ||
imcorner, | ||
imcorner_subpixel, | ||
corner2subpixel, | ||
harris, | ||
shi_tomasi, | ||
kitchen_rosenfeld, | ||
fastcorners, | ||
meancovs, | ||
gammacovs, | ||
|
||
Percentile, | ||
HomogeneousPoint | ||
|
||
end # module ImageCorners |
Oops, something went wrong.