ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkZeroFluxNeumannBoundaryCondition.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkZeroFluxNeumannBoundaryCondition_h
19 #define __itkZeroFluxNeumannBoundaryCondition_h
21 
22 namespace itk
23 {
57 template< class TInputImage, class TOutputImage = TInputImage >
59  public ImageBoundaryCondition< TInputImage, TOutputImage >
60 {
61 public:
65 
67  typedef typename Superclass::PixelType PixelType;
71  typedef typename Superclass::IndexType IndexType;
72  typedef typename Superclass::SizeType SizeType;
75 
78 
80  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
81 
84 
86  virtual const char * GetNameOfClass() const
87  {
88  return "itkZeroFluxNeumannBoundaryCondition";
89  }
90 
93  virtual OutputPixelType operator()(const OffsetType & point_index,
94  const OffsetType & boundary_offset,
95  const NeighborhoodType *data) const;
96 
99  virtual OutputPixelType operator()(
100  const OffsetType & point_index,
101  const OffsetType & boundary_offset,
102  const NeighborhoodType *data,
103  const NeighborhoodAccessorFunctorType & neighborhoodAccessorFunctor) const;
104 
116  virtual RegionType GetInputRequestedRegion( const RegionType & inputLargestPossibleRegion,
117  const RegionType & outputRequestedRegion ) const;
118 
126  OutputPixelType GetPixel( const IndexType & index, const TInputImage * image ) const;
127 
128 };
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkZeroFluxNeumannBoundaryCondition.hxx"
133 #endif
134 
135 /*
136 #ifndef ITK_MANUAL_INSTANTIATION
137 #include "itkZeroFluxNeumannBoundaryCondition.hxx"
138 #endif
139 */
140 
141 #endif
142