Talk:VTK: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(ct 512x512 images in ray-casting, the axis image is divided ,why)
(questiion about GetBounds())
Line 25: Line 25:
  v16->SetImageRange(1,10);
  v16->SetImageRange(1,10);
v16->SetDataSpacing (0.5859375, 0.5859375, 2);
v16->SetDataSpacing (0.5859375, 0.5859375, 2);
== questiion about GetBounds() ==
I want to get the bound of the DEM ,so i used vtkDataSet::GetBounds();but the return vale(zmin = = zmax).I don't know why to that?  I want get the range of  the XYZ three orientations  of  the DEM. How to get it? Thanks at first.

Revision as of 07:28, 26 April 2007

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);

questiion about GetBounds()

I want to get the bound of the DEM ,so i used vtkDataSet::GetBounds();but the return vale(zmin = = zmax).I don't know why to that?  I want get the range of  the XYZ three orientations  of  the DEM. How to get it? Thanks at first.