18 #ifndef itkTestingExtractSliceImageFilter_h
19 #define itkTestingExtractSliceImageFilter_h
107 template <
typename TInputImage,
typename TOutputImage>
148 #if !defined(ITK_LEGACY_REMOVE)
152 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOUNKOWN;
154 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOIDENTITY;
156 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOSUBMATRIX;
158 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOGUESS;
188 switch (choosenStrategy)
190 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS:
191 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY:
192 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX:
194 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOUNKOWN:
196 itkExceptionMacro(<<
"Invalid Strategy Chosen for itk::ExtractSliceImageFilter");
200 this->m_DirectionCollaspeStrategy = choosenStrategy;
212 DIRECTIONCOLLAPSESTRATEGY
219 this->SetDirectionCollapseToStrategy(TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS);
226 this->SetDirectionCollapseToStrategy(TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY);
233 this->SetDirectionCollapseToStrategy(TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX);
238 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
239 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
255 using Superclass::SetInput;
257 SetInput(
const TInputImage * input);
262 #ifdef ITK_USE_CONCEPT_CHECKING
272 PrintSelf(std::ostream & os,
Indent indent)
const override;
283 GenerateOutputInformation()
override;
314 TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOUNKOWN
320 #ifndef ITK_MANUAL_INSTANTIATION
321 # include "itkTestingExtractSliceImageFilter.hxx"