[Insight-users] DICOM Header Info

TienGarry gjtian at hotmail.com
Thu Dec 18 04:32:41 EST 2008


I can run the example correctly, and I can read the element information from 
the some codes in DicomImageReadPrintTags.cxx. I just can not read the information
(0018,0072) as you told me at first this is sequence information. So I add the code
wrote to me in the email. 
#inlcude "gdcmFile.h"
 
void main()
{
...................
 
gdcm::File *f = gdcm::File::New();
........................
}
 
it doen't work, So I don't know why. 
Thank you again. > Date: Thu, 18 Dec 2008 09:51:16 +0100> From: mathieu.malaterre at gmail.com> To: gjtian at hotmail.com> Subject: Re: [Insight-users] DICOM Header Info> CC: insight-users at itk.org> > 'lo,> > I still do not understand why both of you are all that.> > Do you understand that gdcm is *part* of ITK ? Take for instance the> two examples: ImageReadDicomSeriesWrite.cxx &> DicomImageReadPrintTags.cxx. I am sure if you turn BUILD_EXAMPLES:ON> in your cmake config they'll build just fine *without* any system or> external gdcm...> > Why make things simple when you can make them complicated ...> > > On Thu, Dec 18, 2008 at 7:05 AM, TienGarry <gjtian at hotmail.com> wrote:> > Siqi suggest I forward my email to you.> >> > I compiled ITK,GDCM1.2.4 successfully, and I did not modify> > ITK CMakeList.txt.> > In ITK, I set ITK_USE_SYSTEM_GDCM OFF, as a summary, I compile ITK and> > GDCM1.2.4> > use all the default settings.> >> > This is my project CMakeList.txt.> >> > FIND_PACKAGE(ITK)> > IF (USE_ITK_FILE)> > INCLUDE (${USE_ITK_FILE})> > ELSE (USE_ITK_FILE)> > MESSAGE( FATAL_ERROR "This application requires ITK. One of these> > components is missing. Please verify configuration")> > ENDIF (USE_ITK_FILE)> > FIND_PACKAGE (GDCM)> > INCLUDE(${GDCM_USE_FILE})> >> > I just add one line in my proram.> >> > #include "gdcmFile.h"> > gdcm::File *f = gdcm::File::New();> >> > error C2039: 'New' : is not a member of 'gdcm::File'> > D:\ITKVTK\InsightToolkit-3.10.0\Utilities\gdcm\src\gdcmFile.h(111) : see> > declaration of 'gdcm::File'> > error C3861: 'New': identifier not found> >> > It seems that my project will search gdcmFile.h in the path of ITK.> >> >> >> Date: Wed, 17 Dec 2008 16:14:09 +0100> >> From: mathieu.malaterre at gmail.com> >> To: gjtian at hotmail.com> >> Subject: Re: [Insight-users] DICOM Header Info> >> CC: insight-users at itk.org> >>> >> 'lo> >>> >> On Wed, Dec 17, 2008 at 2:51 PM, TienGarry <gjtian at hotmail.com> wrote:> >> > When I do it like your method, I will get the error:> >> >> >> > error C2027: use of undefined type 'gdcm::File'> >>> >> You need to #include "gdcmFile.h"> >>> >> > 2>> >> > D:\ITKVTK\InsightToolkit-3.8.0\Utilities\gdcm\src\gdcmSerieHelper.h(32)> >> > :> >> > see declaration of 'gdcm::File'> >> >> >> > I already installed the extern gdcm, and set ITK_USE_SYSTEM_ON, modified> >> > the cmakelist.txt> >>> >> Ok, if you decided to modify the cmakelist.txt, I can no longer be of> >> any help. I do not support (nor encourage) manual modfication of> >> cmakelist.txt. sorry.> >>> >>> >> > but I still get the error, when I include "gdcmFile.h", it indicates> >> > that> >> > the system will use the internal gdcmFile.h in> >> > D:\ITKVTK\InsightToolkit-3.8.0\Utilities\gdcm\src\ not in the external> >> > path.> >>> >> What is the issue with the current version shipped with ITK ? This is> >> gdcm 1.2.4. You do not need any external gdcm for this simple task.> >>> >> 2cts> >> --> >> Mathieu> >> >> > ________________________________> > 更多热辣资讯尽在新版MSN首页! 立刻访问!> > > > -- > Mathieu
_________________________________________________________________
新版手机MSN,新功能,新体验!满足您的多彩需求!
http://mobile.msn.com.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081218/994a4100/attachment.htm>


More information about the Insight-users mailing list