00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkVectorNeighborhoodInnerProduct_h
00018 #define __itkVectorNeighborhoodInnerProduct_h
00019
00020 #include "itkNeighborhoodIterator.h"
00021 #include "itkSmartNeighborhoodIterator.h"
00022 #include "itkVector.h"
00023 #include "itkNeighborhood.h"
00024 #include "itkConstSliceIterator.h"
00025 #include "itkImageBoundaryCondition.h"
00026
00027 namespace itk {
00028
00042 template<class TImage>
00043 class VectorNeighborhoodInnerProduct
00044 {
00045 public:
00047 typedef VectorNeighborhoodInnerProduct Self;
00048
00050 typedef typename TImage::PixelType PixelType;
00051 typedef typename PixelType::ValueType ScalarValueType;
00052
00054 itkStaticConstMacro(VectorDimension, unsigned int,
00055 PixelType::Dimension);
00056 itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
00057
00059 typedef Neighborhood<ScalarValueType,
00060 itkGetStaticConstMacro(ImageDimension)> OperatorType;
00061
00063 PixelType operator()(const std::slice &s,
00064 const ConstNeighborhoodIterator<TImage> &it,
00065 const OperatorType &op) const;
00066
00068 PixelType operator()(const ConstNeighborhoodIterator<TImage> &it,
00069 const OperatorType &op) const
00070 {
00071 return this->operator()(std::slice(0, it.Size(), 1), it, op);
00072 }
00073 };
00074
00075 }
00076
00077 #ifndef ITK_MANUAL_INSTANTIATION
00078 #include "itkVectorNeighborhoodInnerProduct.txx"
00079 #endif
00080
00081 #endif