File: BrainModelSurfaceFlatHexagonalSubsample.h

package info (click to toggle)
caret 5.6.4~dfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 31,904 kB
  • ctags: 28,901
  • sloc: cpp: 378,050; python: 6,718; ansic: 5,507; makefile: 333; sh: 46
file content (45 lines) | stat: -rw-r--r-- 1,571 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

#ifndef __BRAIN_MODEL_SURFACE_FLAT_HEXAGONAL_SUBSAMPLE_H__
#define __BRAIN_MODEL_SURFACE_FLAT_HEXAGONAL_SUBSAMPLE_H__

#include "BrainModelAlgorithm.h"

class BrainModelSurface;

/// Class that creates a hexagonal subsample of the flat surface
class BrainModelSurfaceFlatHexagonalSubsample : public BrainModelAlgorithm {
   public:
      /// Constructor
      BrainModelSurfaceFlatHexagonalSubsample(BrainSet* brainSetIn,
                                              BrainModelSurface* fiducialSurfaceIn,
                                              BrainModelSurface* flatSurfaceIn,
                                              const int numberOfResamplingTiles = -1);
                                              
      /// Destructor
      ~BrainModelSurfaceFlatHexagonalSubsample();
      
      /// create the sub sampled surface
      void execute() throw (BrainModelAlgorithmException);
      
      /// get the subsampled brain set
      BrainSet* getSubsampledBrainSet();
      
   protected:
      /// fiducial of surface that is to be resampled
      BrainModelSurface* fiducialSurfaceForResampling;
      
      /// flat surface that is to be resampled
      BrainModelSurface* flatSurfaceForResampling;
      
      /// the subsampled brain set
      BrainSet* subSampBrainSet;
      
      /// number of resampling tiles goal
      int numberOfResamplingTiles;
      
      /// user retrieved the create brain set so destructor does not need to delete it
      bool brainSetRetrieved;
};

#endif //  __BRAIN_MODEL_SURFACE_FLAT_HEXAGONAL_SUBSAMPLE_H__