Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkImageBoundaryCondition.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageBoundaryCondition.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:57:12 $
00007   Version:   $Revision: 1.9 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkImageBoundaryCondition_h_
00018 #define __itkImageBoundaryCondition_h_
00019 
00020 #include "itkImage.h"
00021 #include "itkIndex.h"
00022 #include "itkOffset.h"
00023 #include "itkNeighborhood.h"
00024 
00025 namespace itk
00026 {
00027 
00051 template <class TImageType>
00052 class ITK_EXPORT ImageBoundaryCondition
00053 {
00054 public:
00056   itkStaticConstMacro(ImageDimension, unsigned int,
00057                       TImageType::ImageDimension);
00058 
00060   typedef ImageBoundaryCondition           Self;
00061 
00063   typedef typename TImageType::PixelType PixelType;
00064   typedef typename TImageType::InternalPixelType *PixelPointerType;
00065   typedef Index<itkGetStaticConstMacro(ImageDimension)> IndexType;
00066   typedef Offset<itkGetStaticConstMacro(ImageDimension)> OffsetType;
00067   
00069   typedef Neighborhood<PixelPointerType,
00070                       itkGetStaticConstMacro(ImageDimension)> NeighborhoodType;
00071 
00073   ImageBoundaryCondition() {}
00074   
00079   virtual PixelType operator()(const OffsetType& point_index,
00080                                const OffsetType &boundary_offset,
00081                                  const NeighborhoodType *data) const = 0;
00082 };
00083   
00084 }// end namespace itk
00085 
00086 
00087 #endif

Generated at Wed Mar 12 01:12:59 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000