Hi Keno,

thanks for your fast reply.

I think I can currently work with the extensions. I'm looking forward to your 
redesign :-).

Cheers,
Sarah

-----Ursprüngliche Nachricht-----
Von: März, Keno 
Gesendet: Donnerstag, 4. Juli 2013 16:28
An: mitk-users@lists.sourceforge.net
Cc: Mang, Sarah
Betreff: AW: [mitk-users] how to find available image readers

Hi Sarah,

The Reader/Writer System is currently being redesigned, we expect to include 
the new code in the next release. If your changes are not urgent, I would 
advise to wait until the new features are integrated, as the Reader handling 
will be much simpler. Unfortunately, getting a list of readers is very 
difficult currently. If it helps, you can retrieve a list of supported File 
Extensions.

mitk::CoreObjectFactory::GetInstance()->GetFileExtensions(); // This internally 
merges Reader lists. Must be called first as a workaround.
std::multimap<std::string, std::string> fileExtensionMap = 
mitk::CoreObjectFactory::GetInstance()->GetFileExtensionsMap();

You may then iterate over the supported extensions.

If this does not solve the problem and you are unable to wait, I'll look into a 
workaround for you. In this case, please tell me if you compile MITK yourself.

Best Keno

Message: 1
Date: Thu, 4 Jul 2013 13:17:50 +0200
From: "Mang, Sarah" <s.m...@dkfz-heidelberg.de>
Subject: [mitk-users] how to find available image readers
To: "'mitk-users@lists.sourceforge.net'"
        <mitk-users@lists.sourceforge.net>
Message-ID:
        
<f9cbef185bb9b140a1a9edcb8d888540c44fa95...@dkfzex01.ad.dkfz-heidelberg.de>
        
Content-Type: text/plain; charset="us-ascii"

Hi there,

I am trying to determine which image readers are registered with MITK at a 
given moment. For file writers there is this convenient function 
mitk::CoreObjectFactory::GetInstance()->GetFileWriters() Does something similar 
exist for readers?

Regards,
Sarah

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to