Forums > Jitter

Color value of a cell

January 20, 2006 | 4:34 pm

I am trying to collect the value of a specific cell in a jit.matrix. when i use the "getcell" attribute it gives me the values of all four channels (argb)… all i want is one value between 1 and 256. is there a simple way to output this value to a number box?


January 20, 2006 | 8:16 pm

Hello,
If by "one value" you mean the luminance of the cell, you will need to
pass through jit.rgb2luma, to convert your matrix into a 1 plane.
Otherwise, you could always just choose an arbitrary plane to track.


Andrew B.


Viewing 2 posts - 1 through 2 (of 2 total)