Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::CollectionWriter Class Reference

#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)
 

Detailed Description

Definition at line 26 of file mitkCollectionWriter.h.

Member Typedef Documentation

Definition at line 30 of file mitkCollectionWriter.h.

Member Function Documentation

bool mitk::CollectionWriter::ExportCollectionToFolder ( DataCollection dataCollection,
std::string  xmlFile,
std::vector< std::string >  filter 
)
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

Parameters
dataCollection
xmlFile
filter- (optional) only items with names contained in this list are written, if list is empty all items are written
Returns

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().

bool mitk::CollectionWriter::ExportCollectionToFolder ( mitk::DataCollection dataCollection,
std::string  xmlFile 
)
static

Definition at line 211 of file mitkCollectionWriter.cpp.

bool mitk::CollectionWriter::FolderToXml ( std::string  folder,
std::string  collectionType,
std::string  xmlFile,
std::vector< std::string >  filter,
std::vector< std::string >  seriesNames 
)
static
bool mitk::CollectionWriter::SaveCollection ( mitk::DataCollection dataCollection,
std::vector< std::string >  filter,
std::string  xmlFile = "" 
)
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.

Parameters
dataCollection
filter
xmlFile
Returns

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.

bool mitk::CollectionWriter::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 
)
static

The documentation for this class was generated from the following files: