HistogramAdjust
From Avisynth wiki
(Difference between revisions)
(reverted to what seems to be the last version before Yakub2.X got it mixed up with GBlur) |
(it seems parameter w should be mf, and something should be said about the name change. nothing else checked) |
||
Line 8: | Line 8: | ||
|4=<!-- category -->External filters | |4=<!-- category -->External filters | ||
|5=<!-- license -->[https://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | |5=<!-- license -->[https://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | ||
− | |6=<!-- discussion URL -->[https://forum.doom9.org/showthread.php?p=719889#post719889 HistogramAdjust | + | |6=<!-- discussion URL -->[https://forum.doom9.org/showthread.php?p=719889#post719889 HistogramAdjust plugin]}} |
<br> | <br> | ||
Line 14: | Line 14: | ||
<!----> | <!----> | ||
− | This function adjusts the histogram of a frame by either equalizing it or by matching with histogram of another image, or with given histogram table of values. [http://www.avisynth.nl/users/vcmohan/modPlus/TweakHist.html Full Description] | + | This function, formerly named HistogramAdjust but now named TweakHist, adjusts the histogram of a frame by either equalizing it or by matching with histogram of another image, or with given histogram table of values. [http://www.avisynth.nl/users/vcmohan/modPlus/TweakHist.html Full Description] |
<br> | <br> | ||
Line 23: | Line 23: | ||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
− | :{{Template:FuncDef|<!-- function name --> | + | :{{Template:FuncDef|<!-- function name -->TweakHist(''clip'', ''<!-- par 1 type -->int type, clip mclip, int mf, int limit, int rgb <!-- par 1 name -->)}} |
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
Line 40: | Line 40: | ||
::: Clip in which image for matching is available. | ::: Clip in which image for matching is available. | ||
<br> | <br> | ||
− | ::{{Par2|<!-- par 7 type -->integer, may be specified for type = 2 option|<!-- par 7 name --> | + | ::{{Par2|<!-- par 7 type -->integer, may be specified for type = 2 option|<!-- par 7 name -->mf|<!-- par 7 default value -->0}} |
::: Frame number on clip for matching. | ::: Frame number on clip for matching. | ||
<br> | <br> |
Revision as of 08:12, 15 July 2018
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 17 Oct 2017 |
Download | modPlus.7z |
Category | External filters |
License | GPLv2 |
Discussion | HistogramAdjust plugin |
Contents |
Description
This function, formerly named HistogramAdjust but now named TweakHist, adjusts the histogram of a frame by either equalizing it or by matching with histogram of another image, or with given histogram table of values. Full Description
Requirements
- AviSynth+ r2347 or greater
- Source video: Progressive
Syntax and Parameters
- TweakHist(clip, int type, clip mclip, int mf, int limit, int rgb )
- clip =
- Input clip.
- clip =
- int =
- Luma value % of maximum.
- int =
- clip =
- % age of population or cumulative population at this luma value
- clip =
- type int = 1
- Type of process
- type int = 1
- mclip clip = dummy clip
- Clip in which image for matching is available.
- mclip clip = dummy clip
- 0 mf =
- Frame number on clip for matching.
- 0 mf =
- limit int = 100
- Limit on % of change in value from original for tweaking allowed.
- limit int = 100
- rgb int = 1
- Percentage of deviation from original value of luma to be allowed.
- rgb int = 1
Examples
TweakHist() TweakHist(c,type=2,mclip=mm,mf=26) TweakHist(c,15,2, 30,12, 50, 33, 90, 12,150,35,200,10, type=3,limit=50) TweakHist(20,1,150,100,255,110, type=4,limit = 70)
- RGB input. Repeated for each color
TweakHist(limit = 70,rgb = 0) TweakHist(limit = 70,rgb = 1) TweakHist(limit = 50, rgb = 2)
Back to External Filters ←