[vtkusers] The simplest question i guess......vtkShortArray()

Rohan Naukudkar rohan_vtk at yahoo.com
Sun Sep 5 12:24:22 EDT 2004


Hi Everyone,
    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,
    vtkShortArray arr = new vtkShortArray();
 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).
    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...
 
Thanks in advance,
cheers ,
Rohan

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040905/58d12573/attachment.htm>


More information about the vtkusers mailing list