ITK  4.13.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:
74  typedef typename TInputImage::PixelType InputPixelType;
75 
78 
80  itkNewMacro( Self );
81 
83  itkStaticConstMacro( ImageDimension, unsigned int, TInputImage::ImageDimension );
84 
86  typedef typename Superclass::OutputType OutputType;
87 
89  typedef typename Superclass::InputImageType InputImageType;
90 
92  typedef typename Superclass::RealType RealType;
93 
95  typedef typename Superclass::IndexType IndexType;
96 
98  typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
99 
101  typedef typename Superclass::ArrayType ArrayType;
102 
107  const ContinuousIndexType & cindex ) const ITK_OVERRIDE
108  {
109  return this->EvaluateAtContinuousIndex( cindex, ITK_NULLPTR );
110  }
111 
112 protected:
115 
116 private:
117  ITK_DISALLOW_COPY_AND_ASSIGN(LabelImageGaussianInterpolateImageFunction);
118 
122  virtual OutputType EvaluateAtContinuousIndex(
123  const ContinuousIndexType &, OutputType * ) const ITK_OVERRIDE;
124 };
125 
126 } // end namespace itk
127 
128 #ifndef ITK_MANUAL_INSTANTIATION
129 #include "itkLabelImageGaussianInterpolateImageFunction.hxx"
130 #endif
131 
132 #endif
Light weight base class for most itk classes.
virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Evaluates the Gaussian interpolation of an image.
Interpolation function for multi-label images that implicitly smooths each unique value in the image ...
GaussianInterpolateImageFunction< TInputImage, TCoordRep > Superclass