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
23namespace itk
24{
38template< class TInputImage >
40 public ImageRandomSamplerBase< TInputImage >
41{
42public:
43
48 typedef SmartPointer< const Self > ConstPointer;
49
51 itkNewMacro( Self );
52
55
71
73 itkStaticConstMacro( InputImageDimension, unsigned int,
74 Superclass::InputImageDimension );
75
77 typedef typename InputImageType::IndexType InputImageIndexType;
78 typedef typename InputImageType::PointType InputImagePointType;
79
80protected:
81
85 ~ImageRandomSampler() override {}
86
88 void GenerateData( void ) override;
89
91 const InputImageRegionType & inputRegionForThread,
92 ThreadIdType threadId ) override;
93
94private:
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
This class is a base class for any image sampler that randomly picks samples.
Superclass::InputImagePixelType InputImagePixelType
Superclass::InputImageType InputImageType
Superclass::InputImagePointer InputImagePointer
Superclass::DataObjectPointer DataObjectPointer
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImageConstPointer InputImageConstPointer
Samples randomly some voxels of an image.
void GenerateData(void) override
Superclass::ImageSampleType ImageSampleType
Superclass::OutputVectorContainerType OutputVectorContainerType
Superclass::InputImagePixelType InputImagePixelType
Superclass::InputImageType InputImageType
InputImageType::IndexType InputImageIndexType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::ImageSampleContainerType ImageSampleContainerType
ImageRandomSampler(const Self &)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
Superclass::ImageSampleValueType ImageSampleValueType
SmartPointer< Self > Pointer
Superclass::MaskType MaskType
ImageRandomSamplerBase< TInputImage > Superclass
Superclass::InputImageRegionType InputImageRegionType
void operator=(const Self &)
Superclass::DataObjectPointer DataObjectPointer
InputImageType::PointType InputImagePointType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
SmartPointer< const Self > ConstPointer
Superclass::InputImageSizeType InputImageSizeType
void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) override
Superclass::InputImagePointer InputImagePointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
A class that defines an image sample, which is the coordinates of a point and its value.
InputImageType::SizeType InputImageSizeType
ImageSampleType::RealType ImageSampleValueType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo