<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>Hi, Mathieu.<BR>
<BR>
The second thing you mentioned works!! I just set the SetMaxSizeLoadEntry to be 0xffff<BR>
<BR>
Thanks<BR>
<BR>> Date: Tue, 25 Nov 2008 14:17:20 +0100<BR>> From: mathieu.malaterre@gmail.com<BR>> To: pidanchen@hotmail.com<BR>> Subject: Re: [Insight-users] How to load sequence items<BR>> CC: insight-users@itk.org<BR>> <BR>> On Tue, Nov 25, 2008 at 3:43 AM, chensiqi <pidanchen@hotmail.com> wrote:<BR>> ><BR>> ><BR>> > Thanks for the sharing.<BR>> ><BR>> > I managed to load most of the sequence data using GDCM instead of ITK.<BR>> > GDCM has several classes and member functions that can easily read sequence<BR>> > data.<BR>> ><BR>> > One thing I don't understand is some sequence data can not be loaded, GDCM<BR>> > complains them as "Bad Pointer". But I can definitely see them in Matlab<BR>> > using Dicominfo().<BR>> > E.g, for "ContourData" items, for some slices, I can load them using GDCM,<BR>> > for some other slices, GDCM will throw a "Bad Ptr".<BR>> <BR>> Two options (from the top of my head):<BR>> <BR>> - this particular DICOM file is missing the SQ. Did you check it is present ?<BR>> - this is the famous GDCM 1.x 'feature', where you have to explicitely<BR>> says: "yes I want to load long field". See :<BR>> <BR>> http://www.itk.org/Doxygen/html/classitk_1_1GDCMImageIO.html<BR>> -> Get/SetMaxSizeLoadEntry<BR>> <BR>> 2cts<BR>> -- <BR>> Mathieu<BR><BR><br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://im.live.cn/' target='_new'>立刻下载!</a></body>
</html>