<DIV>Hi Everyone,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; I have a image file of 15MB of type short. I want to read this file into a vtkShortArray. I am using JAVA and VTK. I am doing it this way,</DIV>
<DIV>&nbsp;&nbsp;&nbsp; vtkShortArray arr = new vtkShortArray();</DIV>
<DIV>&nbsp;and then using the arr.InsertNextValue() method for inserting the elements of the array which is taking a lot more time for me. Since i am using java each time i insert an element into an array then its making a native call and is going out of the Java Virtual Machine and so its taking very much time (almost 6-7 min).</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Does any body have an idea how to pass the java array to a vtkShortArray as reference so that the bulk of the data can be passed as a chunk data...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance,</DIV>
<DIV>cheers ,</DIV>
<DIV>Rohan</DIV><p>
                <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/50x/*http://promotions.yahoo.com/new_mail/static/efficiency.html">Yahoo! Mail</a> - 50x more storage than other providers!