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: 2005/09/07 14:46:30 $
00007   Version:   $Revision: 1.12 $
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 __itkImageBoundaryCondition_h_
00018 #define __itkImageBoundaryCondition_h_
00019 
00020 #include "itkIndex.h"
00021 #include "itkOffset.h"
00022 #include "itkNeighborhood.h"
00023 
00024 namespace itk
00025 {
00026 
00050 template <class TImageType>
00051 class ITK_EXPORT ImageBoundaryCondition
00052 {
00053 public:
00055   itkStaticConstMacro(ImageDimension, unsigned int,
00056                       TImageType::ImageDimension);
00057 
00059   typedef ImageBoundaryCondition           Self;
00060 
00062   typedef typename TImageType::PixelType PixelType;
00063   typedef typename TImageType::InternalPixelType *PixelPointerType;
00064   typedef Index<itkGetStaticConstMacro(ImageDimension)> IndexType;
00065   typedef Offset<itkGetStaticConstMacro(ImageDimension)> OffsetType;
00066   
00068   typedef Neighborhood<PixelPointerType,
00069                       itkGetStaticConstMacro(ImageDimension)> NeighborhoodType;
00070 
00072   typedef typename TImageType::NeighborhoodAccessorFunctorType 
00073                                  NeighborhoodAccessorFunctorType;
00074   
00076   ImageBoundaryCondition() {}
00077   
00082   virtual PixelType operator()(const OffsetType& point_index,
00083                                const OffsetType &boundary_offset,
00084                                const NeighborhoodType *data) const = 0;
00085   
00088   virtual PixelType operator()(
00089       const OffsetType& point_index,
00090       const OffsetType& boundary_offset,
00091       const NeighborhoodType *data,
00092       const NeighborhoodAccessorFunctorType &neighborhoodAccessorFunctor) const = 0;
00093   
00094   virtual ~ImageBoundaryCondition() {}
00095 };
00096   
00097 }// end namespace itk
00098 
00099 
00100 #endif

Generated at Wed May 24 23:19:09 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000