Go to the documentation of this file.
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 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
The main Image class for SimpleITK.
std::vector< int > GetIndex() const
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
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.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
NonLabelPixelIDTypeList PixelIDTypeList
Self & SetSize(const std::vector< unsigned int > &Size)
#define SITKBasicFilters_EXPORT
std::vector< unsigned int > m_Size
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
RegionOfInterestImageFilter Self
std::vector< unsigned int > GetSize() const
std::vector< int > m_Index
Self & SetIndex(const std::vector< int > &Index)
Extract a region of interest from the input image.