whwhwhwh9
17th January 2009, 14:20
Guys,
I found it convenient to change how to display histograms in Levels mode:
After we get histY[256] from a frame, we put a cap to the array, say 4*height*width/256, like this:
cap = 4*height*width/256 ;
for ( i = 0 ; i < 255 ; i ++ )
if ( histY[i] > cap )
histY[i] = cap ;
This way, the histogram will not vary a lot in successive frames.
I've got the source code package and updated histogram.c, then tried to follow the compiling instructions on AviSynth.org, but couldn't get it compiled.
Could someone add that piece of code into the source?
I found it convenient to change how to display histograms in Levels mode:
After we get histY[256] from a frame, we put a cap to the array, say 4*height*width/256, like this:
cap = 4*height*width/256 ;
for ( i = 0 ; i < 255 ; i ++ )
if ( histY[i] > cap )
histY[i] = cap ;
This way, the histogram will not vary a lot in successive frames.
I've got the source code package and updated histogram.c, then tried to follow the compiling instructions on AviSynth.org, but couldn't get it compiled.
Could someone add that piece of code into the source?