ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkGaussianDerivativeImageFunction.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 itkGaussianDerivativeImageFunction_h
19 #define itkGaussianDerivativeImageFunction_h
20 
24 
25 namespace itk
26 {
37 template< typename TInputImage, typename TOutput = double >
39  public ImageFunction< TInputImage,
40  Vector< TOutput, TInputImage::ImageDimension >,
41  TOutput >
42 {
43 public:
44 
47 
49  typedef ImageFunction< TInputImage,
51  TOutput > Superclass;
52 
56 
58  itkNewMacro(Self);
59 
62 
64  typedef TInputImage InputImageType;
65  typedef typename InputImageType::PixelType InputPixelType;
66  typedef typename InputImageType::IndexType IndexType;
67 
69  itkStaticConstMacro(ImageDimension2, unsigned int,
70  InputImageType::ImageDimension);
71 
74 
77 
84 
87 
90 
92  // typedef Point< TOutput, itkGetStaticConstMacro(ImageDimension2) > PointType;
93  typedef typename InputImageType::PointType PointType;
94 
96  virtual OutputType Evaluate(const PointType & point) const ITK_OVERRIDE;
97 
99  virtual OutputType EvaluateAtIndex(const IndexType & index) const ITK_OVERRIDE;
100 
103  const ContinuousIndexType & index) const ITK_OVERRIDE;
104 
111  void SetSigma(const double *sigma);
112 
113  void SetSigma(const double sigma);
114 
115  const double * GetSigma() const { return m_Sigma; }
116 
118  void SetExtent(const double *extent);
119 
120  void SetExtent(const double extent);
121 
122  const double * GetExtent() const { return m_Extent; }
123 
128  virtual void SetInputImage(const InputImageType *ptr) ITK_OVERRIDE;
129 
130 protected:
133 
135 
136  void operator=(const Self &);
137 
138  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
139 
141 
143  const double *offset) const;
144 
145 private:
146 
148 
153 
157 
160 
164 };
165 } // namespace itk
166 
167 #ifndef ITK_MANUAL_INSTANTIATION
168 #include "itkGaussianDerivativeImageFunction.hxx"
169 #endif
170 
171 #endif
Light weight base class for most itk classes.
virtual void SetInputImage(const InputImageType *ptr) override
A light-weight container object for storing an N-dimensional neighborhood of values.
Neighborhood< TOutput, itkGetStaticConstMacro(ImageDimension2) > OperatorNeighborhoodType
ContinuousIndex< SpacePrecisionType, itkGetStaticConstMacro(ImageDimension2) > ContinuousIndexType
ImageFunction< TInputImage, Vector< TOutput, TInputImage::ImageDimension >, TOutput > Superclass
virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
Neighborhood< InputPixelType, itkGetStaticConstMacro(ImageDimension2) > NeighborhoodType
Compute the convolution of a neighborhood operator with the image at a specific location in space...
virtual OutputType Evaluate(const PointType &point) const override
NeighborhoodOperatorImageFunction< InputImageType, TOutput > OperatorImageFunctionType
N-dimensional Gaussian spatial function class.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
Vector< TOutput, itkGetStaticConstMacro(ImageDimension2) > VectorType
GaussianDerivativeSpatialFunction< TOutput, 1 > GaussianDerivativeFunctionType
N-dimensional gaussian spatial function class.
void SetSigma(const double *sigma)
void SetExtent(const double *extent)
FixedArray< OperatorNeighborhoodType, 2 *itkGetStaticConstMacro(ImageDimension2) > OperatorArrayType
void RecomputeContinuousGaussianKernel(const double *offset) const
GaussianSpatialFunction< TOutput, 1 > GaussianFunctionType
A templated class holding a point in n-Dimensional image space.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
GaussianDerivativeFunctionType::Pointer GaussianDerivativeFunctionPointer
OperatorImageFunctionType::Pointer OperatorImageFunctionPointer
GaussianDerivativeFunctionPointer m_GaussianDerivativeFunction
Compute the gaussian derivatives of an the image at a specific location in space, i...
Evaluates a function of an image at specified position.
void PrintSelf(std::ostream &os, Indent indent) const override
virtual OutputType EvaluateAtIndex(const IndexType &index) const override