Hi all,

since I am porting my old mitk 0.12 functionalities to 0.14 I need to 
figure out a way how to add my file reader classes. (itk based, not 
mitkIOAdapter based)

In the old verion it just worked like this:

Register the factory of my own reader to the ObjectFactoryBase class and 
it would be ready to read. I did this in the constructor of my 
functionality.

itk::ObjectFactoryBase::RegisterFactory( itk::MyImageIOFactory::New() );

If I do the same in the new version of mitk it still seems to register 
but nothing happens if I load any of my files. Afer some time of 
debugging I still can't seem to find a solution for this problem.

While loading a file the function ObjectFactoryBase::CreateAllInstance() 
accesses the member ObjectFactoryBase::m_RegisteredFactories where all 
itk file readers are present e.g. itkPNGImageIO except my newly registered.

In addition the dicom file checking in 
mitkDataNodeFactory::GenerateData() was changed from text based file 
extension checking to this->ReadFileSeriesTypeDCM(); which effectively 
is tag based. Since some of the readers I use also have dicom like tags, 
they are not going to work since those files will always be treated as 
dicom files making things even more problematic.

Maybe somebody on the mailinglist can point me in the right direction 
how to add/register itk based file readers to mitk.

Best regards,
Matthias

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to