Dear MITK developers and users,

recently I faced a problem loading a DICOM series. The series contained several CT volumes. The problem was, that when loading the series, the volumes were not split up, resulting in a stack of 3 similar volumes displayed next to each other in the viewing areas. Having a look at the DICOM tags, I found out that study and series UID were the same for all volumes. They differed in the acquisition number only. So far the DICOM reader in MITK does not consider the acquisition number for splitting up a series into its sub-volumes. To do so, I addded 2 lines of code to the mitk::DataTreeNodeFactory::ReadFileSeriesTypeDCM function in the mitkDataTreeNodeFactory.cpp file.

It would be nice, if you would consider this patch and integrate it into the MITK repository.

Best wishes,
Matthias

--
| Dipl.-Ing. Matthias Keil
|
| Fraunhofer Institute for Computer Graphics (IGD)
| Cognitive Computing & Medical Imaging
| Fraunhoferstraße 5, 64283 Darmstadt, Germany
|
| phone  : +49.6151.155.212
| fax    : +49.6151.155.480
| e-mail : [EMAIL PROTECTED]
| skype  : matthias.keil.office
| web    : http://www.igd.fraunhofer.de/~makeil

Index: Core/Algorithms/mitkDataTreeNodeFactory.cpp
===================================================================
--- Core/Algorithms/mitkDataTreeNodeFactory.cpp (revision 15615)
+++ Core/Algorithms/mitkDataTreeNodeFactory.cpp (working copy)
@@ -255,6 +255,10 @@
 
   // Get the DICOM filenames from the directory
   NameGeneratorType::Pointer nameGenerator = NameGeneratorType::New();
+  // add more criteria to distinguish between different series
+  nameGenerator->SetUseSeriesDetails( true );
+  // add acquisition number
+  nameGenerator->AddSeriesRestriction( "0020|0012" );
   nameGenerator->SetDirectory( dir.c_str() );
 
   const StringContainer & seriesUID = nameGenerator->GetSeriesUIDs();
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to