plastimatch
|
The Geometry_chooser class provides a convenient method for choosing the right output geometry for a function. More...
#include <geometry_chooser.h>
Public Member Functions | |
Geometry_chooser () | |
~Geometry_chooser () | |
Inputs | |
void | set_reference_image (const char *image_fn) |
Set the reference image. The geometry will be from the specified filename. | |
template<class T > | |
void | set_reference_image (const T &image) |
Set the reference image as an ITK image. | |
void | set_compare_image (const char *image_fn) |
Set the compare image. The image will be loaded from the specified filename. | |
void | set_compare_image (const UCharImageType::Pointer image) |
Set the compare image as an ITK image. | |
void | set_compare_image (const FloatImageType::Pointer image) |
void | set_fixed_image (const char *image_fn) |
Set the fixed image. The image will be loaded from the specified filename. | |
void | set_fixed_image (const std::string &image_fn) |
template<class T > | |
void | set_fixed_image (const T &image) |
Set the fixed image as an ITK image. | |
void | set_fixed_image (const Plm_image_header pih) |
Set the fixed image as a Plm_image_header. | |
void | set_dim (const plm_long dim[3]) |
Set the image dimension (number of voxels) manually. | |
void | set_origin (const float origin[3]) |
Set the image origin manually. | |
void | set_spacing (const float spacing[3]) |
Set the image spacing manually. | |
void | set_direction_cosines (const Direction_cosines &direction_cosines) |
Set the image direction cosines manually. | |
Outputs | |
const Plm_image_header * | get_geometry () |
Return the best fitting geometry. | |
Public Attributes | |
Geometry_chooser_private * | d_ptr |
The Geometry_chooser class provides a convenient method for choosing the right output geometry for a function.
The output geometry is selected based on preferential selection from a set of possible inputs which might or might not be available. In order of preference, the geometry is set according to:
In the last case, the geometry can be expanded to also include the union of the regions spanned by another image (called the "compare image")
Geometry_chooser::Geometry_chooser | ( | ) |
Geometry_chooser::~Geometry_chooser | ( | ) |
const Plm_image_header * Geometry_chooser::get_geometry | ( | ) |
Return the best fitting geometry.
void Geometry_chooser::set_compare_image | ( | const char * | image_fn | ) |
Set the compare image. The image will be loaded from the specified filename.
void Geometry_chooser::set_compare_image | ( | const FloatImageType::Pointer | image | ) |
void Geometry_chooser::set_compare_image | ( | const UCharImageType::Pointer | image | ) |
Set the compare image as an ITK image.
void Geometry_chooser::set_dim | ( | const plm_long | dim[3] | ) |
Set the image dimension (number of voxels) manually.
void Geometry_chooser::set_direction_cosines | ( | const Direction_cosines & | direction_cosines | ) |
Set the image direction cosines manually.
void Geometry_chooser::set_fixed_image | ( | const char * | image_fn | ) |
Set the fixed image. The image will be loaded from the specified filename.
void Geometry_chooser::set_fixed_image | ( | const Plm_image_header | pih | ) |
Set the fixed image as a Plm_image_header.
void Geometry_chooser::set_fixed_image | ( | const std::string & | image_fn | ) |
void Geometry_chooser::set_fixed_image | ( | const T & | image | ) |
Set the fixed image as an ITK image.
void Geometry_chooser::set_origin | ( | const float | origin[3] | ) |
Set the image origin manually.
void Geometry_chooser::set_reference_image | ( | const char * | image_fn | ) |
Set the reference image. The geometry will be from the specified filename.
void Geometry_chooser::set_reference_image | ( | const T & | image | ) |
Set the reference image as an ITK image.
void Geometry_chooser::set_spacing | ( | const float | spacing[3] | ) |
Set the image spacing manually.
Geometry_chooser_private* Geometry_chooser::d_ptr |