18#ifndef itkExtractImageFilter_h
19#define itkExtractImageFilter_h
24#include "ITKCommonExport.h"
44 DIRECTIONCOLLAPSETOUNKOWN = 0,
45 DIRECTIONCOLLAPSETOIDENTITY = 1,
46 DIRECTIONCOLLAPSETOSUBMATRIX = 2,
47 DIRECTIONCOLLAPSETOGUESS = 3
52extern ITKCommon_EXPORT std::ostream &
118template <
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
330#ifndef ITK_MANUAL_INSTANTIATION
331# include "itkExtractImageFilter.hxx"
Base class for filters that take an image as input and overwrite that image as the output.
Control indentation during Print() invocation.
DirectionCollapseStrategy
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)