On Mon, 2009-03-30 at 16:44 +0100, Samuel Silva wrote:
> Hello!
> 
> I have recently explored MITK to read my data files which consist in a 
> sequence of DICOM files containing 12 volumes for different timepoints.
> 
> After some experimentation, with no satisfying results, I decided to 
> explore the MITK code in more detail and I have some change suggestions. 
> I ask the more experienced users to check if I am not missing anything 
> here.
> 
> In file mitkDataTreeNodeFactory.cpp I changed the line 
> nameGenerator->SetDirectory( ...) to below the code adding the series 
> restrictions. I did this because, when the method SetDirectory is called 
> the unique ID for each file is computed. As the series restrictions have 
> not been set yet this will only use the default restrictions imposed in 
> the MITK code. The effect is that if the user needs to set additional 
> restrictions (as was my case) to correctly separate the data in volumes 
> they will not have any effect as the UID for each file has already been 
> set.
> 
> By moving the line below the series restrictions setting all user set 
> restrictions will be considered.

Hi,

The person who committed this is not available right now, but I looked
into the ITK documentation and code.

We cannot change the calling order of SetDirectory and
AddSeriesRestrictions(), because SetDirectory will clear all information
provided by AddSeriesRestrictions(). However, we could change the order
of calling SetUseSeriesDetails and SetDirectory to sort them as ITK
suggests:

"If multiple volumes are being grouped as a single series for your dicom
objects, you may want to try calling ->SetUseSeriesDetails(true) prior
to calling SetDirectory().".

Could you try switching lines 261 and 258 of mitkDataTreeNodeFactory.cpp
and see if this solves your issue?

Right now we also have someone working on improving DICOM loading
capabilities because we know this does not work like expected all of the
time. To help him, could you perhaps describe in more detail:

- what do you try/want to do?
- what kind of files do you have?
- what does MITK/MainApp do?
- what would you expect to happen?

It could also be helpful if you provide us with your anonymized image
data.

Kind regards
Daniel

-- 
Dipl.-Inform. Med. Daniel Maleike          Phone: +49 6221 42 2326
Deutsches Krebsforschungszentrum           Im Neuenheimer Feld 280
Medical and Biological Informatics (E130)         69120 Heidelberg



------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to