go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSampler.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 __ImageRandomSampler_h
19 #define __ImageRandomSampler_h
20 
22 
23 namespace itk
24 {
38 template< class TInputImage >
40  public ImageRandomSamplerBase< TInputImage >
41 {
42 public:
43 
48  typedef SmartPointer< const Self > ConstPointer;
49 
51  itkNewMacro( Self );
52 
55 
69  typedef typename Superclass::MaskType MaskType;
71 
73  itkStaticConstMacro( InputImageDimension, unsigned int,
74  Superclass::InputImageDimension );
75 
77  typedef typename InputImageType::IndexType InputImageIndexType;
78  typedef typename InputImageType::PointType InputImagePointType;
79 
80 protected:
81 
85  virtual ~ImageRandomSampler() {}
86 
88  virtual void GenerateData( void );
89 
90  virtual void ThreadedGenerateData(
91  const InputImageRegionType & inputRegionForThread,
92  ThreadIdType threadId );
93 
94 private:
95 
97  ImageRandomSampler( const Self & ); // purposely not implemented
99  void operator=( const Self & ); // purposely not implemented
100 
101 };
102 
103 } // end namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkImageRandomSampler.hxx"
107 #endif
108 
109 #endif // end #ifndef __ImageRandomSampler_h
Superclass::ImageSampleValueType ImageSampleValueType
Superclass::ImageSampleContainerType ImageSampleContainerType
Samples randomly some voxels of an image.
ImageRandomSamplerBase< TInputImage > Superclass
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
Superclass::OutputVectorContainerType OutputVectorContainerType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::MaskType MaskType
A class that defines an image sample, which is the coordinates of a point and its value...
InputImageType::PointType InputImagePointType
Superclass::InputImageConstPointer InputImageConstPointer
virtual void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId)
Superclass::DataObjectPointer DataObjectPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
virtual void GenerateData(void)
SmartPointer< Self > Pointer
void operator=(const Self &)
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::ImageSampleType ImageSampleType
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImageSizeType InputImageSizeType
Superclass::InputImagePixelType InputImagePixelType
This class is a base class for any image sampler that randomly picks samples.
SmartPointer< const Self > ConstPointer
Superclass::InputImagePointer InputImagePointer
InputImageType::IndexType InputImageIndexType
Superclass::InputImageType InputImageType


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