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

itkVectorNeighborhoodInnerProduct.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVectorNeighborhoodInnerProduct.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-03-03 15:11:45 $
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 __itkVectorNeighborhoodInnerProduct_h
00018 #define __itkVectorNeighborhoodInnerProduct_h
00019 
00020 #include "itkNeighborhoodIterator.h"
00021 #include "itkVector.h"
00022 #include "itkNeighborhood.h"
00023 #include "itkConstSliceIterator.h"
00024 #include "itkImageBoundaryCondition.h"
00025 
00026 namespace itk {
00027   
00041 template<class TImage>
00042 class ITK_EXPORT VectorNeighborhoodInnerProduct
00043 {
00044 public:
00046   typedef VectorNeighborhoodInnerProduct Self;
00047 
00048   itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
00049 
00051   typedef typename TImage::PixelType    PixelType;
00052   typedef typename PixelType::ValueType ScalarValueType;
00053   typedef Neighborhood<PixelType, itkGetStaticConstMacro(ImageDimension)>
00054                                         NeighborhoodType;
00055 
00057   itkStaticConstMacro(VectorDimension, unsigned int,
00058                       PixelType::Dimension);
00059 
00061   typedef Neighborhood<ScalarValueType,
00062                       itkGetStaticConstMacro(ImageDimension)> OperatorType;
00063 
00065   PixelType operator()(const std::slice &s,
00066                        const ConstNeighborhoodIterator<TImage> &it,
00067                        const OperatorType &op) const;
00068 
00070   PixelType operator()(const ConstNeighborhoodIterator<TImage> &it,
00071                        const OperatorType &op) const
00072     {
00073     return this->operator()(std::slice(0, it.Size(), 1), it, op);
00074     }
00075 
00076   PixelType operator()(const std::slice &s, const NeighborhoodType &N,
00077                        const OperatorType &op) const;
00078 
00079 };
00080   
00081 } // end namespace itk
00082   
00083 #ifndef ITK_MANUAL_INSTANTIATION
00084 #include "itkVectorNeighborhoodInnerProduct.txx"
00085 #endif
00086 
00087 #endif
00088 

Generated at Mon Jul 12 2010 20:12:40 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000