From bf6c48674ca3e0737e05e356add5d445bfa8f5a1 Mon Sep 17 00:00:00 2001 From: Pietro Monticone <38562595+pitmonticone@users.noreply.github.com> Date: Fri, 4 Aug 2023 04:05:31 -0500 Subject: [PATCH] Fix typos (#28) --- src/EdgeDetectionAPI/EdgeDetectionAPI.jl | 2 +- src/algorithms/canny.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EdgeDetectionAPI/EdgeDetectionAPI.jl b/src/EdgeDetectionAPI/EdgeDetectionAPI.jl index 8e46754..5c717d3 100644 --- a/src/EdgeDetectionAPI/EdgeDetectionAPI.jl +++ b/src/EdgeDetectionAPI/EdgeDetectionAPI.jl @@ -26,6 +26,6 @@ include("edge_detection.jl") include("edge_thinning.jl") # we do not export any symbols since we don't require -# package developers to implemente all the APIs +# package developers to implement all the APIs end # module EdgeDetectionAPI diff --git a/src/algorithms/canny.jl b/src/algorithms/canny.jl index cb15151..24bf547 100644 --- a/src/algorithms/canny.jl +++ b/src/algorithms/canny.jl @@ -108,7 +108,7 @@ function (f::Canny)(out::GenericGrayImage, img::GenericGrayImage) # “hysteresis thresholding”. Edge pixels whose gradient magnitude is below # the low threshold are removed; edge pixels whose gradient magnitudes are # above (or equal to) the high threshold are retained, and edge pixels whose - # gradient magnituded are between the low and high threshold are only + # gradient magnitude are between the low and high threshold are only # retained if they are connected to edge pixels whose gradient magnitudes # are above or equal to the high threshold. edges = zeros(Bool, axes(img)) @@ -157,7 +157,7 @@ function (f::Canny)(out₁::GenericGrayImage, out₂::AbstractArray{<:StaticVect # “hysteresis thresholding”. Edge pixels whose gradient magnitude is below # the low threshold are removed; edge pixels whose gradient magnitudes are # above (or equal to) the high threshold are retained, and edge pixels whose - # gradient magnituded are between the low and high threshold are only + # gradient magnitude are between the low and high threshold are only # retained if they are connected to edge pixels whose gradient magnitudes # are above or equal to the high threshold. edges = zeros(Bool, axes(img))