ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkGaussianRandomSpatialNeighborSubsampler.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 itkGaussianRandomSpatialNeighborSubsampler_h
19 #define itkGaussianRandomSpatialNeighborSubsampler_h
20 
22 
23 namespace itk {
24 namespace Statistics {
44 template < typename TSample, typename TRegion >
46 {
47 public:
51  typedef typename Superclass::Baseclass Baseclass;
54 
58 
60  itkNewMacro(Self);
61 
63  typedef typename Superclass::SampleType SampleType;
67 
72 
78  typedef typename Superclass::IndexType IndexType;
79  typedef typename Superclass::SizeType SizeType;
81 
82  typedef double RealType;
83 
86  itkStaticConstMacro(DefaultVariance, int, 900);
87 
89  itkSetMacro(Variance, RealType);
90 
92  itkGetConstMacro(Variance, RealType);
93 
94 protected:
100  virtual typename LightObject::Pointer InternalClone() const ITK_OVERRIDE;
101 
104 
105  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
106 
110  virtual RandomIntType GetIntegerVariate(RandomIntType lowerBound,
111  RandomIntType upperBound,
112  RandomIntType mean) ITK_OVERRIDE;
113 
115 
116 private:
117  GaussianRandomSpatialNeighborSubsampler(const Self&) ITK_DELETE_FUNCTION;
118  void operator=(const Self&) ITK_DELETE_FUNCTION;
119 
120 }; // end of class GaussianRandomSpatialNeighborSubsampler
121 
122 } // end of namespace Statistics
123 } // end of namespace itk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkGaussianRandomSpatialNeighborSubsampler.hxx"
127 #endif
128 
129 #endif
Light weight base class for most itk classes.
virtual RandomIntType GetIntegerVariate(RandomIntType lowerBound, RandomIntType upperBound, RandomIntType mean) override
virtual LightObject::Pointer InternalClone() const override
UniformRandomSpatialNeighborSubsampler< TSample, TRegion > Superclass
virtual void PrintSelf(std::ostream &os, Indent indent) const override
A subsampler that uniformly randomly selects points within the specified radius of the query point...
GaussianRandomSpatialNeighborSubsampler< TSample, TRegion > Self
A subsampler that randomly selects points according to a gaussian distribution within the specified r...
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49