STIR
6.2.0
|
a utility class to "invert" an axis More...
#include "stir/spatial_transformation/InvertAxis.h"
Public Member Functions | |
void | invert_axis (DiscretisedDensity< 3, float > &inverted_image, const DiscretisedDensity< 3, float > &input_image, const std::string &axis_name) |
transform the image More... | |
int | invert_axis_index (const int input_index, const int size, const std::string &axis_name) |
a utility class to "invert" an axis
void stir::InvertAxis::invert_axis | ( | DiscretisedDensity< 3, float > & | inverted_image, |
const DiscretisedDensity< 3, float > & | input_image, | ||
const std::string & | axis_name | ||
) |
transform the image
axis_name has to be x, y, z. Otherwise error() will be called.
References stir::error(), stir::VectorWithOffset< T >::get_max_index(), and stir::VectorWithOffset< T >::get_min_index().