@@ -216,7 +216,7 @@ edges, counts = imhist(r,256);
216
216
# References
217
217
[1] E. Herrholz, "Parsimonious Histograms," Ph.D. dissertation, Inst. of Math. and Comp. Sci., University of Greifswald, Greifswald, Germany, 2011.
218
218
"""
219
- function imhist (img:: AbstractArray , nbins:: Integer , minval:: RealLike , maxval:: RealLike )
219
+ function imhist (img:: AbstractArray , nbins:: Integer , minval:: NumberLike , maxval:: NumberLike )
220
220
Base. depwarn (" `imhist` will be removed in a future release, please use `build_histogram` instead." , :imhist )
221
221
edges = StatsBase. histrange ([Float64 (minval), Float64 (maxval)], nbins, :left )
222
222
imhist (img, edges)
@@ -355,7 +355,7 @@ imshow(imgeq)
355
355
See also: [histmatch](@ref),[clahe](@ref), [imhist](@ref) and [adjust_gamma](@ref).
356
356
357
357
"""
358
- function histeq (img:: AbstractArray , nbins:: Integer , minval:: RealLike , maxval:: RealLike )
358
+ function histeq (img:: AbstractArray , nbins:: Integer , minval:: NumberLike , maxval:: NumberLike )
359
359
Base. depwarn (" `histeq` will be removed in a future release, please use `adjust_histogram(img, Equalization())` instead." , :histeq )
360
360
bins, histogram = imhist (img, nbins, minval, maxval)
361
361
cdf = cumsum (histogram[2 : end - 1 ])
@@ -375,7 +375,7 @@ function histeq(img::AbstractArray, nbins::Integer)
375
375
histeq (img, nbins, zero (T), oneunit (T))
376
376
end
377
377
378
- function histeq (img:: ImageMeta , nbins:: Integer , minval:: RealLike , maxval:: RealLike )
378
+ function histeq (img:: ImageMeta , nbins:: Integer , minval:: NumberLike , maxval:: NumberLike )
379
379
Base. depwarn (" `histeq` will be removed in a future release, please use `adjust_histogram(img, Equalization())` instead." , :histeq )
380
380
newimg = histeq (arraydata (img), nbins, minval, maxval)
381
381
shareproperties (img, newimg)
0 commit comments