Medical Imaging Interaction Toolkit  2018.4.99-eed36131
Medical Imaging Interaction Toolkit
mitkPAIOUtil.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 MITKPHOTOACOUSTICIO_H
14 #define MITKPHOTOACOUSTICIO_H
15 
17 
18 #include <map>
19 #include <mutex>
20 #include <thread>
21 
22 //Includes for smart pointer usage
23 #include "mitkCommon.h"
24 #include "itkLightObject.h"
25 
26 #include "mitkPAVolume.h"
29 
30 namespace mitk {
31  namespace pa {
33  {
34  public:
35 
36  struct Position
37  {
38  int x, z;
39 
40  bool operator <(const Position& rhs) const
41  {
42  return (x < rhs.x || ((x == rhs.x) && z < rhs.z));
43  }
44  };
45 
61  static std::map<Position, Volume::Pointer> LoadFluenceContributionMaps(
62  std::string foldername, double blur, int* progress, bool log10 = false);
63 
70  static Volume::Pointer LoadNrrd(std::string filename, double sigma = 0);
71 
75  static int GetNumberOfNrrdFilesInDirectory(std::string directory);
76 
80  static std::vector<std::string> GetListOfAllNrrdFilesInDirectory(
81  std::string directory, bool keepFileFormat = false);
82 
87  static bool DoesFileHaveEnding(std::string const &fullString, std::string const &ending);
88 
93  static std::vector<std::string> GetAllChildfoldersFromFolder(std::string folderPath);
94 
98  static InSilicoTissueVolume::Pointer LoadInSilicoTissueVolumeFromNrrdFile(std::string filePath);
99 
109  static FluenceYOffsetPair::Pointer LoadFluenceSimulation(std::string fluenceSimulation);
110 
111  private:
112 
113  IOUtil();
114  ~IOUtil();
115  };
116  }
117 }
118 #endif // MITKPHOTOACOUSTICIO_H
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two var lists and returns true if the first list&#39;s first item is lower than the second one&#39;s...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKPHOTOACOUSTICSLIB_EXPORT