Compare
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) m (added category:Debugging/Diagnostic_filters) |
Raffriff42 (Talk | contribs) m (formatting, links, phrasing) |
||
Line 1: | Line 1: | ||
− | {{ | + | <div style="max-width:62em" > |
+ | {{FuncDef | ||
+ | |Compare(clip ''clip_filtered'', clip ''clip_original'', string ''channels'', string ''logfile'', bool ''show_graph'')}}\ | ||
− | This filter compares the original clip | + | {{Par2|clip_filtered, clip_original|clip|}} |
+ | :This filter compares the original clip and its filtered version. The filtered version will be returned with the results of the comparison displayed on screen (unless the {{FuncArg|logfile}} option is used). For each frame, the ''Mean Absolute Difference'', ''Mean Difference'' and ''Peak Signal-to-Noise Ratio'' ([[PSNR]]) is given, as well as the ''min'' (minimum), ''avg'' (average), ''max'' (maximum) and ''overall'' PSNR up to that frame (calculated frame-wise). | ||
− | + | {{Par2|channels|string|""}} | |
+ | :Set the color channels to be compared with a combination of ''R'',''G'',''B'' [,''A''] or ''Y'',''U'',''V'', depending on the source color format. If it is empty (default), it means either "[[YUV]]" when the input clips are YCbCr or "[[RGB]]" when in the input clips are RGB. | ||
− | If | + | {{Par2|show_graph|bool|true}} |
+ | :If true, (the default) then Marc's{{Who|Talk:Compare}} PSNR graph is also drawn on it. | ||
− | + | {{Par2|logfile|string|""}} | |
+ | :If specified, the results will be written to a file by this name and not drawn on the clip. It is much faster if you need to compare a lot of frames. | ||
'''Examples:''' | '''Examples:''' | ||
− | + | <div {{BoxWidthIndent|48|0}} > | |
# displays differences on screen: | # displays differences on screen: | ||
Compare(clip1, clip2) | Compare(clip1, clip2) | ||
+ | </div> | ||
+ | <div {{BoxWidthIndent|48|0}} > | ||
# for creating a log file: | # for creating a log file: | ||
Compare(clip1, clip2, "", "compare.log") | Compare(clip1, clip2, "", "compare.log") | ||
+ | </div> | ||
+ | <div {{BoxWidthIndent|48|0}} > | ||
# will only compare chroma channels of YUY2 clips: | # will only compare chroma channels of YUY2 clips: | ||
Compare(clip1, clip2, "UV") | Compare(clip1, clip2, "UV") | ||
− | + | </div> | |
+ | </div> | ||
'''Changes:''' | '''Changes:''' |
Revision as of 03:36, 28 February 2016
Compare(clip clip_filtered, clip clip_original, string channels, string logfile, bool show_graph)\
clip clip_filtered, clip_original =
- This filter compares the original clip and its filtered version. The filtered version will be returned with the results of the comparison displayed on screen (unless the logfile option is used). For each frame, the Mean Absolute Difference, Mean Difference and Peak Signal-to-Noise Ratio (PSNR) is given, as well as the min (minimum), avg (average), max (maximum) and overall PSNR up to that frame (calculated frame-wise).
string channels = ""
- Set the color channels to be compared with a combination of R,G,B [,A] or Y,U,V, depending on the source color format. If it is empty (default), it means either "YUV" when the input clips are YCbCr or "RGB" when in the input clips are RGB.
bool show_graph = true
- If true, (the default) then Marc's(who?) PSNR graph is also drawn on it.
string logfile = ""
- If specified, the results will be written to a file by this name and not drawn on the clip. It is much faster if you need to compare a lot of frames.
Examples:
# displays differences on screen: Compare(clip1, clip2)
# for creating a log file: Compare(clip1, clip2, "", "compare.log")
# will only compare chroma channels of YUY2 clips: Compare(clip1, clip2, "UV")
Changes:
v2.58 | Added YV12 support. |