ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkPeriodicBoundaryCondition.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 itkPeriodicBoundaryCondition_h
19 #define itkPeriodicBoundaryCondition_h
21 
22 namespace itk
23 {
37 template< typename TInputImage, typename TOutputImage = TInputImage >
38 class ITK_TEMPLATE_EXPORT PeriodicBoundaryCondition:
39  public ImageBoundaryCondition< TInputImage, TOutputImage >
40 {
41 public:
45 
47  using PixelType = typename Superclass::PixelType;
51  using IndexType = typename Superclass::IndexType;
52  using SizeType = typename Superclass::SizeType;
55 
57 
59  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
60 
62  PeriodicBoundaryCondition() = default;
63 
65  const char * GetNameOfClass() const override
66  {
67  return "itkPeriodicBoundaryCondition";
68  }
69 
72  OutputPixelType operator()(const OffsetType & point_index,
73  const OffsetType & boundary_offset,
74  const NeighborhoodType *data) const override;
75 
78  OutputPixelType operator()(
79  const OffsetType & point_index,
80  const OffsetType & boundary_offset,
81  const NeighborhoodType *data,
82  const NeighborhoodAccessorFunctorType & neighborhoodAccessorFunctor) const override;
83 
97  RegionType GetInputRequestedRegion( const RegionType & inputLargestPossibleRegion,
98  const RegionType & outputRequestedRegion ) const override;
99 
108  OutputPixelType GetPixel( const IndexType & index, const TInputImage * image ) const override;
109 
110 };
111 } // end namespace itk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkPeriodicBoundaryCondition.hxx"
115 #endif
116 
117 #endif
const char * GetNameOfClass() const override
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 function object that determines values outside of image boundaries according to periodic (wrap-arou...
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::PixelType PixelType
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
typename TInputImage::InternalPixelType * PixelPointerType
typename TInputImage::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType