18 #ifndef itkExtractImageFilter_h
19 #define itkExtractImageFilter_h
24 #include "ITKCommonExport.h"
52 extern ITKCommon_EXPORT std::ostream &
118 template <
typename TInputImage,
typename TOutputImage>
156 #if !defined(ITK_LEGACY_REMOVE)
160 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOUNKOWN =
161 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOUNKOWN;
162 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOIDENTITY =
163 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOIDENTITY;
164 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOSUBMATRIX =
165 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOSUBMATRIX;
166 static constexpr DIRECTIONCOLLAPSESTRATEGY DIRECTIONCOLLAPSETOGUESS =
167 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOGUESS;
197 switch (choosenStrategy)
199 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS:
200 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY:
201 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX:
203 case DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOUNKOWN:
205 itkExceptionMacro(
"Invalid Strategy Chosen for itk::ExtractImageFilter");
209 this->m_DirectionCollapseStrategy = choosenStrategy;
221 DirectionCollapseStrategyEnum
224 return this->m_DirectionCollapseStrategy;
231 this->SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS);
238 this->SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY);
245 this->SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX);
250 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
251 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
266 #ifdef ITK_USE_CONCEPT_CHECKING
276 PrintSelf(std::ostream & os,
Indent indent)
const override;
287 GenerateOutputInformation()
override;
318 GenerateData()
override;
330 #ifndef ITK_MANUAL_INSTANTIATION
331 # include "itkExtractImageFilter.hxx"