<html>
<font size=3>If you use vtkImageReader2 instead of the vtkVolumeReader,
you can read in a single volume file and <br>
still get vtkImageData as the output.<br><br>
here is an example from a win32 vc++ implementation:<br><br>
this->vr = vtkImageReader2::New();<br>
this->vr->SetDataByteOrderToLittleEndian();<br>
this->vr->SetDataScalarTypeToInt();<br>
this->vr->SetFileDimensionality(3);<br>
this->vr->SetFileName( _volFile );<br>
this->vr->SetDataExtent( 0, m_width - 1,<br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>
0, m_height - 1,<br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab> 0, m_depth - 1);<br>
this->vr->SetDataSpacing( m_widthVoxel, m_heightVoxel, m_depthVoxel );<br>
this->vr->SetFileLowerLeft( 1 );<br>
this->vr->Update();<br><br>
At 11:04 AM 6/3/2003 -0400, you wrote:<br>
<blockquote type=cite class=cite cite>Is there a way to read in a single file which represents a 16bit integer <br>
volume. The vtkVolume16Reader seems to only take a stack of 16bit images <br>
and i can't seem to find another means with VTK. Is my only option to <br>
write this volume out to a series of images?<br><br>
Shannon<br><br>
-- <br>
-------------------------------------<br>
Shannon Hastings<br><br>
Research Specialist<br>
Ohio State University Medical Center<br>
Department of Biomedical Informatics<br>
1-740-292-0946<br>
hastings@bmi.osu.edu<br><br>
_______________________________________________<br>
This is the private VTK discussion list. <br>
Please keep messages on-topic. Check the FAQ at: <<a href="http://public.kitware.com/cgi-bin/vtkfaq" eudora="autourl">http://public.kitware.com/cgi-bin/vtkfaq</a>><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" eudora="autourl">http://public.kitware.com/mailman/listinfo/vtkusers</a> </font></blockquote></html>