ITK  4.13.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 >
45  class ITK_TEMPLATE_EXPORT GaussianRandomSpatialNeighborSubsampler : public UniformRandomSpatialNeighborSubsampler<TSample, TRegion>
46 {
47 public:
51  typedef typename Superclass::Baseclass Baseclass;
54 
58 
60  itkNewMacro(Self);
61 
63  typedef typename Superclass::SampleType SampleType;
64  typedef typename Superclass::SampleConstPointer SampleConstPointer;
65  typedef typename Superclass::MeasurementVectorType MeasurementVectorType;
66  typedef typename Superclass::InstanceIdentifier InstanceIdentifier;
67 
68  typedef typename Superclass::SubsampleType SubsampleType;
69  typedef typename Superclass::SubsamplePointer SubsamplePointer;
70  typedef typename Superclass::SubsampleConstIterator SubsampleConstIterator;
71  typedef typename Superclass::InstanceIdentifierHolder InstanceIdentifierHolder;
72 
73  typedef typename Superclass::SearchSizeType SearchSizeType;
74  typedef typename Superclass::RandomIntType RandomIntType;
76  typedef typename Superclass::RadiusType RadiusType;
77  typedef typename Superclass::RegionType RegionType;
78  typedef typename Superclass::IndexType IndexType;
79  typedef typename Superclass::SizeType SizeType;
80  typedef typename Superclass::ImageHelperType ImageHelperType;
81 
82  typedef double RealType;
83 
84  typedef typename Superclass::RandomGeneratorType RandomGeneratorType;
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 
103  virtual ~GaussianRandomSpatialNeighborSubsampler() ITK_OVERRIDE {};
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  ITK_DISALLOW_COPY_AND_ASSIGN(GaussianRandomSpatialNeighborSubsampler);
118 
119 }; // end of class GaussianRandomSpatialNeighborSubsampler
120 
121 } // end of namespace Statistics
122 } // end of namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkGaussianRandomSpatialNeighborSubsampler.hxx"
126 #endif
127 
128 #endif
Light weight base class for most itk classes.
UniformRandomSpatialNeighborSubsampler< TSample, TRegion > Superclass
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...
Control indentation during Print() invocation.
Definition: itkIndent.h:49