18 #ifndef itkTestingExtractSliceImageFilter_h
19 #define itkTestingExtractSliceImageFilter_h
106 template <
typename TInputImage,
typename TOutputImage>
147 #if !defined(ITK_LEGACY_REMOVE)
151 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOUNKOWN;
153 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOIDENTITY;
155 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOSUBMATRIX;
157 DIRECTIONCOLLAPSESTRATEGY::DIRECTIONCOLLAPSETOGUESS;
187 switch (choosenStrategy)
189 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS:
190 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY:
191 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX:
193 case TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOUNKOWN:
195 itkExceptionMacro(
"Invalid Strategy Chosen for itk::ExtractSliceImageFilter");
199 this->m_DirectionCollaspeStrategy = choosenStrategy;
211 DIRECTIONCOLLAPSESTRATEGY
218 this->SetDirectionCollapseToStrategy(TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOGUESS);
225 this->SetDirectionCollapseToStrategy(TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY);
232 this->SetDirectionCollapseToStrategy(TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOSUBMATRIX);
237 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
238 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
254 using Superclass::SetInput;
256 SetInput(
const TInputImage * input);
261 #ifdef ITK_USE_CONCEPT_CHECKING
271 PrintSelf(std::ostream & os,
Indent indent)
const override;
282 GenerateOutputInformation()
override;
313 TestExtractSliceImageFilterCollapseStrategyEnum::DIRECTIONCOLLAPSETOUNKOWN
319 #ifndef ITK_MANUAL_INSTANTIATION
320 # include "itkTestingExtractSliceImageFilter.hxx"