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
itk::ImageRandomSamplerBase::ImageSampleContainerType
Superclass::ImageSampleContainerType ImageSampleContainerType
Definition: itkImageRandomSamplerBase.h:63
itk::ImageRandomSamplerBase::BeforeThreadedGenerateData
virtual void BeforeThreadedGenerateData(void)
itk::ImageRandomSamplerBase::MaskType
Superclass::MaskType MaskType
Definition: itkImageRandomSamplerBase.h:65
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::DataObjectPointer
Superclass::DataObjectPointer DataObjectPointer
Definition: itkImageSamplerBase.h:60
SmartPointer< Self >
itk::ImageRandomSamplerBase::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImagePointer
Superclass::InputImagePointer InputImagePointer
Definition: itkImageSamplerBase.h:67
itk::ImageRandomSamplerBase::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkImageRandomSamplerBase.h:45
itk::ImageRandomSamplerBase::ImageRandomSamplerBase
ImageRandomSamplerBase(const Self &)
itk::ImageRandomSamplerBase::m_RandomNumberList
std::vector< double > m_RandomNumberList
Definition: itkImageRandomSamplerBase.h:89
itk::ImageRandomSamplerBase::ImageSampleType
Superclass::ImageSampleType ImageSampleType
Definition: itkImageRandomSamplerBase.h:62
itk::ImageRandomSamplerBase::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
itk::ImageRandomSamplerBase::Pointer
SmartPointer< Self > Pointer
Definition: itkImageRandomSamplerBase.h:44
itkImageSamplerBase.h
itk::ImageRandomSamplerBase::ImageRandomSamplerBase
ImageRandomSamplerBase()
itk::ImageSample
A class that defines an image sample, which is the coordinates of a point and its value.
Definition: itkImageSample.h:35
itk::ImageRandomSamplerBase::InputImagePixelType
Superclass::InputImagePixelType InputImagePixelType
Definition: itkImageRandomSamplerBase.h:61
itk::ImageRandomSamplerBase::OutputVectorContainerPointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Definition: itkImageRandomSamplerBase.h:56
itk::ImageRandomSamplerBase::operator=
void operator=(const Self &)
itk::ImageRandomSamplerBase::OutputVectorContainerType
Superclass::OutputVectorContainerType OutputVectorContainerType
Definition: itkImageRandomSamplerBase.h:55
itk::ImageRandomSamplerBase::~ImageRandomSamplerBase
virtual ~ImageRandomSamplerBase()
Definition: itkImageRandomSamplerBase.h:80
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageSamplerBase.h:69
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageConstPointer
Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkImageSamplerBase.h:68
itk::ImageRandomSamplerBase::Self
ImageRandomSamplerBase Self
Definition: itkImageRandomSamplerBase.h:42
itk::ImageRandomSamplerBase::InputImagePointer
Superclass::InputImagePointer InputImagePointer
Definition: itkImageRandomSamplerBase.h:58
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::ImageRandomSamplerBase::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageRandomSamplerBase.h:60
itk::ImageRandomSamplerBase::InputImageType
Superclass::InputImageType InputImageType
Definition: itkImageRandomSamplerBase.h:57
itk::ImageRandomSamplerBase::Superclass
ImageSamplerBase< TInputImage > Superclass
Definition: itkImageRandomSamplerBase.h:43
itk::ImageSamplerBase
This class is a base class for any image sampler.
Definition: itkImageSamplerBase.h:45
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImagePixelType
Superclass::InputImagePixelType InputImagePixelType
Definition: itkImageSamplerBase.h:70
itk::VectorDataContainer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Definition: itkVectorDataContainer.h:79
itk::ImageRandomSamplerBase::ImageSampleContainerPointer
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Definition: itkImageRandomSamplerBase.h:64
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageType
Superclass::InputImageType InputImageType
Definition: itkImageSamplerBase.h:66
itk::ImageRandomSamplerBase::DataObjectPointer
Superclass::DataObjectPointer DataObjectPointer
Definition: itkImageRandomSamplerBase.h:51
itk::ImageRandomSamplerBase::InputImageConstPointer
Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkImageRandomSamplerBase.h:59
itk::ImageRandomSamplerBase
This class is a base class for any image sampler that randomly picks samples.
Definition: itkImageRandomSamplerBase.h:38
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::MaskType
SpatialObject< Self::InputImageDimension > MaskType
Definition: itkImageSamplerBase.h:85


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo