Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkCollectionWriter.h>
Public Types | |
typedef float | TensorScalar |
Static Public Member Functions | |
static bool | ExportCollectionToFolder (DataCollection *dataCollection, std::string xmlFile, std::vector< std::string > filter) |
ExportCollectionToFolder. More... | |
static bool | ExportCollectionToFolder (DataCollection *dataCollection, std::string xmlFile) |
static bool | SaveCollection (DataCollection *dataCollection, std::vector< std::string > filter, std::string xmlFile="") |
SaveCollection - Stores data collection at original location. More... | |
static bool | FolderToXml (std::string folder, std::string collectionType, std::string xmlFile, std::vector< std::string > filter, std::vector< std::string > seriesNames) |
static bool | SingleFolderToXml (std::string folder, std::string xmlFile, std::vector< std::string > filter, std::vector< std::string > seriesNames, bool longDate=true, int skipUntil=0, float months=0) |
Definition at line 26 of file mitkCollectionWriter.h.
typedef float mitk::CollectionWriter::TensorScalar |
Definition at line 30 of file mitkCollectionWriter.h.
|
static |
ExportCollectionToFolder.
Creates an XML file and stores all data in the same folder as the xml file (creating sub-folders for sub-collections)
Naming Conventions (Neccessary for proper saving of these images): DWI - Diffusion Weighted Images DTI - Diffusion Tensor Images FIB - Fiber Bundles
dataCollection | |
xmlFile | |
filter | - (optional) only items with names contained in this list are written, if list is empty all items are written |
Definition at line 76 of file mitkCollectionWriter.cpp.
References mitk::CastToItkImage(), COLLECTION, DATA, FILEPATH, mitk::DataCollection::GetData(), mitk::DataCollection::GetDataFilePath(), mitk::CoreObjectFactory::GetInstance(), mitk::DataCollection::GetMitkImage(), mitk::DataCollection::GetName(), mitk::Image::GetPixelType(), mitk::PixelType::GetPixelTypeAsString(), mitk::DataCollection::IndexToName(), ITEM, LINK, MITK_ERROR, MITK_INFO, NAME, mitk::New(), mitk::IOUtil::SaveImage(), mitk::DataCollection::Size(), and SUBCOLLECTION.
Referenced by main().
|
static |
Definition at line 211 of file mitkCollectionWriter.cpp.
|
static |
Definition at line 366 of file mitkCollectionWriter.cpp.
References COLLECTION, DATA, FILEPATH, mitk::CollectionReader::GenerateFileLists(), GetDate(), GetName(), ITEM, LINK, MITK_INFO, MITK_WARN, NAME, mitk::CollectionReader::SanitizeFileList(), and SUBCOLLECTION.
|
static |
SaveCollection - Stores data collection at original location.
Writes the collection back to the files given in the original XML file. New data items are stored into the default location, which is relative to the XML file.
If a XML file is provided the files are stored as stated above with the differences that a new XML file is generated and new files are saved relative to the newly generated xml.
dataCollection | |
filter | |
xmlFile |
Definition at line 217 of file mitkCollectionWriter.cpp.
References mitk::CastToItkImage(), COLLECTION, DATA, FILEPATH, mitk::DataCollection::GetData(), mitk::DataCollection::GetDataFilePath(), mitk::CoreObjectFactory::GetInstance(), mitk::DataCollection::GetMitkImage(), mitk::DataCollection::GetName(), mitk::Image::GetPixelType(), mitk::PixelType::GetPixelTypeAsString(), mitk::DataCollection::GetXMLFile(), mitk::DataCollection::IndexToName(), ITEM, LINK, MITK_ERROR, MITK_INFO, NAME, mitk::New(), mitk::IOUtil::SaveImage(), mitk::DataCollection::Size(), and SUBCOLLECTION.
|
static |
Definition at line 433 of file mitkCollectionWriter.cpp.
References COLLECTION, DATA, FILEPATH, mitk::CollectionReader::GenerateFileLists(), GetDate(), GetName(), ITEM, LINK, NAME, mitk::CollectionReader::SanitizeFileList(), and SUBCOLLECTION.