Hi,

ok, the path is not added to the node when loading dicom series, because 
in DataNodeFactory.cpp

00170 this->SetDefaultCommonProperties( node );


is only executed when the input image is not a dicom series.

In order to also have the path of a dicom series added to the loaded 
node, I added

       // path
       mitk::StringProperty::Pointer pathProp = 
mitk::StringProperty::New( itksys::SystemTools::GetFilenamePath( 
m_FileName ) );
       node->SetProperty( StringProperty::PATH, pathProp );

to function

ReadFileSeriesTypeDCM();

after line

00265

in DataNodeFactory.cpp

Could you please have a look if this could also be added to the Git 
version of mitk? I think it makes sense to add the path as a property 
for all input formats.

Thank you!

Marius

On 02.05.2011 18:17, Marius Erdt wrote:
> Hi,
>
> I wonder why the "path" property is not added to nodes if the volume 
> was loaded from a set of dicom images. For example, if I load a .pic 
> or .mhd file, the path to the folder that contains the file is added 
> as a property to the DataNode.
>
> Is this intended? If yes, is there a way to change this, e.g. in the 
> file reader?
>
> Thank you!
>
> Marius


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to