go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSamplerSparseMask.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 __ImageRandomSamplerSparseMask_h
19 #define __ImageRandomSamplerSparseMask_h
20 
22 #include "itkMersenneTwisterRandomVariateGenerator.h"
23 #include "itkImageFullSampler.h"
24 
25 namespace itk
26 {
37 template< class TInputImage >
39  public ImageRandomSamplerBase< TInputImage >
40 {
41 public:
42 
47  typedef SmartPointer< const Self > ConstPointer;
48 
50  itkNewMacro( Self );
51 
54 
67  typedef typename Superclass::MaskType MaskType;
68 
70  itkStaticConstMacro( InputImageDimension, unsigned int,
71  Superclass::InputImageDimension );
72 
74  typedef typename InputImageType::IndexType InputImageIndexType;
75  typedef typename InputImageType::PointType InputImagePointType;
76 
78  typedef itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType;
79  typedef typename RandomGeneratorType::Pointer RandomGeneratorPointer;
80 
81 protected:
82 
85 
90 
92  void PrintSelf( std::ostream & os, Indent indent ) const;
93 
95  virtual void GenerateData( void );
96 
98  virtual void BeforeThreadedGenerateData( void );
99 
100  virtual void ThreadedGenerateData(
101  const InputImageRegionType & inputRegionForThread,
102  ThreadIdType threadId );
103 
106 
107 private:
108 
110  ImageRandomSamplerSparseMask( const Self & ); // purposely not implemented
112  void operator=( const Self & ); // purposely not implemented
113 
114 };
115 
116 } // end namespace itk
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkImageRandomSamplerSparseMask.hxx"
120 #endif
121 
122 #endif // end #ifndef __ImageRandomSamplerSparseMask_h
itk::ImageRandomSamplerSparseMask::ImageRandomSamplerSparseMask
ImageRandomSamplerSparseMask(const Self &)
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::DataObjectPointer
Superclass::DataObjectPointer DataObjectPointer
Definition: itkImageSamplerBase.h:60
SmartPointer< Self >
itk::ImageRandomSamplerSparseMask::ImageSampleContainerType
Superclass::ImageSampleContainerType ImageSampleContainerType
Definition: itkImageRandomSamplerSparseMask.h:65
itk::ImageRandomSamplerSparseMask::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkImageRandomSamplerSparseMask.h:47
itk::ImageRandomSamplerSparseMask::InternalFullSamplerPointer
InternalFullSamplerType::Pointer InternalFullSamplerPointer
Definition: itkImageRandomSamplerSparseMask.h:84
itk::ImageRandomSamplerSparseMask::InputImageConstPointer
Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkImageRandomSamplerSparseMask.h:61
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImagePointer
Superclass::InputImagePointer InputImagePointer
Definition: itkImageSamplerBase.h:67
itkImageFullSampler.h
itk::ImageRandomSamplerSparseMask::InputImagePointer
Superclass::InputImagePointer InputImagePointer
Definition: itkImageRandomSamplerSparseMask.h:60
itk::ImageFullSampler
Samples all voxels in the InputImageRegion.
Definition: itkImageFullSampler.h:39
itk::ImageRandomSamplerSparseMask::Superclass
ImageRandomSamplerBase< TInputImage > Superclass
Definition: itkImageRandomSamplerSparseMask.h:45
itk::ImageRandomSamplerSparseMask::InputImagePointType
InputImageType::PointType InputImagePointType
Definition: itkImageRandomSamplerSparseMask.h:75
itk::ImageRandomSamplerSparseMask::BeforeThreadedGenerateData
virtual void BeforeThreadedGenerateData(void)
itk::ImageSample
A class that defines an image sample, which is the coordinates of a point and its value.
Definition: itkImageSample.h:35
itk::ImageRandomSamplerSparseMask::Pointer
SmartPointer< Self > Pointer
Definition: itkImageRandomSamplerSparseMask.h:46
itk::ImageRandomSamplerSparseMask::GenerateData
virtual void GenerateData(void)
ThreadIdType
itk::ImageRandomSamplerSparseMask::MaskType
Superclass::MaskType MaskType
Definition: itkImageRandomSamplerSparseMask.h:67
itk::ImageRandomSamplerSparseMask::InputImageType
Superclass::InputImageType InputImageType
Definition: itkImageRandomSamplerSparseMask.h:59
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageSamplerBase.h:69
itk::ImageRandomSamplerSparseMask::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageConstPointer
Superclass::InputImageConstPointer InputImageConstPointer
Definition: itkImageSamplerBase.h:68
itk::ImageRandomSamplerSparseMask
Samples randomly some voxels of an image.
Definition: itkImageRandomSamplerSparseMask.h:40
itkImageRandomSamplerBase.h
itk::ImageRandomSamplerSparseMask::ImageSampleContainerPointer
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Definition: itkImageRandomSamplerSparseMask.h:66
itk::ImageRandomSamplerSparseMask::InputImagePixelType
Superclass::InputImagePixelType InputImagePixelType
Definition: itkImageRandomSamplerSparseMask.h:63
itk::ImageRandomSamplerSparseMask::Self
ImageRandomSamplerSparseMask Self
Definition: itkImageRandomSamplerSparseMask.h:44
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::ImageRandomSamplerSparseMask::InputImageIndexType
InputImageType::IndexType InputImageIndexType
Definition: itkImageRandomSamplerSparseMask.h:74
itk::ImageRandomSamplerSparseMask::ThreadedGenerateData
virtual void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId)
itk::ImageRandomSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageRandomSamplerBase.h:60
itk::ImageRandomSamplerSparseMask::ImageRandomSamplerSparseMask
ImageRandomSamplerSparseMask()
itk::ImageRandomSamplerSparseMask::m_InternalFullSampler
InternalFullSamplerPointer m_InternalFullSampler
Definition: itkImageRandomSamplerSparseMask.h:105
itk::ImageRandomSamplerSparseMask::RandomGeneratorType
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
Definition: itkImageRandomSamplerSparseMask.h:78
itk::ImageRandomSamplerSparseMask::InternalFullSamplerType
itk::ImageFullSampler< InputImageType > InternalFullSamplerType
Definition: itkImageRandomSamplerSparseMask.h:83
itk::ImageRandomSamplerSparseMask::~ImageRandomSamplerSparseMask
virtual ~ImageRandomSamplerSparseMask()
Definition: itkImageRandomSamplerSparseMask.h:89
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::ImageRandomSamplerSparseMask::OutputVectorContainerType
Superclass::OutputVectorContainerType OutputVectorContainerType
Definition: itkImageRandomSamplerSparseMask.h:57
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::InputImageType
Superclass::InputImageType InputImageType
Definition: itkImageSamplerBase.h:66
itk::ImageRandomSamplerSparseMask::operator=
void operator=(const Self &)
itk::ImageRandomSamplerSparseMask::OutputVectorContainerPointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Definition: itkImageRandomSamplerSparseMask.h:58
itk::ImageRandomSamplerSparseMask::DataObjectPointer
Superclass::DataObjectPointer DataObjectPointer
Definition: itkImageRandomSamplerSparseMask.h:53
itk::ImageRandomSamplerSparseMask::m_RandomGenerator
RandomGeneratorPointer m_RandomGenerator
Definition: itkImageRandomSamplerSparseMask.h:104
itk::ImageRandomSamplerBase
This class is a base class for any image sampler that randomly picks samples.
Definition: itkImageRandomSamplerBase.h:38
itk::ImageRandomSamplerSparseMask::ImageSampleType
Superclass::ImageSampleType ImageSampleType
Definition: itkImageRandomSamplerSparseMask.h:64
itk::ImageRandomSamplerSparseMask::InputImageRegionType
Superclass::InputImageRegionType InputImageRegionType
Definition: itkImageRandomSamplerSparseMask.h:62
itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >::MaskType
SpatialObject< Self::InputImageDimension > MaskType
Definition: itkImageSamplerBase.h:85
itk::ImageRandomSamplerSparseMask::RandomGeneratorPointer
RandomGeneratorType::Pointer RandomGeneratorPointer
Definition: itkImageRandomSamplerSparseMask.h:79
itk::ImageRandomSamplerSparseMask::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo