OH MY DAYS, COLOUR
Hey
Having a bit of trouble analysing how much colour is in a live video that I am using.
What is the object that will allow me to see how much Red Green or Blue is in the image?
Cheers,
J
One way to do that:
- [jit.op @op > @val 0.x] to threshold the image (optional)
- [jit.3m] take the mean output
- [vexpr $f1 / x] with x = the max color value (char: 255, float32: 1.), this gives you a list with the ratio of color in each RGB plane
thanks
In terms of analysing the numbers that are spat out, is there a chart of some kind that shows what number is what colour?
the default colormode of 4 plane jitter matrices is ARGB. so first plane is alpha, second is red, etc.
Thanks.
Just going back to the first reply, I am a little bit confused with "(char: 255, float32: 1.)"
Where can I find reference to what this means?
It is a description of of the ranges for char and float32 data types.
>Where can I find reference to what this means?
A good way to learn it is to do the Jitter tutorials.
sorted it now, no worries.
jit.3m mean output, unpacked.. sorted
cheers.