1+ using  Base:  depwarn
2+ 
3+ function  adjust_histogram (img:: Union{GenericGrayImage, AbstractArray{<:Color3}} ,
4+                            f:: LinearStretching ,
5+                            args... ; kwargs... )
6+     
7+     depwarn (" adjust_histogram(img, LinearStretching()) is deprecated, use adjust_intensity(img, LinearStretching()) instead" :adjust_histogram )                       
8+     return  adjust_intensity (img, f, args... ;kwargs... )
9+ end 
10+ 
11+ function  adjust_histogram (type:: Type{T} ,
12+                           img,
13+                           f:: LinearStretching ,
14+                           args... ; kwargs... )  where  T
15+     
16+     depwarn (" adjust_histogram(::Type{T}, img, LinearStretching()) is deprecated, use adjust_intensity(::Type{T}, img, LinearStretching()) instead" :adjust_histogram )                       
17+     return  adjust_intensity (type, img, f, args... ;kwargs... )                    
18+ end 
19+ 
20+ function  adjust_histogram (img:: AbstractArray{T} ,
21+                           f:: LinearStretching ,
22+                           args... ; kwargs... ) where  T <:  Colorant  
23+     depwarn (" adjust_histogram!(img, LinearStretching()) is deprecated, use adjust_intensity(img, LinearStretching()) instead" :adjust_histogram )                       
24+     return  adjust_intensity (img, f, args... ; kwargs... )
25+ end 
26+ 
27+ function  adjust_histogram (type:: Type{T} ,
28+                           img_sequence:: Vector{<:AbstractArray} ,
29+                           f:: LinearStretching ,
30+                           args... ; kwargs... ) where  T
31+     
32+     depwarn (" adjust_histogram!(::Type{T}, img_sequence, LinearStretching()) is deprecated, use adjust_intensity(::Type{T}, img_sequence, LinearStretching()) instead" :adjust_histogram )       
33+     return  adjust_histogram! (type, img_sequence, f, args... ; kwargs... )               
34+ end 
35+ 
36+ function  adjust_histogram! (img:: Union{GenericGrayImage, AbstractArray{<:Color3}} ,
37+                            f:: LinearStretching ,
38+                            args... ; kwargs... )
39+ 
40+     depwarn (" adjust_histogram!(img, LinearStretching()) is deprecated, use adjust_intensity!(img, LinearStretching()) instead" :adjust_histogram! )                       
41+     return  adjust_intensity! (img, f, args... ; kwargs... )                          
42+ end 
43+ 
44+ function  adjust_histogram! (out_sequence:: Vector{T} ,
45+                            img_sequence,
46+                            f:: LinearStretching ,
47+                            args... ; kwargs... ) where  T <:  Union{GenericGrayImage, AbstractArray{<:Color3}}  
48+     
49+     depwarn (" adjust_histogram!(out_sequence, img_sequence, LinearStretching()) is deprecated, use adjust_intensity!(out_sequence, img_sequence, LinearStretching()) instead" :adjust_histogram! )
50+     return  adjust_intensity (out_sequence, img_sequence, f, args... ; kwargs... )
51+ end 
0 commit comments