00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBloxBoundaryProfileImage.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007/01/30 20:56:07 $ 00007 Version: $Revision: 1.9 $ 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 __itkBloxBoundaryProfileImage_h 00018 #define __itkBloxBoundaryProfileImage_h 00019 00020 #include "vnl/vnl_vector_fixed.h" 00021 #include "itkPoint.h" 00022 #include "itkVector.h" 00023 #include "itkCovariantVector.h" 00024 #include "itkBloxBoundaryPointItem.h" 00025 #include "itkBloxBoundaryPointPixel.h" 00026 #include "itkBloxBoundaryPointImage.h" 00027 00028 #include "itkBloxBoundaryProfileItem.h" 00029 #include "itkBloxBoundaryProfilePixel.h" 00030 #include "itkBloxImage.h" 00031 #include "itkImage.h" 00032 00033 namespace itk 00034 { 00035 00044 template <unsigned int TImageDimension> 00045 class ITK_EXPORT BloxBoundaryProfileImage : 00046 public BloxImage<BloxBoundaryProfilePixel<TImageDimension>, TImageDimension> 00047 { 00048 public: 00049 00051 typedef BloxBoundaryProfileImage Self; 00052 typedef BloxImage<BloxBoundaryProfilePixel<TImageDimension>, 00053 TImageDimension > Superclass; 00054 typedef SmartPointer<Self> Pointer; 00055 typedef SmartPointer<const Self> ConstPointer; 00056 00057 itkNewMacro(Self); 00058 00059 itkTypeMacro(BloxBoundaryProfileImage, BloxImage); 00060 00061 typedef BloxBoundaryProfilePixel<TImageDimension> PixelType; 00062 typedef PixelType InternalPixelType; 00063 00064 typedef DefaultPixelAccessor< PixelType > AccessorType; 00065 00066 typedef Point<double, TImageDimension> PositionType; 00067 00068 typedef typename PositionType::VectorType VectorType; 00069 00070 typedef CovariantVector<double, TImageDimension> GradientType; 00071 00072 typedef typename Superclass::PixelContainer PixelContainer; 00073 typedef typename Superclass::SizeType SizeType; 00074 typedef typename Superclass::IndexType IndexType; 00075 typedef typename Superclass::OffsetType OffsetType; 00076 typedef typename Superclass::RegionType RegionType; 00077 00078 typedef typename PixelContainer::Pointer PixelContainerPointer; 00079 00080 protected: 00081 BloxBoundaryProfileImage(); 00082 virtual ~BloxBoundaryProfileImage(); 00083 void PrintSelf(std::ostream& os, Indent indent) const; 00084 00085 private: 00086 BloxBoundaryProfileImage(const Self&); //purposely not implemented 00087 void operator=(const Self&); //purposely not implemented 00088 }; 00089 00090 } // end namespace itk 00091 00092 // Define instantiation macro for this template. 00093 #define ITK_TEMPLATE_BloxBoundaryProfileImage(_, EXPORT, x, y) namespace itk { \ 00094 _(1(class EXPORT BloxBoundaryProfileImage< ITK_TEMPLATE_1 x >)) \ 00095 namespace Templates { typedef BloxBoundaryProfileImage< ITK_TEMPLATE_1 x > \ 00096 BloxBoundaryProfileImage##y; } \ 00097 } 00098 00099 #if ITK_TEMPLATE_EXPLICIT 00100 # include "Templates/itkBloxBoundaryProfileImage+-.h" 00101 #endif 00102 00103 #if ITK_TEMPLATE_TXX 00104 # include "itkBloxBoundaryProfileImage.txx" 00105 #endif 00106 00107 #endif 00108