diff --git a/docs/src/views.md b/docs/src/views.md index 7bb2f63..2dc793a 100644 --- a/docs/src/views.md +++ b/docs/src/views.md @@ -139,7 +139,7 @@ julia> img RGB{N0f8}(0.0,0.0,1.0) RGB{N0f8}(0.0,0.0,0.0) ``` -The hexidecimal representation of 128 is 0x80; this is approximately +The hexadecimal representation of 128 is 0x80; this is approximately halfway to 255, and as a consequence the `N0f8` representation is very near 0.5. You can see the same change is reflected in `r`, `v`, and `img`: there is only one underlying array, `img`, and the two diff --git a/src/ImageCore.jl b/src/ImageCore.jl index 76bb1b6..b7f7d02 100644 --- a/src/ImageCore.jl +++ b/src/ImageCore.jl @@ -33,7 +33,7 @@ const Color1Array{C<:Color1,N} = AbstractArray{C,N} const RRArray{To,From,M,P} = Base.ReinterpretArray{To,M,From,P,true} const RGArray = Union{Base.ReinterpretArray{<:AbstractGray,M,<:Number,P}, Base.ReinterpretArray{<:Number,M,<:AbstractGray,P}} where {M,P} -# delibrately not export these constants to enable extensibility for downstream packages +# Deliberately not export these constants to enable extensibility for downstream packages const NumberLike = Union{Number,AbstractGray} const Pixel = Union{Number,Colorant} const GenericGrayImage{T<:NumberLike,N} = AbstractArray{T,N} diff --git a/src/map.jl b/src/map.jl index 7c13253..7c2e798 100644 --- a/src/map.jl +++ b/src/map.jl @@ -20,7 +20,7 @@ clamp01(c::Union{TransparentGray,AbstractRGB,TransparentRGB}) = mapc(clamp01, c) Restrict values in array to [0, 1], in-place. See also [`clamp01`](@ref). """ function clamp01!(img::AbstractArray) - # slgihtly faster than map!(clamp01, img, img) + # Slightly faster than map!(clamp01, img, img) @inbounds for i in eachindex(img) img[i] = clamp01(img[i]) end