Histograms in RGB & CMY

From Avisynth wiki
Revision as of 01:25, 21 September 2014 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Abstract
Author -Vit-
Version 2012/04/20
Download Histograms in RGB & CMY.avsi
Category Levels and Chroma
License
Discussion Doom9 Thread


Contents

[edit] Description

A script to display RGB and CMY levels and a RGB parade color scope.

[edit] Requirements


[edit] Syntax and Parameters


[edit] HistogramRGBLevels / HistogramCMYLevels

These two functions are like Histogram("levels") but for RGB and CMY instead of YUV.

HistogramRGBLevels (clip input, bool "range", float "factor" )
HistogramCMYLevels (clip input, bool "range", float "factor" )


clip  input =
Input clip.


bool  range = true
Set range=false to hide the 16-235 range (a left-over from the Y histogram used to build these)


float  factor = 100.0
The "factor" option specifies how the graphs are displayed. It is specified as percentage of the total population.
Range: 0.0 to 100.0




[edit] HistogramRGBParade

Presents a fairly standard RGB parade color scope. It uses Histogram("classic") for each RGB component, but applied to columns rather than rows.

HistogramRGBParade (clip input, float "width" )


clip  input =
Input clip.


float  width = 0.25
Controls the width of the histogram display (height will always be 256 pixels).


[edit] Examples

  • HistogramRGBLevels with default settings:
AviSource("blah.avi")
HistogramRGBLevels(range=true, factor=100.0)
HistogramRGBLevels.png



  • HistogramCMYLevels with default settings:
AviSource("blah.avi")
HistogramCMYLevels(range=true, factor=100.0)
HistogramCMYLevels.png



  • HistogramRGBParade with default settings:
AviSource("blah.avi")
HistogramRGBParade(width=0.25)
HistogramRGBParade.png


[edit] Changelog

Version         Date            Changes
2012/04/20 2012/04/20 - Initial release


[edit] External Links




Back to External Filters

Personal tools