HistogramAdjust
From Avisynth wiki
(Difference between revisions)
(→Examples) |
|||
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. | + | 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] |
− | |||
− | |||
− | |||
<br> | <br> | ||
== Requirements == | == Requirements == | ||
* AviSynth+ r2347 or greater | * AviSynth+ r2347 or greater | ||
* Source video: Progressive | * Source video: Progressive | ||
+ | |||
+ | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
− | :{{Template:FuncDef|<!-- function name -->HistogramAdjust(''clip'', ''<!-- par 1 type -->int type, clip mclip, int mf | + | :{{Template:FuncDef|<!-- function name -->HistogramAdjust(''clip'', ''<!-- par 1 type -->int type, clip mclip, int mf, int limit, int rgb <!-- par 1 name -->)}} |
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
− | :::Input clip. | + | ::: Input clip. |
<br> | <br> | ||
::{{Par2|<!-- par 3 type -->int|<!-- par 3 name -->|<!-- par 3 default value -->}} | ::{{Par2|<!-- par 3 type -->int|<!-- par 3 name -->|<!-- par 3 default value -->}} | ||
− | :::Luma value % of maximum. | + | ::: Luma value % of maximum. |
<br> | <br> | ||
::{{Par2|<!-- par 4 type -->clip|<!-- par 4 name -->|<!-- par 4 default value -->}} | ::{{Par2|<!-- par 4 type -->clip|<!-- par 4 name -->|<!-- par 4 default value -->}} | ||
Line 36: | Line 35: | ||
<br> | <br> | ||
::{{Par2|<!-- par 5 type -->int|<!-- par 5 name -->type|<!-- par 5 default value -->1}} | ::{{Par2|<!-- par 5 type -->int|<!-- par 5 name -->type|<!-- par 5 default value -->1}} | ||
− | :::Type of process | + | ::: Type of process |
<br> | <br> | ||
::{{Par2|<!-- par 6 type -->clip|<!-- par 6 name -->mclip|<!-- par 6 default value -->dummy clip}} | ::{{Par2|<!-- par 6 type -->clip|<!-- par 6 name -->mclip|<!-- par 6 default value -->dummy clip}} | ||
− | :::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 -->w|<!-- par 7 default value -->0}} | ::{{Par2|<!-- par 7 type -->integer, may be specified for type = 2 option|<!-- par 7 name -->w|<!-- par 7 default value -->0}} | ||
− | ::: | + | ::: Frame number on clip for matching. |
<br> | <br> | ||
− | ::{{Par2|<!-- par 8 type -->int|<!-- par 8 name -->limit|<!-- par 8 default value -->}} | + | ::{{Par2|<!-- par 8 type -->int|<!-- par 8 name -->limit|<!-- par 8 default value -->100}} |
− | ::: | + | ::: Limit on % of change in value from original for tweaking allowed. |
<br> | <br> | ||
::{{Par2|<!-- par 9 type -->int|<!-- par 9 name -->rgb|<!-- par 9 default value -->1}} | ::{{Par2|<!-- par 9 type -->int|<!-- par 9 name -->rgb|<!-- par 9 default value -->1}} | ||
− | ::: | + | ::: Percentage of deviation from original value of luma to be allowed. |
− | + | ||
− | + | ||
− | + | ||
<br> | <br> | ||
Revision as of 04:21, 18 June 2018
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 25 Aug 2017 |
Download | modPlus.7z |
Category | External filters |
License | GPLv2 |
Discussion | HistogramAdjust plugin |
Contents |
Description
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. Full Description
Requirements
- AviSynth+ r2347 or greater
- Source video: Progressive
Syntax and Parameters
- HistogramAdjust(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 w =
- Frame number on clip for matching.
- 0 w =
- 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 ←