[Insight-users] Read Vector Image

Bing Jian bjian at cise . ufl . edu
Tue, 18 Nov 2003 14:37:11 -0500 (EST)


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.
  Have you guys encounted this problem before?
  Thanks!

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