[Insight-users] A qustion about the Vector Image IO

Patrick (Peng) Cheng peng-cheng at uiowa.edu
Thu, 29 Apr 2004 18:16:45 -0600


												peng-cheng at uiowa.edu
												2004-04-29
Hi all,

I am trying to write a vector image to the disk and then read in.
so the data is good when is in memory, but after I write it out, and then read in.
it seems that it has never been initialized.

my vecotor image has 6 conponents, so I add sth in the itkImageIOBase.cxx

  else if ( ptype == typeid(Vector<double,6>))
    {
    this->SetNumberOfComponents(6);
    this->SetPixelType(ImageIOBase::DOUBLE);
    this->SetComponentType(ImageIOBase::DOUBLE);
    }

and then rebuild the itkIO class.

When I write out the image, I tried a lot of suffix, it seems that only when use .vtk, there is no runtime error.
and it won't complain about, ImageIO not set.
However I tried to set the ImageIO, but the other suffix still doesn't work.
Is it because only vtk image support vector pixel?

What might be the problem??

Sincerely,
Patrick (Peng) Cheng

Dept. of BME
University of Iowa