You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adjust_histogram(img, ContrastStretching()) is suggested as a deprecation for imstretch; with --depwarn=yes, we get
julia>using Images
julia> img =Gray{N0f8}.([10; 01])
2×2 Array{Gray{N0f8},2} with eltype Gray{N0f8}:Gray{N0f8}(1.0) Gray{N0f8}(0.0)
Gray{N0f8}(0.0) Gray{N0f8}(1.0)
julia> imgs =imstretch(img, 0.3, 0.4)
┌ Warning:`imstretch` will be removed in a future release, please use `adjust_histogram(img, ContrastStretching())` instead.
│ caller = top-level scope at REPL[3]:1
└ @ Core REPL[3]:12×2 Array{Gray{Float64},2} with eltype Gray{Float64}:Gray{Float64}(0.618123) Gray{Float64}(0.00274462)
Gray{Float64}(0.00274462) Gray{Float64}(0.618123)
(As pointed out in JuliaImages/Images.jl#865 (comment), it would have been nice if this had suggested "please use adjust_histogram(img, ContrastStretching(; t=0.3, slope=0.4)) instead so that it was copy/pastable.)
adjust_histogram(img, ContrastStretching())
is suggested as a deprecation forimstretch
; with--depwarn=yes
, we get(As pointed out in JuliaImages/Images.jl#865 (comment), it would have been nice if this had suggested "please use
adjust_histogram(img, ContrastStretching(; t=0.3, slope=0.4))
instead so that it was copy/pastable.)But if we follow the suggestion, we get:
which is very different. However:
indicating that it's overflow at fault.
The text was updated successfully, but these errors were encountered: