XML Feeds

.

[java-dev] working with JitterObjects in mxj that don't output jitter matrices

volker böhm vboehm at gmx.ch
Wed Oct 3 12:51:10 MDT 2007


On 03 Oct 2007, at 19:41, Joshua Kit Clayton wrote:

>
> On Oct 3, 2007, at 3:15 AM, volker böhm wrote:
>
>> but what about using a jitter object, which doesn't output a  
>> jitter matrix?
>>
>> i'd like to find the mean value of a 2d 1 plane matrix using jit. 
>> 3m e.g.
>>
>> JitterObject my3m = new JitterObject("jit.3m");
>> my3m.matrixcalc(myInputMatrix, ???);
>
> If null doesn't work as a second argument to matrixcalc, you can  
> just pass in any matrix (duplicate the input).
>
> The values you are looking for are available as attributes after  
> the matrixcalc method has finished executing. Their names are "max"  
> "mean" "min" and will return arrays of values.
>
> Hope this helps.

yes, it does!
null works as second argument. i didn't know about the attribute-thing.

my3m.matrixcalc(myInputMatrix, null);
int[] mean = my3m.getAttrIntArray("mean");

this works fine for me.

thanks, joshua.
volker.





More information about the java-dev mailing list