<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I can run the example correctly, and I can read the element&nbsp;information from <BR>
the some codes in DicomImageReadPrintTags.cxx. I just can not read the information<BR>
(0018,0072) as you told me at first this is sequence information. So I add the code<BR>
wrote to me in the email. <BR>
#inlcude "gdcmFile.h"<BR>
&nbsp;<BR>
void main()<BR>
{<BR>
...................<BR>
&nbsp;<BR>
gdcm::File *f = gdcm::File::New();<BR><BR>
........................<BR>
}<BR>
&nbsp;<BR>
it doen't work, So I don't know why. <BR>
Thank you again. <IMG height=19 alt="" src="http://gfx2.hotmail.com/mail/w3/ltr/emoticons/smile_teeth.gif" width=19><BR><BR>&gt; Date: Thu, 18 Dec 2008 09:51:16 +0100<BR>&gt; From: mathieu.malaterre@gmail.com<BR>&gt; To: gjtian@hotmail.com<BR>&gt; Subject: Re: [Insight-users] DICOM Header Info<BR>&gt; CC: insight-users@itk.org<BR>&gt; <BR>&gt; 'lo,<BR>&gt; <BR>&gt; I still do not understand why both of you are all that.<BR>&gt; <BR>&gt; Do you understand that gdcm is *part* of ITK ? Take for instance the<BR>&gt; two examples: ImageReadDicomSeriesWrite.cxx &amp;<BR>&gt; DicomImageReadPrintTags.cxx. I am sure if you turn BUILD_EXAMPLES:ON<BR>&gt; in your cmake config they'll build just fine *without* any system or<BR>&gt; external gdcm...<BR>&gt; <BR>&gt; Why make things simple when you can make them complicated ...<BR>&gt; <BR>&gt; <BR>&gt; On Thu, Dec 18, 2008 at 7:05 AM, TienGarry &lt;gjtian@hotmail.com&gt; wrote:<BR>&gt; &gt; Siqi suggest I forward my email to you.<BR>&gt; &gt;<BR>&gt; &gt; I compiled ITK,GDCM1.2.4 successfully, and I did not modify<BR>&gt; &gt; ITK CMakeList.txt.<BR>&gt; &gt; In ITK, I set ITK_USE_SYSTEM_GDCM OFF, as a summary, I compile ITK and<BR>&gt; &gt; GDCM1.2.4<BR>&gt; &gt; use all the default settings.<BR>&gt; &gt;<BR>&gt; &gt; This is my project CMakeList.txt.<BR>&gt; &gt;<BR>&gt; &gt; FIND_PACKAGE(ITK)<BR>&gt; &gt; IF (USE_ITK_FILE)<BR>&gt; &gt; INCLUDE (${USE_ITK_FILE})<BR>&gt; &gt; ELSE (USE_ITK_FILE)<BR>&gt; &gt; MESSAGE( FATAL_ERROR "This application requires ITK. One of these<BR>&gt; &gt; components is missing. Please verify configuration")<BR>&gt; &gt; ENDIF (USE_ITK_FILE)<BR>&gt; &gt; FIND_PACKAGE (GDCM)<BR>&gt; &gt; INCLUDE(${GDCM_USE_FILE})<BR>&gt; &gt;<BR>&gt; &gt; I just add one line in my proram.<BR>&gt; &gt;<BR>&gt; &gt; #include "gdcmFile.h"<BR>&gt; &gt; gdcm::File *f = gdcm::File::New();<BR>&gt; &gt;<BR>&gt; &gt; error C2039: 'New' : is not a member of 'gdcm::File'<BR>&gt; &gt; D:\ITKVTK\InsightToolkit-3.10.0\Utilities\gdcm\src\gdcmFile.h(111) : see<BR>&gt; &gt; declaration of 'gdcm::File'<BR>&gt; &gt; error C3861: 'New': identifier not found<BR>&gt; &gt;<BR>&gt; &gt; It seems that my project will search gdcmFile.h in the path of ITK.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; Date: Wed, 17 Dec 2008 16:14:09 +0100<BR>&gt; &gt;&gt; From: mathieu.malaterre@gmail.com<BR>&gt; &gt;&gt; To: gjtian@hotmail.com<BR>&gt; &gt;&gt; Subject: Re: [Insight-users] DICOM Header Info<BR>&gt; &gt;&gt; CC: insight-users@itk.org<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; 'lo<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; On Wed, Dec 17, 2008 at 2:51 PM, TienGarry &lt;gjtian@hotmail.com&gt; wrote:<BR>&gt; &gt;&gt; &gt; When I do it like your method, I will get the error:<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; error C2027: use of undefined type 'gdcm::File'<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; You need to #include "gdcmFile.h"<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; 2&gt;<BR>&gt; &gt;&gt; &gt; D:\ITKVTK\InsightToolkit-3.8.0\Utilities\gdcm\src\gdcmSerieHelper.h(32)<BR>&gt; &gt;&gt; &gt; :<BR>&gt; &gt;&gt; &gt; see declaration of 'gdcm::File'<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; I already installed the extern gdcm, and set ITK_USE_SYSTEM_ON, modified<BR>&gt; &gt;&gt; &gt; the cmakelist.txt<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Ok, if you decided to modify the cmakelist.txt, I can no longer be of<BR>&gt; &gt;&gt; any help. I do not support (nor encourage) manual modfication of<BR>&gt; &gt;&gt; cmakelist.txt. sorry.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; but I still get the error, when I include "gdcmFile.h", it indicates<BR>&gt; &gt;&gt; &gt; that<BR>&gt; &gt;&gt; &gt; the system will use the internal gdcmFile.h in<BR>&gt; &gt;&gt; &gt; D:\ITKVTK\InsightToolkit-3.8.0\Utilities\gdcm\src\ not in the external<BR>&gt; &gt;&gt; &gt; path.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; What is the issue with the current version shipped with ITK ? This is<BR>&gt; &gt;&gt; gdcm 1.2.4. You do not need any external gdcm for this simple task.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; 2cts<BR>&gt; &gt;&gt; --<BR>&gt; &gt;&gt; Mathieu<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; 更多热辣资讯尽在新版MSN首页! 立刻访问!<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Mathieu<BR><BR><br /><hr />MSN热搜榜全新升级,更多排行榜等着你! <a href=' http://top.msn.com.cn' target='_new'>立即查看!</a></body>
</html>