View Single Post
Old 26th November 2012, 12:35   #1  |  Link
lisztfr9
Registered User
 
Join Date: Apr 2010
Posts: 175
YDifferenceFromPrevious, AverageLuma ?

Hi,

"YUV is a color model - or color space - that consists of one luma (a.k.a. brightness) component, Y" (wiki)

Code :
Quote:
WriteFile(filename, "current_frame", "colon", "YDifferenceFromPrevious", "colon", "AverageLuma", flush=true)
Output :

Quote:
0: 0.000000: 91.990440
1: 7.229414: 90.837395
2: 6.917845: 91.439629

3: 5.629769: 91.108070
4: 6.149966: 91.371422
5: 6.249398: 90.300537
6: 5.568695: 91.179222
7: 6.245852: 89.969498
8: 6.368322: 90.976563
9: 5.497233: 90.415611
The average luma difference between frame 1 and 2 :

91.439629 - 90.837395 = 0.599534

YDifferenceFromPrevious = 6.917845

So what is the real relationship between YDiff and luma, or the computation made here ?

I know Ydifference computes the total difference between two frames by pixels, but how ? then even 6.917845 is too low.

I need to select frames while they have more luma than previous and next, but since Ydiff returns absolute (not signed) values i can't use it, i tried yesterday but i didn't succeed. I need to access average luma of previous and next frame, imho.

That's a lot of questions
Thanks, L
lisztfr9 is offline   Reply With Quote