[vtkusers] vtkVolumeReader

sseo sseo at miki.pe.u-tokyo.ac.jp
Mon Dec 4 03:07:55 EST 2000


i've run in simmilar problem
and i made up my own  Volume8Reader class

unfortunatly vtkVolumeReader is specific for 16bits data
so you need to have a look into both
vtkVolumeReader and vtkVolume16Reader
and make your own vtkVolumeReader class
derived from vtkStructuredPointSource

have to remove all the stuffs for 16bits
(swapBytes and so on)

and that will work

yet, you need not modify do output dataset
type to VTK_UNSIGNED_CHAR since
VTK_UNSIGNED_SHORT will do the job,
and VTK_UNSIGNED_CHAR is dull performance

if you want a sample, mail me


>I'm trying to read image data using vtkVolumeReader.
>( I can't use vtkVolume16Reader since my files
>are not in 16bits )
>
>But when I say;
>
>vtkVolumeReader *vReader = vtkVolumeReader::New();
>
>it gives me an error saying;
>
>" Cannot convert from class vtkStructuredPointsSource * 
>to class vtkVolumeReader * " 
>
>Why is this? 
>What must I do to solve this?
>
>Any suggestions would be very much appreciated.
>Thank you in advance!!
>
>Naoko
>
>**************************************
>
>              Naoko Takaya
>          Ritsumeikan University 
>  Department of Science and Engineering 
>        Computer Vision Laboratory
>
>   e-mail: takaya at cv.cs.ritsumei.ac.jp
>
>**************************************
>


////////////////////////////////////////////////////
Seo Shinnichiro
Bio Medical Precision Engineering Lab
Tokyo University
sseo at miki.pe.u-tokyo.ac.jp
////////////////////////////////////////////////////






More information about the vtkusers mailing list