[Insight-users] Read Vector Image
Mathieu Malaterre
Mathieu . Malaterre at creatis . insa-lyon . fr
Wed, 19 Nov 2003 09:40:02 +0100
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