18 #ifndef __itkTestingExtractSliceImageFilter_h
19 #define __itkTestingExtractSliceImageFilter_h
81 template<
class TInputImage,
class TOutputImage >
117 DIRECTIONCOLLAPSETOUNKOWN=0,
118 DIRECTIONCOLLAPSETOIDENTITY=1,
119 DIRECTIONCOLLAPSETOSUBMATRIX=2,
120 DIRECTIONCOLLAPSETOGUESS=3
121 } DIRECTIONCOLLAPSESTRATEGY;
150 switch(choosenStrategy)
152 case DIRECTIONCOLLAPSETOGUESS:
153 case DIRECTIONCOLLAPSETOIDENTITY:
154 case DIRECTIONCOLLAPSETOSUBMATRIX:
156 case DIRECTIONCOLLAPSETOUNKOWN:
158 itkExceptionMacro( <<
"Invalid Strategy Chosen for itk::ExtractSliceImageFilter" );
162 this->m_DirectionCollaspeStrategy=choosenStrategy;
176 return this->m_DirectionCollaspeStrategy;
180 void SetDirectionCollapseToGuess()
182 this->SetDirectionCollapseToStrategy(DIRECTIONCOLLAPSETOGUESS);
186 void SetDirectionCollapseToIdentity()
188 this->SetDirectionCollapseToStrategy(DIRECTIONCOLLAPSETOIDENTITY);
192 void SetDirectionCollapseToSubmatrix()
194 this->SetDirectionCollapseToStrategy(DIRECTIONCOLLAPSETOSUBMATRIX);
199 itkStaticConstMacro(InputImageDimension,
unsigned int,
200 TInputImage::ImageDimension);
201 itkStaticConstMacro(OutputImageDimension,
unsigned int,
202 TOutputImage::ImageDimension);
206 itkGetStaticConstMacro(InputImageDimension),
219 using Superclass::SetInput;
220 virtual void SetInput(
const TInputImage *image);
221 const TInputImage * GetInput(
void)
const;
224 #ifdef ITK_USE_CONCEPT_CHECKING
235 void PrintSelf(std::ostream & os,
Indent indent)
const;
245 virtual void GenerateOutputInformation();
256 virtual void CallCopyOutputRegionToInputRegion(InputImageRegionType & destRegion,
257 const OutputImageRegionType & srcRegion);
267 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
276 void operator=(
const Self &);
283 #ifndef ITK_MANUAL_INSTANTIATION
284 #include "itkTestingExtractSliceImageFilter.hxx"