# ImageEdgeDetection: The basic usage example will not compile

**URL:** <https://discourse.julialang.org/t/imageedgedetection-the-basic-usage-example-will-not-compile/68628>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [September 23, 2021, 12:20pm UTC](https://discourse.julialang.org/t/imageedgedetection-the-basic-usage-example-will-not-compile/68628 "2021-09-23T12:20:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ondo](https://avatars.discourse-cdn.com/v4/letter/o/ecb155/32.png) [@Ondo](https://discourse.julialang.org/u/Ondo)\
**Post date:** [September 23, 2021, 12:20pm UTC](https://discourse.julialang.org/t/imageedgedetection-the-basic-usage-example-will-not-compile/68628/1 "2021-09-23T12:20:59Z")

</div>

I am completely new to Julia. I want to use some image manipulation functions including those in the ImageEdgeDetection package but already the basic use example provided on the ImageEdgeDetection page will not run.

In Pluto, this cell will run:  
begin  
using TestImages, Images, ImageIO  
img = testimage(“mandril\_gray”)  
img  
end

So the image is there, but this next one:

begin  
using ImageEdgeDetection, MosaicViews, Interpolations  
img\_edges₁ = detect\_edges(img, Canny(spatial\_scale = 1.4))  
img\_edges₂ = detect\_edges(img, Canny(spatial\_scale = 2.8))  
img\_edges₃ = detect\_edges(img, Canny(spatial\_scale = 5.6))  
demo₁ = mosaicview(img, img\_edges₁, img\_edges₂, img\_edges₃; nrow = 2)  
end

returns this error:

MethodError: no method matching (::Interpolations.Extrapolation{Float64,2,Interpolations.BSplineInterpolation{Float64,2,Array{Float64,2},Interpolations.BSpline{Interpolations.Linear{Interpolations.Throw{Interpolations.OnGrid}}},Tuple{Base.OneTo{Int64},Base.OneTo{Int64}}},Interpolations.BSpline{Interpolations.Linear{Interpolations.Throw{Interpolations.OnGrid}}},Interpolations.Flat{Nothing}})(::ColorTypes.Gray{Float64}, ::ColorTypes.Gray{Float64})

(Compared to the base use case on the ImageEdgeDetection page I added “using Interpolations” inspired by the error message but it makes no difference. (I believe that it is included in the “Images” package already)).

…so I am stuck before I began. Help will be most appreciated, thanks,

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [September 25, 2021, 3:37pm UTC](https://discourse.julialang.org/t/imageedgedetection-the-basic-usage-example-will-not-compile/68628/2 "2021-09-25T15:37:55Z")

</div>

Sorry you encountered trouble! In about 15 minutes from now, try upgrading your packages; version 0.1.4 should fix the issues you encountered.

---

<div class="post-metadata">

**Author:** ![Ondo](https://avatars.discourse-cdn.com/v4/letter/o/ecb155/32.png) [@Ondo](https://discourse.julialang.org/u/Ondo)\
**Post date:** [September 26, 2021, 9:18am UTC](https://discourse.julialang.org/t/imageedgedetection-the-basic-usage-example-will-not-compile/68628/3 "2021-09-26T09:18:53Z")

</div>

Dear Tim and Zygmunt,

Thanks a lot - it works!

Cheers,

Peter
