18#ifndef itkImageRandomSampler_h
19#define itkImageRandomSampler_h
38template <
class TInputImage>
57 using typename Superclass::DataObjectPointer;
101 static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION
107#ifndef ITK_MANUAL_INSTANTIATION
108# include "itkImageRandomSampler.hxx"
This class is a base class for any image sampler that randomly picks samples.
typename InputImageType::ConstPointer InputImageConstPointer
TInputImage InputImageType
typename InputImageType::RegionType InputImageRegionType
typename ImageSampleContainerType::Pointer ImageSampleContainerPointer
typename InputImageType::Pointer InputImagePointer
ImageMaskSpatialObject< Self::InputImageDimension > MaskType
typename InputImageType::PixelType InputImagePixelType
Samples randomly some voxels of an image.
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback(void *arg)
~ImageRandomSampler() override=default
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
typename InputImageType::PointType InputImagePointType
SmartPointer< const Self > ConstPointer
typename InputImageType::IndexType InputImageIndexType
ImageRandomSampler()=default
ITK_DISALLOW_COPY_AND_MOVE(ImageRandomSampler)
void GenerateData() override
A class that defines an image sample, which is the coordinates of a point and its value.
typename InputImageType::SizeType InputImageSizeType
typename ImageSampleType::RealType ImageSampleValueType
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
ITK_DISALLOW_COPY_AND_MOVE(UserData)
const std::vector< double > & m_RandomNumberList
const InputImageType & m_InputImage
std::vector< ImageSampleType > & m_Samples