HistogramAdjust: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
Vcmohan (talk | contribs)
Created page with " {{FilterCat4|External_filters|Plugins|<!-- category -->TODO|<!-- category -->TODO}} {{Filter3 |1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] |2=<!-- ver..."
 
m Requirements: AviSynth 2.6
Line 17: Line 17:
<br>
<br>
== Requirements ==
== Requirements ==
* <!-- Avisynth version -->AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/files/AviSynth_Alpha_Releases/ 2.6.0 Alpha 5 or greater]
* <!-- Avisynth version -->AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ 2.6.0] or greater
* <!-- source video: progressive  
* <!-- source video: progressive  
* <!-- color formats -->Supported color formats:  [[YUY2]], [[YV12]], <span style="color:red">*</span>[[YV16]], <span style="color:red">*</span>[[YV24]], <span style="color:red">*</span>[[YV411]], <span style="color:red">*</span>[[Y8]]
* <!-- color formats -->Supported color formats:  [[YUY2]], [[YV12]], <span style="color:red">*</span>[[YV16]], <span style="color:red">*</span>[[YV24]], <span style="color:red">*</span>[[YV411]], <span style="color:red">*</span>[[Y8]]
Line 26: Line 26:
<br>
<br>
"ci*[type]s[table]b[mclip]c[mf]i[window]b[w]i[h]i[limit]i"
"ci*[type]s[table]b[mclip]c[mf]i[window]b[w]i[h]i[limit]i"
== [[Script variables|Syntax and Parameters]] ==
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|<!-- function name -->HistogramAdjust(''clip'', ''<!-- par 1 type -->int array'' "<!-- par 1 name -->", ''<!-- par 2 type -->string'' "<!-- par 2 name -->type", ''<!-- par 3 type -->bool'' "<!-- par 3 name -->table ",''<!-- par 4 type -->clip'' <!-- par 4 name -->mclip",''<!-- par 5 type -->int'' <!-- par 5 name -->mf",''<!-- par 6 type -->bool'' <!-- par 6 name -->window",''<!-- par 7 type -->int'' <!-- par 7 name -->w",''<!-- par 8 type -->int'' <!-- par 8 name -->h",''<!-- par 9 type -->int'' <!-- par 9 name -->limit")}}
:{{Template:FuncDef|<!-- function name -->HistogramAdjust(''clip'', ''<!-- par 1 type -->int array'' "<!-- par 1 name -->", ''<!-- par 2 type -->string'' "<!-- par 2 name -->type", ''<!-- par 3 type -->bool'' "<!-- par 3 name -->table ",''<!-- par 4 type -->clip'' <!-- par 4 name -->mclip",''<!-- par 5 type -->int'' <!-- par 5 name -->mf",''<!-- par 6 type -->bool'' <!-- par 6 name -->window",''<!-- par 7 type -->int'' <!-- par 7 name -->w",''<!-- par 8 type -->int'' <!-- par 8 name -->h",''<!-- par 9 type -->int'' <!-- par 9 name -->limit")}}

Revision as of 16:53, 31 May 2015


Abstract
Author V.C.Mohan
Version 1.0.0.0.0
Download 2.5.8 versionHistogramAdjust 2.6.0 alpha5 version URL -->HistogramAdjust
Category External filters
License GPLv2
Discussion HistogramAdjust plugin


Description

H and a full description is at click me.

Requirements

* Not available in AviSynth 2.5.8.


"ci*[type]s[table]b[mclip]c[mf]i[window]b[w]i[h]i[limit]i"

HistogramAdjust(clip, int array "", string "type", bool "table ",clip mclip",int mf",bool window",int w",int h",int limit")


clip   =
Input clip.


  int array =
table of luma and population pairs in case table is true .


type  string = "equal"
"equal" or "match"


table  bool = false
Whether table of values are specified for matching Histogram.


mclip  clip = clip
Clip with which input clip histogram is to be matched .


mf  int = 0
frame number of mclip with which clip histogram is to be matched .


window  bool = false
Whether windowed equalization is to be done .


w  int = frame width/4
If window is true, width of window (odd number) to be used.


h  int = frame height/4
If window is true, height of window (odd number) to be used.


limit  int = 100
percentage of deviation from original value of luma to be allowed .




Examples

## This is some example code to blur  an image.
imagereader("C:\..........jpg", end = 10)
a = avisource("C;\..........avi").converttoYUY2()
converttoyv16()
# HistogramAdjust matching with given table
m1=HistogramAdjust(1,250,100,570,200,0,type="match",table=true, window=false,w=259,h=255)
# matching with an image on a frame of another clip
h2 = HistogramAdjust(type="match",table=false, mclip=a ,mf=1)
# Histogram equalization
HistogramAdjust()
# equalization with limit
h1 = HistogramAdjust( limit = 80)



Back to External Filters