ANIMA  4.0
animaLowMemLocalPatchCovarianceDistanceBridge.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace anima
7 {
8 
10 {
11 public:
15 
18  typedef itk::Image <unsigned char,3> MaskImageType;
19 
22 
23  std::string GetNameOfClass() {return "LowMemoryLocalPatchCovarianceDistanceBridge";}
24 
25  void SetComputationMask(std::string &cMask);
26 
27  void SetDatabaseNames(std::string &fileList)
28  {
29  m_DatabaseImages->SetFileNames(fileList);
30  }
31 
32  void SetOutputMeanName(std::string &pref) {m_OutputMeanName = pref;}
33  void SetOutputStdName(std::string &pref) {m_OutputStdName = pref;}
34 
35  void SetNbSplits(unsigned int nbSplits) {m_NbSplits = nbSplits;}
36  void SetNumberOfWorkUnits(unsigned int nbT) {m_NumThreads = nbT;}
37 
38  void SetPatchHalfSize(unsigned int patchHalf) {m_PatchHalfSize = patchHalf;}
39 
40  void Update(int specificSplitToDo = -1, bool genOutputDescriptionData = false);
41  void BuildAndWrite(OutputImageType *tmpIm, std::string resName, OutputImageType::RegionType finalROI);
42 
43 private:
44  std::string m_OutputMeanName;
45  std::string m_OutputStdName;
46 
47  unsigned int m_NbSplits;
48  unsigned int m_NumThreads;
49 
50  unsigned int m_PatchHalfSize;
51 
52  ImageSplitterType *m_DatabaseImages;
53  MaskImageType::Pointer m_ComputationMask;
54 };
55 
56 } // end namespace anima
void Update(int specificSplitToDo=-1, bool genOutputDescriptionData=false)
LocalPatchCovarianceDistanceImageFilter< double >::InputImageType InputImageType
void SetFileNames(std::string &inputFileList)
LocalPatchCovarianceDistanceImageFilter< double >::OutputImageType OutputImageType
void BuildAndWrite(OutputImageType *tmpIm, std::string resName, OutputImageType::RegionType finalROI)
anima::LocalPatchCovarianceDistanceImageFilter< double > MainFilterType
LocalPatchCovarianceDistanceImageFilter< double >::OutputImageRegionType OutputImageRegionType