aimsalgo  5.0.5
Neuroimaging image processing
block_matching.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2013 CEA
2  *
3  * This software and supporting documentation were developed by
4  * bioPICSEL
5  * CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6  * 18, route du Panorama
7  * 92265 Fontenay-aux-Roses
8  * France
9  */
10 
11 #ifndef AIMS_REGISTRATION_BLOCK_MATCHING_H
12 #define AIMS_REGISTRATION_BLOCK_MATCHING_H
13 
14 #include <aims/data/data.h>
15 namespace aims
16 {
17  class AffineTransrformation3d;
18 }
19 
20 template<class T>
22 {
23 public:
24  enum TypeSeuil {
28  TEST_HIGH_THRES
29  };
30  BlockMatching();
31  virtual ~BlockMatching() {}
32 
34  const AimsData<T>& test_orig);
36  {_initialisation = m;}
37  void setlevel_start(int lsta) {_level_start=lsta;}
38  void setlevel_stop(int lsto) {_level_stop=lsto;}
39  void settransfo(int t) {_transfo=t;}
40  void settailleBloc(int nx, int ny, int nz) {_tailleBloc=Point3d(nx,ny,nz);}
41  void setcutVar(double cv) {_cutVar=cv;}
42  void setstopVar(double sv) {_stopVar=sv;}
43  void setPkept(double pk) {_Pkept=pk;}
44  void setseuilCorrel(double sc) {_seuilCorrel=sc;}
45  void setseuils(T sbr, T shr, T sbt, T sht) {
46  _seuils[0]=sbr;
47  _seuils[1]=shr;
48  _seuils[2]=sbt;
49  _seuils[3]=sht;
50  }
51  void setitermax(int itm) {_itermax=itm;}
52  void setinfo(bool info) {_info=info;}
53 
54  AimsData<T> getresult() {return _result;}
55 
56 
57 private:
58  AimsData<T> _result;
59  bool _done;
60  aims::AffineTransformation3d _initialisation;
61  int _level_start;
62  int _level_stop;
63  int _transfo;
64  Point3d _tailleBloc;
65  double _cutVar;
66  double _stopVar;
67  double _Pkept;
68  double _seuilCorrel;
69  T _seuils[4];
70  int _itermax;
71  bool _info;
72 };
73 #endif
void setstopVar(double sv)
void settailleBloc(int nx, int ny, int nz)
void setlevel_stop(int lsto)
void setseuils(T sbr, T shr, T sbt, T sht)
void setlevel_start(int lsta)
void setinfo(bool info)
void setPkept(double pk)
AimsData< T > getresult()
virtual ~BlockMatching()
void setinitialisation(const aims::AffineTransformation3d &m)
void setcutVar(double cv)
void setseuilCorrel(double sc)
void setitermax(int itm)
void settransfo(int t)
reference_wrapper< T > ref(T &ref)