plastimatch
Loading...
Searching...
No Matches
xf_invert.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _xf_invert_h_
5#define _xf_invert_h_
6
7#include "plmutil_config.h"
8#include "itk_image_type.h"
9
10class Xf_invert_private;
11class Xform;
12
14public:
15 Xf_invert ();
16 ~Xf_invert ();
17public:
18 Xf_invert_private *d_ptr;
19public:
20
23
25 void set_input_xf (const char* xf_fn);
28 void set_input_vf (const DeformationFieldType::Pointer vf);
32 void set_fixed_image (const char* image_fn);
35 void set_fixed_image (const FloatImageType::Pointer image);
38 void set_dim (const plm_long dim[3]);
41 void set_origin (const float origin[3]);
44 void set_spacing (const float spacing[3]);
47 void set_direction_cosines (const float direction_cosines[9]);
50 void set_iterations (int iterations);
52
55
56 void run ();
58
61
62 const Xform* get_output ();
64
65protected:
66 void run_invert_itk ();
67 void run_invert_vf ();
68};
69
70#endif
const Xform * get_output()
Return the inverse xform.
Definition xf_invert.cxx:269
Xf_invert_private * d_ptr
Definition xf_invert.h:18
void set_input_vf(const DeformationFieldType::Pointer vf)
Set the input vector field to be inverted as an ITK image.
Definition xf_invert.cxx:58
void set_fixed_image(const char *image_fn)
Set the geometry of the output vector field to match another image. The image will be loaded from the...
Definition xf_invert.cxx:66
void set_dim(const plm_long dim[3])
Set the image dimension (number of voxels) of the output vector field.
Definition xf_invert.cxx:79
void set_direction_cosines(const float direction_cosines[9])
Set the image direction cosines of the output vector field.
Definition xf_invert.cxx:97
void set_iterations(int iterations)
Set the number of iterations to run the inversion routine (default is 20 iterations).
Definition xf_invert.cxx:104
void run_invert_itk()
Definition xf_invert.cxx:120
void set_origin(const float origin[3])
Set the image origin of the output vector field.
Definition xf_invert.cxx:85
void set_input_xf(const char *xf_fn)
Set the transform to be inverted. The transform will be loaded from the specified filename.
Definition xf_invert.cxx:48
void set_spacing(const float spacing[3])
Set the image spacing of the output vector field.
Definition xf_invert.cxx:91
Xf_invert()
Definition xf_invert.cxx:39
void run()
Compute inverse vector field.
Definition xf_invert.cxx:110
void run_invert_vf()
Definition xf_invert.cxx:153
The Xform class is an abstraction that encapsulates a simple transform, either native format (B-splin...
Definition xform.h:66
#define PLMUTIL_API
Definition plmutil_config.h:26