church_archive_script/Programs/doc/_sources/functions/video/planestats.rst.txt

16 lines
619 B
Text
Raw Normal View History

2023-11-29 16:12:35 +00:00
PlaneStats
==========
.. function:: PlaneStats(vnode clipa[, vnode clipb, int plane=0, string prop='PlaneStats'])
:module: std
This function calculates the min, max and average normalized value of all
the pixels in the specified *plane* and stores the values in the frame properties
named *prop*\ Min, *prop*\ Max and *prop*\ Average.
If *clipb* is supplied, the absolute normalized difference between the two clips
will be stored in *prop*\ Diff as well.
The normalization means that the average and the diff will always be floats
between 0 and 1, no matter what the input format is.