00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkOrientedImage.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-11-01 15:18:04 $ 00007 Version: $Revision: 1.27 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkOrientedImage_h 00018 #define __itkOrientedImage_h 00019 00020 #include "itkImage.h" 00021 00022 namespace itk 00023 { 00024 00034 template <class TPixel, unsigned int VImageDimension> 00035 class ITK_EXPORT OrientedImage : public Image<TPixel,VImageDimension> 00036 { 00037 public: 00039 typedef OrientedImage Self; 00040 typedef Image<TPixel,VImageDimension> Superclass; 00041 typedef SmartPointer<Self> Pointer; 00042 typedef SmartPointer<const Self> ConstPointer; 00043 typedef WeakPointer<const Self> ConstWeakPointer; 00044 00046 itkNewMacro(Self); 00047 00049 itkTypeMacro(OrientedImage, Image); 00050 00052 typedef typename Superclass::IndexType IndexType; 00053 00055 typedef typename Superclass::DirectionType DirectionType; 00056 00059 typedef typename Superclass::SpacingType SpacingType; 00060 00061 typedef typename Superclass::AccessorType AccessorType; 00062 typedef typename Superclass::AccessorFunctorType AccessorFunctorType; 00063 typedef typename Superclass::IOPixelType IOPixelType; 00064 00066 typedef NeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType; 00067 00070 NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() 00071 { return NeighborhoodAccessorFunctorType(); } 00072 00075 const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const 00076 { return NeighborhoodAccessorFunctorType(); } 00077 00078 00079 00080 protected: 00081 OrientedImage(); 00082 virtual ~OrientedImage() {}; 00083 00089 virtual void ComputeIndexToPhysicalPointMatrices(); 00090 00091 private: 00092 OrientedImage(const Self&); //purposely not implemented 00093 void operator=(const Self&); //purposely not implemented 00094 00095 }; 00096 } // end namespace itk 00097 00098 // Define instantiation macro for this template. 00099 #define ITK_TEMPLATE_OrientedImage(_, EXPORT, x, y) namespace itk { \ 00100 _(2(class EXPORT OrientedImage< ITK_TEMPLATE_2 x >)) \ 00101 namespace Templates { typedef OrientedImage< ITK_TEMPLATE_2 x > OrientedImage##y; } \ 00102 } 00103 00104 #if ITK_TEMPLATE_EXPLICIT 00105 # include "Templates/itkOrientedImage+-.h" 00106 #endif 00107 00108 #if ITK_TEMPLATE_TXX 00109 # include "itkOrientedImage.txx" 00110 #endif 00111 00112 #endif 00113