[Insight-users] Problem reading DICOM files

Gerenrot, Mikhail mikhail.gerenrot at stryker.com
Tue Nov 15 14:44:37 EST 2011


Try
      #include <gdcmFile.h>

      gdcm::File *aFile = new gdcm::File ();
      aFile->SetLoadMode(0);// see commments to SetLoadMode in gdcmDocument.h and definition of LodModeType in gdcmCommon.h
      aFile->SetFileName("C:\\myDicomFile");
      if(aFile->Load())
      {
            std::string imageNo = aFile->GetEntryValue(0x0020, 0x0013);
// etc.
      }


From: anirudh reddy [mailto:anirudh.sghs at gmail.com]
Sent: Monday, November 14, 2011 4:00 PM
To: Gerenrot, Mikhail
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Problem reading DICOM files

Hey can I get to know how to read a single Dicom image as input using ITK ...if possible can i get the code for it..

Thank you
On Thu, Nov 3, 2011 at 6:17 PM, Gerenrot, Mikhail <mikhail.gerenrot at stryker.com<mailto:mikhail.gerenrot at stryker.com>> wrote:
Hi ITK users,


We receive DICOM files from other sources and read them with ITK 3.10. Usually this works, but for some files ITK prematurely stops reading. Replacing our gdcmDocument.cxx with the one from ITK 3.20.1 did not make any difference.
Any help will be greatly appreciated.



Thank you all in advance,

Mike Gerenrot

_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



--
Anirudh Reddy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111115/41c8b25a/attachment.htm>


More information about the Insight-users mailing list