ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLabelImageGaussianInterpolateImageFunction.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 
19 #ifndef itkLabelImageGaussianInterpolateImageFunction_h
20 #define itkLabelImageGaussianInterpolateImageFunction_h
21 
23 
24 namespace itk
25 {
26 
63 template <typename TInputImage, typename TCoordRep = double,
64  typename TPixelCompare = std::less<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType> >
65 class ITK_TEMPLATE_EXPORT LabelImageGaussianInterpolateImageFunction :
66  public GaussianInterpolateImageFunction<TInputImage, TCoordRep>
67 {
68 public:
69  ITK_DISALLOW_COPY_AND_ASSIGN(LabelImageGaussianInterpolateImageFunction);
70 
76  using InputPixelType = typename TInputImage::PixelType;
77 
80 
82  itkNewMacro( Self );
83 
85  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
86 
88  using OutputType = typename Superclass::OutputType;
89 
91  using InputImageType = typename Superclass::InputImageType;
92 
94  using RealType = typename Superclass::RealType;
95 
97  using IndexType = typename Superclass::IndexType;
98 
100  using ContinuousIndexType = typename Superclass::ContinuousIndexType;
101 
103  using ArrayType = typename Superclass::ArrayType;
104 
109  const ContinuousIndexType & cindex ) const override
110  {
111  return this->EvaluateAtContinuousIndex( cindex, nullptr );
112  }
113 
114 protected:
116  ~LabelImageGaussianInterpolateImageFunction() override = default;
117 
118 private:
122  OutputType EvaluateAtContinuousIndex(
123  const ContinuousIndexType &, OutputType * ) const override;
124 };
125 
126 } // end namespace itk
127 
128 #ifndef ITK_MANUAL_INSTANTIATION
129 #include "itkLabelImageGaussianInterpolateImageFunction.hxx"
130 #endif
131 
132 #endif
typename Superclass::ContinuousIndexType ContinuousIndexType
Light weight base class for most itk classes.
Evaluates the Gaussian interpolation of an image.
Interpolation function for multi-label images that implicitly smooths each unique value in the image ...
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
typename Superclass::InputImageType InputImageType