Histograms in RGB & CMY
From Avisynth wiki
(Difference between revisions)
(Histograms in RGB & CMY) |
m (minor formatting) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{FilterCat4|External_filters|Scripts|Adjustment_filters|Levels and Chroma filters}} |
− | {{ | + | |
+ | {{Filter3 | ||
|-Vit- | |-Vit- | ||
|2012/04/20 | |2012/04/20 | ||
− | |[] | + | |[http://avisynth.nl/images/Histograms_in_RGB_%26_CMY.avsi Histograms in RGB & CMY.avsi] |
|Levels and Chroma | |Levels and Chroma | ||
− | |}} | + | | |
+ | |6=[http://forum.doom9.org/showthread.php?p=1570968#post1570968 Doom9 Thread]}} | ||
<br> | <br> | ||
== Description == | == Description == | ||
− | + | A script to display RGB and CMY levels and a RGB parade color scope.<br> | |
− | + | ||
− | + | ||
<br> | <br> | ||
== Requirements == | == Requirements == | ||
− | + | * AviSynth 2.5.8 or later | |
− | + | * Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YUY2]], [[YV411]], [[YV12]], [[YV16]], [[YV24]] | |
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
<br> | <br> | ||
− | {{Template:FuncDef|HistogramRGBLevels (''clip'' input, ''bool'' "range", ''float'' "factor" )}} | + | ===HistogramRGBLevels / HistogramCMYLevels=== |
+ | These two functions are like [[Histogram#Levels_mode|Histogram("levels")]] but for [[RGB]] and CMY instead of [[YUV]]. | ||
+ | <br> | ||
+ | <br> | ||
+ | :{{Template:FuncDef|HistogramRGBLevels (''clip'' input, ''bool'' "range", ''float'' "factor" )}} | ||
:{{Template:FuncDef|HistogramCMYLevels (''clip'' input, ''bool'' "range", ''float'' "factor" )}} | :{{Template:FuncDef|HistogramCMYLevels (''clip'' input, ''bool'' "range", ''float'' "factor" )}} | ||
<br> | <br> | ||
Line 28: | Line 32: | ||
<br> | <br> | ||
::{{Par2|factor|float|100.0}} | ::{{Par2|factor|float|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 | :::Range: 0.0 to 100.0 | ||
− | |||
− | |||
<br> | <br> | ||
--------- | --------- | ||
+ | <br> | ||
+ | ===HistogramRGBParade=== | ||
+ | Presents a fairly standard [[RGB]] parade color scope. It uses Histogram("classic") for each [[RGB]] component, but applied to columns rather than rows. | ||
+ | <br> | ||
+ | <br> | ||
:{{Template:FuncDef|HistogramRGBParade (''clip'' input, ''float'' "width" )}} | :{{Template:FuncDef|HistogramRGBParade (''clip'' input, ''float'' "width" )}} | ||
<br> | <br> | ||
Line 41: | Line 49: | ||
::::Controls the width of the histogram display (height will always be 256 pixels). | ::::Controls the width of the histogram display (height will always be 256 pixels). | ||
<br> | <br> | ||
+ | |||
== Examples == | == Examples == | ||
− | HistogramRGBLevels with default settings: | + | *HistogramRGBLevels with default settings: |
[[AviSource]]("blah.avi") | [[AviSource]]("blah.avi") | ||
− | HistogramRGBLevels(range=true, factor=100.0) | + | HistogramRGBLevels(range=true, factor=100.0)<br> |
+ | [[Image:HistogramRGBLevels.png]] | ||
<br> | <br> | ||
− | HistogramCMYLevels with default settings: | + | <br> |
+ | *HistogramCMYLevels with default settings: | ||
[[AviSource]]("blah.avi") | [[AviSource]]("blah.avi") | ||
− | HistogramCMYLevels(range=true, factor=100.0) | + | HistogramCMYLevels(range=true, factor=100.0)<br> |
+ | [[Image:HistogramCMYLevels.png]] | ||
<br> | <br> | ||
− | HistogramRGBParade with default settings: | + | <br> |
+ | *HistogramRGBParade with default settings: | ||
[[AviSource]]("blah.avi") | [[AviSource]]("blah.avi") | ||
− | HistogramRGBParade(width=0.25) | + | HistogramRGBParade(width=0.25)<br> |
+ | [[Image:HistogramRGBParade.png]] | ||
<br> | <br> | ||
== Changelog == | == Changelog == | ||
Line 58: | Line 72: | ||
2012/04/20 2012/04/20 - Initial release | 2012/04/20 2012/04/20 - Initial release | ||
<br> | <br> | ||
− | == Links == | + | ==External Links == |
*[http://forum.doom9.org/showthread.php?p=1570968#post1570968 Doom9 Forum] - Histograms in RGB & CMY discussion. | *[http://forum.doom9.org/showthread.php?p=1570968#post1570968 Doom9 Forum] - Histograms in RGB & CMY discussion. | ||
− | |||
<br> | <br> | ||
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters#Levels_and_Chroma|External Filters]] ←''' | '''Back to [[External_filters#Levels_and_Chroma|External Filters]] ←''' |
Latest revision as of 01:25, 21 September 2014
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.
- clip input =
- bool range = true
- Set range=false to hide the 16-235 range (a left-over from the Y histogram used to build these)
- bool range = true
- 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
- float factor = 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.
- clip input =
- float width = 0.25
- Controls the width of the histogram display (height will always be 256 pixels).
- float width = 0.25
[edit] Examples
- HistogramRGBLevels with default settings:
AviSource("blah.avi") HistogramRGBLevels(range=true, factor=100.0)
![]()
- HistogramCMYLevels with default settings:
AviSource("blah.avi") HistogramCMYLevels(range=true, factor=100.0)
![]()
- HistogramRGBParade with default settings:
AviSource("blah.avi") HistogramRGBParade(width=0.25)
![]()
[edit] Changelog
Version Date Changes
2012/04/20 2012/04/20 - Initial release
[edit] External Links
- Doom9 Forum - Histograms in RGB & CMY discussion.
Back to External Filters ←