]> Creatis software - clitk.git/blob - vv/vvDeformableRegistration.h
removed headers
[clitk.git] / vv / vvDeformableRegistration.h
1 #ifndef VV_DEFORMABLE_REGISTRATION
2 #define VV_DEFORMABLE_REGISTRATION
3 #include <QMutex>
4 #include <QString>
5 class string;
6 class QThread;
7 class vvImage;
8 #include "vvImage.h"
9
10 class vvDeformableRegistration : public QThread
11 {
12 public:
13     vvDeformableRegistration(vvImage::Pointer image,unsigned int ref,\
14                              unsigned int iter,  unsigned int nthread,double a, double s,\
15                              std::string output_f,unsigned int stop);
16     unsigned int getProgress();
17     void abort();
18     QMutex progress_mutex;
19     void run();
20     vvImage::Pointer getOutput() {
21         return mOutput;
22     }
23 protected:
24     vvImage::Pointer mImage;
25     vvImage::Pointer  mOutput;
26     unsigned int refimage,nb_iter,n_thread,progress,stop;
27     double alpha,sigma;
28     std::string output_filename;
29     bool aborted;
30     void cleanup(int);
31     void partial_run(int,int,int,std::string);
32     ///Temporary path, specific to the current instance of vv
33     QString mTempPath;
34 };
35
36
37 #endif
38