ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkManifoldParzenWindowsPointSetFunction.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 __itkManifoldParzenWindowsPointSetFunction_h
19 #define __itkManifoldParzenWindowsPointSetFunction_h
20 
21 #include "itkPointSetFunction.h"
22 
24 #include "itkMatrix.h"
25 #include "itkPointSet.h"
26 #include "itkPointsLocator.h"
27 #include "itkVector.h"
28 
29 #include <vector>
30 
31 namespace itk
32 {
33 
44 template <typename TPointSet, typename TOutput = double, typename TCoordRep = double>
46 : public PointSetFunction<TPointSet, TOutput, TCoordRep>
47 {
48 public:
53 
55  itkNewMacro(Self);
56 
58  itkStaticConstMacro( PointDimension, unsigned int, TPointSet::PointDimension );
59 
62 
64  typedef TPointSet PointSetType;
65  typedef typename PointSetType::PointType PointType;
66  typedef typename PointSetType::PointsContainer PointsContainer;
67  typedef typename PointsContainer::ElementIdentifier PointIdentifier;
68 
70  typedef TOutput RealType;
71  typedef TOutput OutputType;
72  typedef TCoordRep CoordRepType;
73 
77 
78  typedef typename Statistics::
82  typedef std::vector<GaussianPointer> GaussianContainerType;
84 
92  itkSetMacro( CovarianceKNeighborhood, unsigned int );
93 
95  itkGetConstMacro( CovarianceKNeighborhood, unsigned int );
96 
103  itkSetMacro( EvaluationKNeighborhood, unsigned int );
104 
106  itkGetConstMacro( EvaluationKNeighborhood, unsigned int );
107 
112  itkSetMacro( RegularizationSigma, RealType );
113 
115  itkGetConstMacro( RegularizationSigma, RealType );
116 
122  itkSetMacro( KernelSigma, RealType );
123 
125  itkGetConstMacro( KernelSigma, RealType );
126 
131  itkSetMacro( Normalize, bool );
132 
137  itkGetConstMacro( Normalize, bool );
138 
143  itkBooleanMacro( Normalize );
144 
150  itkSetMacro( UseAnisotropicCovariances, bool );
151 
157  itkGetConstMacro( UseAnisotropicCovariances, bool );
158 
164  itkBooleanMacro( UseAnisotropicCovariances );
165 
167  virtual void SetInputPointSet( const InputPointSetType * );
168 
170  virtual TOutput Evaluate( const InputPointType & ) const;
171 
174 
176  itkGetModifiableObjectMacro(PointsLocator, PointsLocatorType );
177 
178 protected:
181  void PrintSelf( std::ostream& os, Indent indent ) const;
182 
183  void GenerateData();
184 
185 private:
186  //purposely not implemented
188  void operator=( const Self& );
189 
191 
196 
200 };
201 
202 } // end namespace itk
203 
204 #ifndef ITK_MANUAL_INSTANTIATION
205 #include "itkManifoldParzenWindowsPointSetFunction.hxx"
206 #endif
207 
208 #endif
Light weight base class for most itk classes.
Statistics::GaussianMembershipFunction< PointType > GaussianType
Point set function based on n-dimensional parzen windowing.
virtual TOutput Evaluate(const InputPointType &) const
PointsLocatorType::NeighborsIdentifierType NeighborsIdentifierType
void PrintSelf(std::ostream &os, Indent indent) const
Accelerate geometric searches for points.
PointSetFunction< TPointSet, TOutput, TCoordRep > Superclass
GaussianMembershipFunction models class membership through a multivariate Gaussian function...
Evaluates a function of an image at specified position.
TreeType::InstanceIdentifierVectorType NeighborsIdentifierType
GaussianConstPointer GetGaussian(PointIdentifier) const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void SetInputPointSet(const InputPointSetType *)