18 #ifndef sitkPermuteAxesImageFilter_h
19 #define sitkPermuteAxesImageFilter_h
66 static const unsigned int DefaultOrder[3];
73 SITK_RETURN_SELF_TYPE_HEADER
SetOrder (
const std::vector<unsigned int> & Order ) { this->m_Order = Order;
return *
this; }
78 std::vector<unsigned int>
GetOrder()
const {
return this->m_Order; }
80 std::string
GetName()
const {
return std::string (
"PermuteAxesImageFilter"); }
83 std::string ToString()
const;
91 Image Execute (
const Image& image1,
const std::vector<unsigned int> & order );
98 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
99 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Image PermuteAxes(const Image &image1, const std::vector< unsigned int > &order=std::vector< unsigned int >(&itk::simple::PermuteAxesImageFilter::DefaultOrder[0],&itk::simple::PermuteAxesImageFilter::DefaultOrder[3]))
Permutes the image axes according to a user specified order.
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
std::vector< unsigned int > m_Order
std::string GetName() const
static const unsigned int DefaultOrder[3]
PermuteAxesImageFilter Self
NonLabelPixelIDTypeList PixelIDTypeList
Self & SetOrder(const std::vector< unsigned int > &Order)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The main Image class for SimpleITK.
Permutes the image axes according to a user specified order.
std::vector< unsigned int > GetOrder() const
The base interface for SimpleITK filters that take one input image.