18 #ifndef itkExtractImageFilter_h
19 #define itkExtractImageFilter_h
24 #include "ITKCommonExport.h"
51 extern ITKCommon_EXPORT std::ostream &
117 template <
typename TInputImage,
typename TOutputImage>
155 #if !defined(ITK_LEGACY_REMOVE)
159 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOUNKOWN =
160 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOUNKOWN;
161 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOIDENTITY =
162 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOIDENTITY;
163 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOSUBMATRIX =
164 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOSUBMATRIX;
165 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOGUESS =
166 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOGUESS;
196 switch (choosenStrategy)
198 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS:
199 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY:
200 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX:
202 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOUNKOWN:
204 itkExceptionMacro(<<
"Invalid Strategy Chosen for itk::ExtractImageFilter");
208 this->m_DirectionCollapseStrategy = choosenStrategy;
220 DirectionCollapseStrategyEnum
223 return this->m_DirectionCollapseStrategy;
230 this->SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS);
237 this->SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY);
244 this->SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX);
249 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
250 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
265 #ifdef ITK_USE_CONCEPT_CHECKING
275 PrintSelf(std::ostream & os,
Indent indent)
const override;
286 GenerateOutputInformation()
override;
317 GenerateData()
override;
329 #ifndef ITK_MANUAL_INSTANTIATION
330 # include "itkExtractImageFilter.hxx"