[vtkusers] Reading 16 bit integer volume.
Budd Hirons
bhiron at lsuhsc.edu
Tue Jun 3 11:50:35 EDT 2003
If you use vtkImageReader2 instead of the vtkVolumeReader, you can read in
a single volume file and
still get vtkImageData as the output.
here is an example from a win32 vc++ implementation:
this->vr = vtkImageReader2::New();
this->vr->SetDataByteOrderToLittleEndian();
this->vr->SetDataScalarTypeToInt();
this->vr->SetFileDimensionality(3);
this->vr->SetFileName( _volFile );
this->vr->SetDataExtent( 0, m_width - 1,
0, m_height - 1,
0, m_depth - 1);
this->vr->SetDataSpacing( m_widthVoxel, m_heightVoxel, m_depthVoxel );
this->vr->SetFileLowerLeft( 1 );
this->vr->Update();
At 11:04 AM 6/3/2003 -0400, you wrote:
>Is there a way to read in a single file which represents a 16bit integer
>volume. The vtkVolume16Reader seems to only take a stack of 16bit images
>and i can't seem to find another means with VTK. Is my only option to
>write this volume out to a series of images?
>
>Shannon
>
>--
>-------------------------------------
>Shannon Hastings
>
>Research Specialist
>Ohio State University Medical Center
>Department of Biomedical Informatics
>1-740-292-0946
>hastings at bmi.osu.edu
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030603/a9b5aaee/attachment.htm>
More information about the vtkusers
mailing list