plastimatch
Loading...
Searching...
No Matches
geometry_chooser.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _geometry_chooser_h_
5#define _geometry_chooser_h_
6
7#include "plmutil_config.h"
8#include "itk_image_type.h"
9#include "plm_int.h"
10
12class Geometry_chooser_private;
14
31public:
34public:
35 Geometry_chooser_private *d_ptr;
36public:
37
40
42 void set_reference_image (const char* image_fn);
44 template<class T> void set_reference_image (const T& image);
47 void set_compare_image (const char* image_fn);
49 void set_compare_image (const UCharImageType::Pointer image);
50 void set_compare_image (const FloatImageType::Pointer image);
53 void set_fixed_image (const char* image_fn);
54 void set_fixed_image (const std::string& image_fn);
56 template<class T> void set_fixed_image (const T& image);
58 void set_fixed_image (const Plm_image_header pih);
60 void set_dim (const plm_long dim[3]);
62 void set_origin (const float origin[3]);
64 void set_spacing (const float spacing[3]);
66 void set_direction_cosines (const Direction_cosines& direction_cosines);
68
71
74};
75
76#endif
Definition direction_cosines.h:23
const Plm_image_header * get_geometry()
Return the best fitting geometry.
Definition geometry_chooser.cxx:162
void set_dim(const plm_long dim[3])
Set the image dimension (number of voxels) manually.
Definition geometry_chooser.cxx:133
void set_direction_cosines(const Direction_cosines &direction_cosines)
Set the image direction cosines manually.
Definition geometry_chooser.cxx:154
void set_compare_image(const char *image_fn)
Set the compare image. The image will be loaded from the specified filename.
Definition geometry_chooser.cxx:68
void set_fixed_image(const char *image_fn)
Set the fixed image. The image will be loaded from the specified filename.
Definition geometry_chooser.cxx:91
void set_origin(const float origin[3])
Set the image origin manually.
Definition geometry_chooser.cxx:140
Geometry_chooser()
Definition geometry_chooser.cxx:41
Geometry_chooser_private * d_ptr
Definition geometry_chooser.h:35
void set_reference_image(const char *image_fn)
Set the reference image. The geometry will be from the specified filename.
Definition geometry_chooser.cxx:52
void set_spacing(const float spacing[3])
Set the image spacing manually.
Definition geometry_chooser.cxx:147
The Plm_image_header class defines the geometry of an image. It defines image origin,...
Definition plm_image_header.h:24
#define PLMUTIL_API
Definition plmutil_config.h:26