query cell coordinates of a target value in a jitter matrix

Jun 3, 2013 at 7:10am

query cell coordinates of a target value in a jitter matrix

Hello, is there any object which runs under 64bit, which allows to query cell coordinates (x/y) from a jitter matrix for a given target value. I have a matrix filled with floats and want to find the position of the highest value.

Please help!

#251511
Jun 3, 2013 at 7:10am

ah sorry I am running Win7 64bit

#251512
Jun 3, 2013 at 11:06am

It’s not a single object – it’s a message sequence to a jit.matrix object.

<code>

– Pasted Max Patch, click to expand. –

</code>

#251543
Jun 4, 2013 at 3:31am

Hello Max Gerdener, thanks for your reply. my question was not for getting the value as it is nice documented in the matrix reference but if I have this value already how to know at which column and row it is in the matrix, means the x, y cell coordinates.

#251642
Jun 5, 2013 at 2:54am

there is no standard jitter object for this, you need to look at 3rd party externals

take a look at the objects in Wesley Smith’s site:

http://www.mat.ucsb.edu/~whsmith/xray.html

#251726
Jun 5, 2013 at 3:44am

maybe one solution :

combine a [jit.op @op == @val (your value)] object
-> this will put your cell to 1 if the value in your matrix are equals to your known value,

then give it to a [jit.iter] to retrieve coordinate

#251727
Jun 5, 2013 at 4:07am

one example :

<code>

– Pasted Max Patch, click to expand. –

</code>

#251729
Jun 6, 2013 at 4:01am

@touk: thanks that helps!

@floating point: thanks! about xray: I have to try how it works under win7 64bit. there was an object xray.jit.maxvalue which seems to be no longer supported and which does exactly this kind of cell-index-search.

#251849

You must be logged in to reply to this topic.