18 #ifndef sitkRegionOfInterestImageFilter_h
19 #define sitkRegionOfInterestImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
71 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetIndex (
const std::vector<int> &
Index ) { this->m_Index = Index;
return *
this; }
80 std::vector<int>
GetIndex()
const {
return this->m_Index; }
82 std::string
GetName()
const {
return std::string (
"RegionOfInterestImageFilter"); }
85 std::string ToString()
const;
93 Image Execute (
const Image& image1,
const std::vector<unsigned int> & size,
const std::vector<int> & index );
97 void SetRegionOfInterest(
const std::vector<unsigned int> &
Region );
103 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
104 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)
Set the inclusive starting index of the region extracted.
Self & SetSize(const std::vector< unsigned int > &Size)
Size in pixels of the region extracted.
std::vector< int > m_Index
Extract a region of interest from the input image.
NonLabelPixelIDTypeList PixelIDTypeList
std::vector< int > GetIndex() const
The 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.