18 #ifndef itkOrientImageFilter_h
19 #define itkOrientImageFilter_h
140 template<
typename TInputImage,
typename TOutputImage >
174 itkStaticConstMacro(InputImageDimension,
unsigned int,
175 TInputImage::ImageDimension);
176 itkStaticConstMacro(OutputImageDimension,
unsigned int,
177 TOutputImage::ImageDimension);
193 SetGivenCoordinateOrientation(
197 itkGetEnumMacro(DesiredCoordinateOrientation, CoordinateOrientationCode);
198 void SetDesiredCoordinateOrientation(CoordinateOrientationCode newCode);
202 SetDesiredCoordinateOrientation(
212 itkBooleanMacro(UseImageDirection);
213 itkGetConstMacro(UseImageDirection,
bool);
214 itkSetMacro(UseImageDirection,
bool);
218 itkGetConstReferenceMacro(PermuteOrder, PermuteOrderArrayType);
221 itkGetConstReferenceMacro(FlipAxes, FlipAxesArrayType);
258 virtual void GenerateOutputInformation() ITK_OVERRIDE;
260 #ifdef ITK_USE_CONCEPT_CHECKING
266 itkGetStaticConstMacro(OutputImageDimension) > ) );
275 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
280 void GenerateInputRequestedRegion() ITK_OVERRIDE;
283 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
290 bool NeedToPermute();
297 void GenerateData() ITK_OVERRIDE;
302 std::
string GetMajorAxisFromPatientRelativeDirectionCosine(
double x,
double y,
double z);
306 bool m_UseImageDirection;
316 #ifndef ITK_MANUAL_INSTANTIATION
317 #include "itkOrientImageFilter.hxx"
void SetGivenCoordinateDirection(const typename TInputImage::DirectionType &GivenDirection)
SmartPointer< Self > Pointer
OutputImageType::PixelType OutputImagePixelType
InputImageType::RegionType InputImageRegionType
InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
OutputImageType::RegionType OutputImageRegionType
PermuterType::PermuteOrderArrayType PermuteOrderArrayType
FlipperType::FlipAxesArrayType FlipAxesArrayType
Base class for all process objects that output image data.
Converts SpatialOrientation flags to/from direction cosines.
~OrientImageFilter() override
InputImageType::ConstPointer InputImageConstPointer
ImageBaseType::DirectionType DirectionType
PermuteAxesImageFilter< TInputImage > PermuterType
Permute axes and then flip images as needed to obtain agreement in coordinateOrientation codes...
FlipImageFilter< TInputImage > FlipperType
InputImageType::PixelType InputImagePixelType
void SetDesiredCoordinateDirection(const typename TOutputImage::DirectionType &DesiredDirection)
Permutes the image axes according to a user specified order.
void SetDesiredCoordinateOrientationToSagittal()
Flips an image across user specified axes.
OutputImageType::Pointer OutputImagePointer
TInputImage InputImageType
SpatialOrientation::ValidCoordinateOrientationFlags CoordinateOrientationCode
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
ValidCoordinateOrientationFlags
void SetDesiredCoordinateOrientationToCoronal()
OutputImageType::ConstPointer OutputImageConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
#define itkConceptMacro(name, concept)
void SetDesiredCoordinateOrientationToAxial()
SmartPointer< const Self > ConstPointer
Base class for all data objects in ITK.