Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkCollectionWriter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITK_COLLECTION_WRITER_H
14 #define MITK_COLLECTION_WRITER_H
15 
16 //#include "mitkCommon.h"
17 #include "mitkDataCollection.h"
18 #include "mitkCollectionReader.h"
20 
21 namespace mitk {
23  {
24  public:
25 
26  typedef float TensorScalar;
43  static bool ExportCollectionToFolder(DataCollection* dataCollection, std::string xmlFile , std::vector<std::string> filter);
44 
45  static bool ExportCollectionToFolder(DataCollection* dataCollection, std::string xmlFile);
46 
62  static bool SaveCollection(DataCollection* dataCollection, std::vector<std::string> filter, std::string xmlFile = "");
63 
64  static bool FolderToXml(std::string folder, std::string collectionType, std::string xmlFile, std::vector<std::string> filter, std::vector<std::string> seriesNames);
65 
66  // GTV last entry in filter list, this item will be made to TARGET
67  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);
68 
69  protected:
70 
71  private:
72 
73  static size_t GetIndexForinXMonths(CollectionReader::FileListType fileList, float months, size_t curIndex, std::vector<std::string> filter);
74  };
75 } // namespace mitk
76 
77 #endif /* MITK_COLLECTION_WRITER_H */
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< std::vector< std::string > > FileListType
#define MITKDATACOLLECTION_EXPORT