18 #ifndef sitkRegionOfInterestImageFilter_h
19 #define sitkRegionOfInterestImageFilter_h
81 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
85 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetIndex (
const std::vector<int> &
Index ) { this->m_Index = Index;
return *
this; }
94 std::vector<int>
GetIndex()
const {
return this->m_Index; }
96 std::string
GetName()
const {
return std::string (
"RegionOfInterestImageFilter"); }
99 std::string ToString()
const;
107 Image Execute (
const Image& image1,
const std::vector<unsigned int> & size,
const std::vector<int> & index );
114 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
115 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
std::string GetName() const
std::vector< unsigned int > GetSize() const
std::vector< unsigned int > m_Size
Image RegionOfInterest(const Image &image1, const std::vector< unsigned int > &size=std::vector< unsigned int >(3, 1), const std::vector< int > &index=std::vector< int >(3, 0))
Extract a region of interest from the input image.
Self & SetIndex(const std::vector< int > &Index)
Self & SetSize(const std::vector< unsigned int > &Size)
std::vector< int > m_Index
Extract a region of interest from the input image.
NonLabelPixelIDTypeList PixelIDTypeList
std::vector< int > GetIndex() const
The main Image class for SimpleITK.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
RegionOfInterestImageFilter Self
The base interface for SimpleITK filters that take one input image.