ITK  4.2.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 < class TSample, class 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, RealType, 900);
87 
89  itkSetMacro(Variance, RealType);
90 
92  itkGetConstMacro(Variance, RealType);
93 
94 protected:
100  virtual typename LightObject::Pointer InternalClone() const;
101 
104 
105  virtual void PrintSelf(std::ostream& os, Indent indent) const;
106 
110  virtual RandomIntType GetIntegerVariate(RandomIntType lowerBound,
111  RandomIntType upperBound,
112  RandomIntType mean);
113 
115 
116 private:
117  GaussianRandomSpatialNeighborSubsampler(const Self&); // purposely not implemented
118  void operator=(const Self&); // purposely not implemented
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
130