ITK  5.0.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 >
58 class ITK_TEMPLATE_EXPORT ZeroFluxNeumannBoundaryCondition:
59  public ImageBoundaryCondition< TInputImage, TOutputImage >
60 {
61 public:
65 
67  using PixelType = typename Superclass::PixelType;
71  using IndexType = typename Superclass::IndexType;
72  using SizeType = typename Superclass::SizeType;
75 
77 
79  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
80 
83 
85  const char * GetNameOfClass() const override
86  {
87  return "itkZeroFluxNeumannBoundaryCondition";
88  }
89 
92  OutputPixelType operator()(const OffsetType & point_index,
93  const OffsetType & boundary_offset,
94  const NeighborhoodType *data) const override;
95 
98  OutputPixelType operator()(
99  const OffsetType & point_index,
100  const OffsetType & boundary_offset,
101  const NeighborhoodType *data,
102  const NeighborhoodAccessorFunctorType & neighborhoodAccessorFunctor) const override;
103 
115  RegionType GetInputRequestedRegion( const RegionType & inputLargestPossibleRegion,
116  const RegionType & outputRequestedRegion ) const override;
117 
125  OutputPixelType GetPixel( const IndexType & index, const TInputImage * image ) const override;
126 
127 };
128 } // end namespace itk
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkZeroFluxNeumannBoundaryCondition.hxx"
132 #endif
133 
134 /*
135 #ifndef ITK_MANUAL_INSTANTIATION
136 #include "itkZeroFluxNeumannBoundaryCondition.hxx"
137 #endif
138 */
139 
140 #endif
A function object that determines a neighborhood of values at an image boundary according to a Neuman...
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
A light-weight container object for storing an N-dimensional neighborhood of values.
An image region represents a structured region of data.
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
typename TSparseImageType::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType