[Insight-users] Read Vector Image

Bing Jian bjian at cise . ufl . edu
Wed, 19 Nov 2003 09:14:58 -0500 (EST)


Sure. I did call reader->Update().

-- 
Best wishes,
Bing Jian
bjian at cise . ufl . edu


On Wed, 19 Nov 2003, Mathieu Malaterre wrote:

> Bing Jian wrote:
> > Hi,
> >
> >   Thank you guys now I am able to write vector image correctly.
> > But I found there are still problems when trying to read the
> > vector image.
> >
> >   Following is the meta info of my vector image file:
> >     ObjectType = Image NDims = 2
> >     BinaryData = True
> >     BinaryDataByteOrderMSB = False
> >     DimSize = 300 300
> >     ElementNumberOfChannels = 2
> >     ElementType = MET_FLOAT
> >     ElementDataFile = v_image.raw
> >   It's created by my own program. The pixel type is
> > CovariantVector<float,2>. I also checked the content
> > in the raw file. It seems right.
> >
> >   But it turns out that if I set this file to the
> > reader, the values stored in reader->GetOutput()
> > are all zeroes.
>
> Did you call reader->Update() before accessing the data ?
>
> HTH
> mathieu
>
>