# ImageEdgeDetection.jl: Upto Sub-Pixel Precision

**URL:** <https://discourse.julialang.org/t/imageedgedetection-jl-upto-sub-pixel-precision/100456>\
**Category:** Package Announcements\
**Tags:** image-processing, juliaimages\
**Created:** [June 16, 2023, 4:30pm UTC](https://discourse.julialang.org/t/imageedgedetection-jl-upto-sub-pixel-precision/100456 "2023-06-16T16:30:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwani\_Rathee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashwani_rathee/32/49551_2.png) [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Post date:** [June 16, 2023, 4:30pm UTC](https://discourse.julialang.org/t/imageedgedetection-jl-upto-sub-pixel-precision/100456/1 "2023-06-16T16:30:33Z")

</div>

# ImageEdgeDetection.jl

* * *

**ImageEdgeDetection.jl** is a Julia package for determining image edges (up to subpixel precision) and ascertaining the gradient/edge orientations.

It provides edge detection algorithms like Canny and edge thinning algorithm like non-maxima suppression(also subpixel precision).

**Example** :

```julia-auto
julia> using TestImages, ImageEdgeDetection, MosaicViews

julia> img = testimage("mandril_gray")

# Detect edges at different scales by adjusting the `spatial_scale` parameter.
julia> img_edges₁ = detect_edges(img, Canny(spatial_scale = 1.4))

julia> img_edges₂ = detect_edges(img, Canny(spatial_scale = 2.8))

julia> img_edges₃ = detect_edges(img, Canny(spatial_scale = 5.6))

julia> demo₁ = mosaicview(img, img_edges₁, img_edges₂, img_edges₃; nrow = 2)

```

**Output** :

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/e/0e94dc38bcdaac080dab9a7fef93073d5f2a4760.jpeg)

**Repository** : [GitHub - JuliaImages/ImageEdgeDetection.jl: A Julia package for determining image edges (up to subpixel precision) and ascertaining the gradient/edge orientations.](https://github.com/JuliaImages/ImageEdgeDetection.jl)  
**Documentation** : [Home · ImageEdgeDetection.jl](https://juliaimages.org/ImageEdgeDetection.jl/stable/)

We welcome new contributors to help improve the package. Images.jl doesn’t yet reexport ImageEdgeDetection.jl which could make for a great contribution.
