[Insight-users] Q: MetaImageViewer and TripleTKID input and display differences?
Feng Ma
mafeng@hotmail.com
Thu, 26 Sep 2002 22:28:36 -0400
Hello,
I am playing around with the examples provided in ITK, to import my CT
data using metaimage format. I construct a .mhd file according to the
suggestions in the list.
I was able to load the CT data into TripleTKID and display it on 2D view.
By scrolling images, everything looks fine. However, when I tried to load it
use MetaImageViewer, I got the error:
NDims required and not defined.
MetaObject: Read: MET_Read Failed
MetaImage: M_Read: Error parsing file
MetaImage: Read: Cannot parse file
Problems reading file format
while the .mhd file looks like this:
% more LV103.mhd
NDims = 3
DimSize = 512 512 311
ElementSpacing = 0.61 0.61 1.25
Position = 0 0 0
ElementByteOrderMSB = False
ElementType = MET_USHORT
HeaderSize = -1
ElementDataFile = LIST
LV00010300_000.dcm
LV00010300_001.dcm
LV00010300_002.dcm
LV00010300_003.dcm
Seems that TripleTKID use a special meta image IO library to read meta
images, different from the more general usage in MetaImageViewer. Which one
is better to use?
Then I copy the code in TripleTKID into MetaImageViewer, using the
non-general metaimage reader provided in utilities library, as TripleTKID
did. This time, I was able to load the data and display it. But problem is
the displayed images are upside down. I checked the code, both views use
GLSliceView as the base class. This is my second question: Why the
MetaImageViewer display images differently from TripleTKID? By the way, if I
load simulated brainweb data, there is no difference. !??
Finally, can I have a quick guide on how to code my specific image IO lib?
I think I read some answers in the list, but I can not find it again.
Thanks a lot.
Best regards,
-Feng
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com