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

itkNeighborhoodInnerProduct.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNeighborhoodInnerProduct.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/12/17 17:50:35 $
00007   Version:   $Revision: 1.7 $
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 __itkNeighborhoodInnerProduct_h
00018 #define __itkNeighborhoodInnerProduct_h
00019 
00020 #include "itkNeighborhoodIterator.h"
00021 #include "itkSmartNeighborhoodIterator.h"
00022 #include "itkNeighborhood.h"
00023 #include "itkConstSliceIterator.h"
00024 #include "itkImageBoundaryCondition.h"
00025 
00026 namespace itk {
00027   
00043 template<class TImage, class TOperator=ITK_TYPENAME TImage::PixelType, class TComputation=TOperator>
00044 class NeighborhoodInnerProduct
00045 {
00046 public:
00048   typedef NeighborhoodInnerProduct Self;
00049 
00051   typedef typename TImage::PixelType ImagePixelType;
00052   typedef TOperator OperatorPixelType;
00053   typedef TComputation OutputPixelType;
00054   
00056   itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
00057 
00059   typedef Neighborhood<OperatorPixelType,
00060                       itkGetStaticConstMacro(ImageDimension)> OperatorType;
00061 
00063   OutputPixelType operator()(const std::slice &s,
00064                        const ConstNeighborhoodIterator<TImage> &it,
00065                        const OperatorType &op) const;
00066   OutputPixelType operator()(const ConstNeighborhoodIterator<TImage> &it,
00067                        const OperatorType &op) const
00068     {
00069       return this->operator()(std::slice(0, it.Size(), 1), it, op);
00070     }
00071   };
00072   
00073   
00074   
00075 } // end namespace itk
00076   
00077 #ifndef ITK_MANUAL_INSTANTIATION
00078 #include "itkNeighborhoodInnerProduct.txx"
00079 #endif
00080 
00081 #endif

Generated at Fri May 21 01:15:07 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000