Simple best-reader selection.
More...
#include <mitkDICOMFileReaderSelector.h>
|
typedef std::list< DICOMFileReader::Pointer > | ReaderList |
|
Simple best-reader selection.
This class implements a process of comparing different DICOMFileReaders and selecting the reader with the minimal number of mitk::Images in its output.
The code found in this class can
- just be used to select a reader using this simple strategy
- be taken as an example of how to use DICOMFileReaders
To create a selection of potential readers, the class makes use of mitk::DICOMReaderConfigurator, i.e. DICOMFileReaderSelector also expects the configuration files/strings to be in the format expected by mitk::DICOMReaderConfigurator.
Two convenience methods load "default" configurations from compiled-in resources: LoadBuiltIn3DConfigs() and LoadBuiltIn3DnTConfigs().
Definition at line 47 of file mitkDICOMFileReaderSelector.h.
◆ ReaderList
◆ DICOMFileReaderSelector()
mitk::DICOMFileReaderSelector::DICOMFileReaderSelector |
( |
| ) |
|
|
protected |
◆ ~DICOMFileReaderSelector()
mitk::DICOMFileReaderSelector::~DICOMFileReaderSelector |
( |
| ) |
|
|
overrideprotected |
◆ AddConfig()
void mitk::DICOMFileReaderSelector::AddConfig |
( |
const std::string & |
xmlDescription | ) |
|
◆ AddConfigFile()
void mitk::DICOMFileReaderSelector::AddConfigFile |
( |
const std::string & |
filename | ) |
|
◆ AddConfigFromResource() [1/2]
void mitk::DICOMFileReaderSelector::AddConfigFromResource |
( |
const std::string & |
resourcename | ) |
|
|
protected |
◆ AddConfigFromResource() [2/2]
void mitk::DICOMFileReaderSelector::AddConfigFromResource |
( |
us::ModuleResource & |
resource | ) |
|
Add a configuration that is stored in the passed us::ModuleResourse. Configs can only be reset by instantiating a new DICOMFileReaderSelector.
◆ AddConfigsFromResources()
void mitk::DICOMFileReaderSelector::AddConfigsFromResources |
( |
const std::string & |
path | ) |
|
|
protected |
◆ AddFileReaderCanditate()
void mitk::DICOMFileReaderSelector::AddFileReaderCanditate |
( |
DICOMFileReader::Pointer |
reader | ) |
|
Add a whole pre-configured reader to the selection process.
◆ GetAllConfiguredReaders()
ReaderList mitk::DICOMFileReaderSelector::GetAllConfiguredReaders |
( |
| ) |
const |
Return all the DICOMFileReaders that are currently used for selection by this class. The readers returned by this method depend on what config files have been added earlier (or which of the built-in readers have been loaded)
◆ GetFirstReaderWithMinimumNumberOfOutputImages()
DICOMFileReader::Pointer mitk::DICOMFileReaderSelector::GetFirstReaderWithMinimumNumberOfOutputImages |
( |
| ) |
|
Execute the analysis and selection process. The first reader with a minimal number of outputs will be returned.
◆ GetInputFiles()
const StringList& mitk::DICOMFileReaderSelector::GetInputFiles |
( |
| ) |
const |
◆ LoadBuiltIn3DConfigs()
void mitk::DICOMFileReaderSelector::LoadBuiltIn3DConfigs |
( |
| ) |
|
Load 3D image creating configurations from the MITK module system (see us::Module::FindResources()). For a default set of configurations, look into the directory Resources of the DICOM module.
◆ LoadBuiltIn3DnTConfigs()
void mitk::DICOMFileReaderSelector::LoadBuiltIn3DnTConfigs |
( |
| ) |
|
Load 3D+t image creating configurations from the MITK module system (see us::Module::FindResources()). For a default set of configurations, look into the directory Resources of the DICOM module.
◆ mitkClassMacroItkParent()
◆ New()
static Pointer mitk::DICOMFileReaderSelector::New |
( |
| ) |
|
|
static |
◆ SetInputFiles()
void mitk::DICOMFileReaderSelector::SetInputFiles |
( |
StringList |
filenames | ) |
|
The documentation for this class was generated from the following file: