go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSamplerBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
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 __ImageRandomSamplerBase_h
19 #define __ImageRandomSamplerBase_h
20 
21 #include "itkImageSamplerBase.h"
22 
23 namespace itk
24 {
25 
35 template< class TInputImage >
37  public ImageSamplerBase< TInputImage >
38 {
39 public:
40 
45  typedef SmartPointer< const Self > ConstPointer;
46 
48  itkNewMacro( Self );
49 
52 
65  typedef typename Superclass::MaskType MaskType;
66 
68  itkStaticConstMacro( InputImageDimension, unsigned int,
69  Superclass::InputImageDimension );
70 
72  itkSetClampMacro( NumberOfSamples, unsigned long, 1, NumericTraits< unsigned long >::max() );
73 
74 protected:
75 
78 
81 
83  virtual void BeforeThreadedGenerateData( void );
84 
86  void PrintSelf( std::ostream & os, Indent indent ) const;
87 
89  std::vector< double > m_RandomNumberList;
90 
91 private:
92 
94  ImageRandomSamplerBase( const Self & ); // purposely not implemented
96  void operator=( const Self & ); // purposely not implemented
97 
98 };
99 
100 } // end namespace itk
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "itkImageRandomSamplerBase.hxx"
104 #endif
105 
106 #endif // end #ifndef __ImageRandomSamplerBase_h
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::ImageSampleType ImageSampleType
virtual void BeforeThreadedGenerateData(void)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
Superclass::InputImagePixelType InputImagePixelType
Superclass::InputImagePointer InputImagePointer
A class that defines an image sample, which is the coordinates of a point and its value...
Superclass::InputImageConstPointer InputImageConstPointer
ImageSamplerBase< TInputImage > Superclass
Superclass::InputImageRegionType InputImageRegionType
This class is a base class for any image sampler.
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Superclass::InputImageType InputImageType
int max(int a, int b)
SmartPointer< const Self > ConstPointer
void operator=(const Self &)
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::DataObjectPointer DataObjectPointer
Superclass::OutputVectorContainerType OutputVectorContainerType
This class is a base class for any image sampler that randomly picks samples.
std::vector< double > m_RandomNumberList


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo