KWStyle - itkNeighborhoodAlgorithm.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkNeighborhoodAlgorithm.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:42 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17
18 #ifndef __itkNeighborhoodAlgorithm_h
19 #define __itkNeighborhoodAlgorithm_h
20
21 #include <list>
22 #include "itkImage.h"
23 #include "itkNeighborhood.h"
24 #include "itkNeighborhoodOperator.h"
25 #include "itkExceptionObject.h"
26 #include "itkNeighborhoodIterator.h"
27
28 namespace itk
29 {
30   
31 namespace NeighborhoodAlgorithm
32 {      
33
34 /** \class ImageBoundaryFacesCalculator */
35 template<class TImage>
36 struct ITK_EXPORT ImageBoundaryFacesCalculator
37 {
38   typedef typename NeighborhoodIterator<TImage>::RadiusType RadiusType;
39 TDA   typedef typename TImage::RegionType RegionType;
40 TDA   typedef typename TImage::IndexType  IndexType;
41 TDA   typedef typename IndexType::IndexValueType  IndexValueType;
42 TDA   typedef typename TImage::SizeType   SizeType;
43 TDA   typedef typename SizeType::SizeValueType  SizeValueType;
44 TDA   typedef std::list<RegionType> FaceListType;
45   itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
46
47   FaceListType operator()(const TImage *, RegionType, RadiusType);
48 };
49
50 /** \class CalculateOutputWrapOffsetModifiers
51  * 
52  * Helper class for setting up itkNeighborhoodIterator output
53  * buffers. Calculates the necessary modifiers to synchronize input and output
54  * iteration between images with equal RequestedRegion sizes but unequal
55  * BufferedRegion sizes. 
56  */
57 template<class TImage>
58 struct ITK_EXPORT CalculateOutputWrapOffsetModifiers
59 {
60   typedef Offset< ::itk::GetImageDimension<TImage>::ImageDimension> OffsetType;
61   OffsetType operator()(TImage *, TImage *) const;
62 };
63   
64 // end namespace NeighborhoodAlgorithm
65   
66 // end namespace itk
67
68 #ifndef ITK_MANUAL_INSTANTIATION
69 #include "itkNeighborhoodAlgorithm.txx"
70 #endif
71
72 #endif
73

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:27PM
© Kitware Inc.