ITK  4.8.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< typename TInputImage, typename 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 
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
static const unsigned int ImageDimension
A function object that determines a neighborhood of values at an image boundary according to a Neuman...
Represent the offset between two n-dimensional indexes in a n-dimensional image.
Definition: itkOffset.h:55
A light-weight container object for storing an N-dimensional neighborhood of values.
An image region represents a structured region of data.
Superclass::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
OutputPixelType GetPixel(const IndexType &index, const TInputImage *image) const
TSparseImageType::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
ImageBoundaryCondition< TInputImage, TOutputImage > Superclass
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
virtual OutputPixelType operator()(const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data) const
virtual RegionType GetInputRequestedRegion(const RegionType &inputLargestPossibleRegion, const RegionType &outputRequestedRegion) const