Talk:VTK: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(VTK with Java under Windows)
 
(ct 512x512 images in ray-casting, the axis image is divided ,why)
Line 13: Line 13:


Any suggestions are highly appreciated!
Any suggestions are highly appreciated!
== ct 512x512 images in  ray-casting,  the axis image is divided ,why ==
  my code is as following:
vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions(512,512);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix ("D:/AMy_career/papercode/image/1.CT.THORAX_LUNGLOWDOSE_(ADULT).1");
v16->SetImageRange(1,10);
v16->SetDataSpacing (0.5859375, 0.5859375, 2);

Revision as of 12:35, 5 April 2006

Hi,

I am a new user about VTK. My operating system is Windows XP. I downloaded and installed vtk42-LatestRelease.exe into the folder C:\Program Files\vtk42. The path and classpath as follows:


PATH: C:\MikTeX\miktex\bin; C:\Program Files\Java\jdk1.5.0_01\bin;C:\PROGRA~1\vtk42\bin;C:\PROGRA~1\Tcl\bin

CLASSPATH: .;C:\Program Files\Java\jdk1.5.0_01\lib\tools.jar; C:\Program Files\vtk42\bin\vtk.jar;

After the installation, I restart my computer. Then I try to compile Cone.java to test vtk. However, I got the error message said: package vtk does not exist on the line of import vtk.*. There are 11 error message in total, that was the first one and all of the rest are related to vtk stuff.

Any suggestions are highly appreciated!

ct 512x512 images in ray-casting, the axis image is divided ,why

 my code is as following:

vtkVolume16Reader *v16 = vtkVolume16Reader::New();

v16->SetDataDimensions(512,512);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix ("D:/AMy_career/papercode/image/1.CT.THORAX_LUNGLOWDOSE_(ADULT).1");
v16->SetImageRange(1,10);

v16->SetDataSpacing (0.5859375, 0.5859375, 2);