18 #ifndef sitkExtractImageFilter_h
19 #define sitkExtractImageFilter_h
74 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
78 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetIndex (
const std::vector<int> &
Index ) { this->m_Index = Index;
return *
this; }
87 std::vector<int>
GetIndex()
const {
return this->m_Index; }
107 std::string
GetName()
const {
return std::string (
"ExtractImageFilter"); }
110 std::string ToString()
const;
124 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
125 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
The Image class for SimpleITK.
Image Extract(const Image &image1, const std::vector< unsigned int > &size=std::vector< unsigned int >(4, 1), const std::vector< int > &index=std::vector< int >(4, 0), ExtractImageFilter::DirectionCollapseToStrategyType directionCollapseToStrategy=itk::simple::ExtractImageFilter::DIRECTIONCOLLAPSETOGUESS)
Decrease the image size by cropping the image to the selected region bounds.
The base interface for SimpleITK filters that take one input image.