]> Creatis software - clitk.git/blob - vv/vvImageWarp.h
removed headers
[clitk.git] / vv / vvImageWarp.h
1 #ifndef vvImageWarp_h
2 #define vvImageWarp_h
3 #include "vvImage.h"
4 class QWidget;
5
6 /// Allows the computation of a warped image sequence and a difference image sequence, for the purpose of verifying registration results
7 class vvImageWarp
8 {
9 public:
10     ///Slicer manager containing the image sequence and deformation field, plus the index of the image used as a reference for the registration
11     vvImageWarp(vvImage::Pointer input,vvImage::Pointer vf,unsigned int ref_image,QWidget* parent);
12     ///Computes a warped sequence and a difference image sequence. Return false in case of error
13     bool ComputeWarpedImage();
14     vvImage::Pointer GetWarpedImage() {
15         return mWarpedImage;
16     }
17     vvImage::Pointer GetDiffImage() {
18         return mDiffImage;
19     }
20     vvImage::Pointer GetJacobianImage() {
21         return mJacobianImage;
22     }
23
24 protected:
25     template<unsigned int Dim, class PixelType> void Update_WithDimAndPixelType();
26     template<unsigned int Dim> void Update_WithDim();
27     unsigned int mRefImage;
28     vvImage::Pointer mWarpedImage;
29     vvImage::Pointer mDiffImage;
30     vvImage::Pointer mJacobianImage;
31     QWidget * parent_window;
32     vvImage::Pointer mInputImage;
33     vvImage::Pointer mVF;
34 };
35
36 #endif