View Full Version : Max and min pixel values detection
redfordxx
30th May 2006, 11:50
Hi,
is there any function or small script how to get the max pixel value of each frame? (min would be same)
The result could be delivered e.g. in a clip with this value all over the frame...
You know, I am always thinking about weird methods...
Tnx, R.
foxyshadis
30th May 2006, 11:57
Should check the avisynth docs. ;)
Other internal functions:
YPlaneMax (clip, float threshold)
UPlaneMax (clip, float threshold)
VPlaneMax (clip, float threshold)
YPlaneMin (clip, float threshold)
UPlaneMin (clip, float threshold)
VPlaneMin (clip, float threshold)
YPlaneMedian (clip)
UPlaneMedian (clip)
VPlaneMedian (clip)
YPlaneMinMaxDifference (clip, float threshold)
UPlaneMinMaxDifference (clip, float threshold)
VPlaneMinMaxDifference (clip, float threshold)
These are all conditional filters, so they'll give you back a number (which you can generate a blankclip for if you want).
Didée
30th May 2006, 11:58
Sure. It's in mt_masktools.dll ... well, where else should it be. ;)
mt_lutf(last,last,mode="max",expr="x",Y=3,U=3,V=3)
There are more "modes" available, plus you can make a one-go operation with a 2nd clip at the same time. Have a look at the documentation. ;)
redfordxx
30th May 2006, 12:56
Thanx... I think I am going to make the SmoothDeblock even more complex...;-) but I believe it will help both speed and quality. Well, I believe it now...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.