HistogramAdjust

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Syntax and Parameters)
Line 23: Line 23:
 
<br>
 
<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, int limit, int rgb <!-- par 1 name -->)}}
+
:{{Template:FuncDef| GBlur (clip, int "rad", float "sd", bool "u", bool "v")}}
 
<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|rad|int|3}}
::: Luma value % of maximum.
+
::: Radius of grid to use between 3 to 8.
 
<br>
 
<br>
::{{Par2|<!-- par 4 type -->clip|<!-- par 4 name -->|<!-- par 4 default value -->}}
+
::{{Par2|sd|float|1.5}}
:::% age of population or cumulative population at this luma value
+
::: Standard deviation.
 
<br>
 
<br>
::{{Par2|<!-- par 5 type -->int|<!-- par 5 name -->type|<!-- par 5 default value -->1}}
+
::{{Par2|u|bool|false}}
::: Type of process
+
::: Is u plane smoothing required?
 
<br>
 
<br>
::{{Par2|<!-- par 6 type -->clip|<!-- par 6 name -->mclip|<!-- par 6 default value -->dummy clip}}
+
::{{Par2|v|bool|false}}
::: Clip in which image for matching is available.
+
::: Is v plane smoothing required?
 +
 
 
<br>
 
<br>
::{{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>
 
::{{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>
 
::{{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 05:25, 18 June 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 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

GBlur (clip, int "rad", float "sd", bool "u", bool "v")


clip   =
Input clip.


int  rad = 3
Radius of grid to use between 3 to 8.


float  sd = 1.5
Standard deviation.


bool  u = false
Is u plane smoothing required?


bool  v = false
Is v plane smoothing required?



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

Personal tools