OH MY DAYS, COLOUR

Dec 28, 2012 at 6:34pm

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

#65836
Dec 28, 2012 at 8:06pm

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

#237094
Dec 30, 2012 at 2:33pm

thanks

#237095
Dec 30, 2012 at 2:49pm

In terms of analysing the numbers that are spat out, is there a chart of some kind that shows what number is what colour?

#237096
Dec 30, 2012 at 9:30pm

the default colormode of 4 plane jitter matrices is ARGB. so first plane is alpha, second is red, etc.

#237097
Dec 31, 2012 at 10:40pm

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?

#237098
Jan 4, 2013 at 10:42pm

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.

#237099
Jan 6, 2013 at 4:56pm

I am still having trouble getting the required data I need

I have taken a still image of what I have set up at the moment, could anyone see where I am going wrong?

Used jit.unpack 4, jit.pack 4 and the mean output of jit.3m but still no result

Cheers,

J

[attachment=211820,4854]

Attachments:
  1. howmuchcolour.jpg
#237100
Jan 9, 2013 at 1:22pm

sorted it now, no worries.

jit.3m mean output, unpacked.. sorted

cheers.

#237101

You must be logged in to reply to this topic.