PySceneDetect icon indicating copy to clipboard operation
PySceneDetect copied to clipboard

Clarify confusion around what Delta Lum is

Open fusi3 opened this issue 5 months ago • 0 comments

Hi! Just writing this to clarify some of the confusion I was having and to understand the choice of names assuming I have understood the code correctly.

We are calculating through the detector the deltas, between the current frame and previous frame, of hue saturation and "luminance". These are coming from the conversion of the image from RGB to HSV where the V is supposed to be Value and in our case being referred to as Luminance. I am looking at line 156 in content_detector.py

From what I have been reading, Luminance is a sort of perceptual brightness where each pixels RGB value has a weight attached to it which relates to the colours that humans prefer (green having the highest, then red and then blue). We can either attach the weight or use YUV space.

The Value calculation in HSV is I believe the max of either RGB for each pixel value.

I dont see any additional weights being added, not even during the mean pixel distance so should this still be called delta lum or something like delta val or delta brgt?

I do understand that many of these terms are interchangeable so if there is any convention that I have missed or if my understanding is falling short then would love to learn!

fusi3 avatar Jun 12 '25 09:06 fusi3