1 #ifndef __MyGridOnImageGenerator_h__
2 #define __MyGridOnImageGenerator_h__
13 #include "vtkImageData.h"
15 //------------------------------------------------------------------------------
16 // Creates a grid over an image. It is usually used to visualized the deformation
17 // field after a non-rigid registration. The contrast in the final image is based
18 // on the maximum and minimum values over the entire image.
19 //------------------------------------------------------------------------------
20 class MyGridOnImageGenerator
24 //------------------------------------------------------------
26 //------------------------------------------------------------
30 * @param nImage is the input image
31 * @param nScpX is the spacing in X direction
32 * @param nScpY is the spacing in Y direction
33 * @param nScpZ is the spacing in Z direction
35 MyGridOnImageGenerator(vtkImageData* nImage, double nScpX, double nScpY, double nScpZ);
37 //------------------------------------------------------------
39 //------------------------------------------------------------
41 ~MyGridOnImageGenerator();
43 //------------------------------------------------------------
45 //------------------------------------------------------------
48 * Method that changes the spacing in X
49 * param nScpX the new value for the spacing in X
51 void setScpX(double nScpX);
54 * Method that changes the spacing in Y
55 * param nScpY the new value for the spacing in Y
57 void setScpY(double nScpY);
61 * Method that changes the spacing in Z
62 * param nScpZ the new value for the spacing in Z
64 void setScpZ(double nScpZ);
67 * Method that changes the input image
68 * @param nImage is the new image
70 void setImage(vtkImageData* nImage);
73 * Method that generates the image with the grid
74 * @return The image with the grid
76 vtkImageData* getGridOnImage( );
80 //------------------------------------------------------------
82 //------------------------------------------------------------
85 //------------------------------------------------------------
87 //------------------------------------------------------------
90 * Spcing in X directioin
95 * Spcing in Y directioin
100 * Spcing in Z directioin
110 //------------------------------------------------------------------------------