Color value of a cell

Jan 20, 2006 at 4:34pm

Color value of a cell

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?

Jan 20, 2006 at 8:16pm

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.


You must be logged in to reply to this topic.