[vtkusers] How to run Medical Examples

Darshan Pai vtk_darshan at yahoo.com
Mon Dec 5 09:43:43 EST 2005


Just so u know . the data is in VTKDATA.zip on the site itself

Ziad Rahhal <ziz79 at yahoo.com> wrote:  Hi Ana,

vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions (64,64);
v16->SetImageRange (1,93);
v16->SetDataByteOrderToLittleEndian();

// Here you need to pass the path of your DataSet
"headsq"
v16->SetFilePrefix (argv[1]); // Through command
line

v16->SetDataSpacing (3.2, 3.2, 1.5);

In (v16->SetFilePrefix (argv[1]);) If you don't want
to pass the path of your dataset as an argument in the
command line then take off argv[1] and replace it with
the path where you have your medical dataset. 
In my case it is:

v16->SetFilePrefix("c:\VTKData\Data\headsq\quarter");
(Under Windows)

The headsq folder contains 93 slices with a prefix
"quarter" and a postfix the number of the slice, like
quarter.1, quarter.2, etc. You must have this "headsq"
folder in your VTKData.

Regards,

Ziad

--- Ana Sandro wrote:

> Hello,
> 
> I'm looking the examples of vtk and I've problems
> to run the Medical1.cxx 
> one.It's necessary to pass as an argument a series
> of 2D slices that compose 
> a volume but I don't know where to find these
> images.If someone could tell 
> me how to correctly execute the program I'd thank.
> 
>
_________________________________________________________________
> Móviles, DVD, cámaras digitales, coleccionismo...
> Con unas ofertas que ni te 
> imaginas. http://www.msn.es/Subastas/
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 




__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



		
---------------------------------
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051205/12bc85d9/attachment.htm>


More information about the vtkusers mailing list