Hi,

I try to load DICOM images with DCMTK and perfom computation & display
results with MITK objects.

I thought using a DcmFileFormat or DicomImage object, and then connect it
to a mitkImage. However my first tests were failures.

My code:

mitk::Image::Pointer m_ResultImage;
mitk::DataNode::Pointer m_ResultNode;
mitk::StandaloneDataStorage::Pointer m_DataStorage;

DcmFileFormat* dfile = new DcmFileFormat();
OFCondition cond;

                StringContainer fileNameList;
                for (int i = 0; i < fileList.size(); ++i)
                {
                        cond = 
dfile->loadFile(fileList.at(i).toStdString().c_str()) ;
                }

                DicomImage* test = new
DicomImage(dfile->getDataset(),EXS_LittleEndianImplicit);

                m_ResultImage = mitk::Image::New();
                m_ResultImage->SetVolume(test);

                m_ResultNode->SetData(m_ResultImage);

                m_DataStorage->Add(m_ResultNode);

How to connect DCMTK objects with MITK objects ?
Is that possible?

Thank you for your answers.

Kevin B.

-- 
Kévin Bianchi
[email protected]


KEOSYS Company
1, Impasse Auguste Fresnel - ZA du Moulin Neuf
BP 60227 - 44815 Saint Herblain Cedex
Tel :  02 40 92 26 13
Fax : 02 40 92 26 14
www.keosys.com

This e-mail is intended only for use of the individual or entity to which
it is
addressed and may contain information that is privileged, confidential and
exempt
from disclosure under applicable law. Any use, distribution or copying of
this
e-mail communication is strictly prohibited if you are not the addressee.
If so,
please notify us immediately by e-mail, and destroy the original.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to