Talk:GreyScale

From Avisynth wiki
Revision as of 17:07, 17 January 2016 by Reel.Deal (Talk | contribs)

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

RGB behavior

This statement was recently removed from the documentation:

In RGB based formats, the conversion produces the luma using the coefficients given in the matrix parameter (rec601 by default, which reflects the behaviour in old AviSynth versions).

With the following script you can see that using Grayscale() on a RGB source actually uses the "PC.601" matrix, at least in AviSynth 2.6.

ColorBars()

gray = Grayscale().Subtitle("Grayscale")

pc601 = ConvertToY8(matrix="PC.601")
pc601 = MergeRGB(pc601, pc601, pc601).Subtitle("PC.601")

rec601 = ConvertToY8(matrix="Rec601")
rec601 = MergeRGB(rec601, rec601, rec601).Subtitle("Rec601")

Interleave(gray, pc601, rec601)

#ShowRed("YV12").Histogram("levels")
Personal tools