18 #ifndef sitkExtractImageFilter_h
19 #define sitkExtractImageFilter_h
80 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
84 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetIndex (
const std::vector<int> &
Index ) { this->m_Index = Index;
return *
this; }
93 std::vector<int>
GetIndex()
const {
return this->m_Index; }
113 std::string
GetName()
const {
return std::string (
"ExtractImageFilter"); }
116 std::string ToString()
const;
131 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
132 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
The main 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.