STIR  6.2.0
Public Member Functions | List of all members
stir::InvertAxis Class Reference

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)
 

Detailed Description

a utility class to "invert" an axis

Warning
this will reorder the voxel values without adjusting the geometric information.

Member Function Documentation

◆ invert_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().


The documentation for this class was generated from the following files: