18#ifndef itkImageRandomSamplerSparseMask_h
19#define itkImageRandomSamplerSparseMask_h
22#include "itkMersenneTwisterRandomVariateGenerator.h"
37template <
class TInputImage>
56 using typename Superclass::DataObjectPointer;
91 PrintSelf(std::ostream & os, Indent indent)
const override;
110#ifndef ITK_MANUAL_INSTANTIATION
111# include "itkImageRandomSamplerSparseMask.hxx"
Samples all voxels in the InputImageRegion.
SmartPointer< Self > Pointer
This class is a base class for any image sampler that randomly picks samples.
SpatialObject< Self::InputImageDimension > MaskType
typename ImageSampleContainerType::Pointer ImageSampleContainerPointer
Samples randomly some voxels of an image.
SmartPointer< const Self > ConstPointer
typename RandomGeneratorType::Pointer RandomGeneratorPointer
void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) override
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
typename InputImageType::PointType InputImagePointType
void PrintSelf(std::ostream &os, Indent indent) const override
ITK_DISALLOW_COPY_AND_MOVE(ImageRandomSamplerSparseMask)
void BeforeThreadedGenerateData() override
~ImageRandomSamplerSparseMask() override=default
void GenerateData() override
typename InternalFullSamplerType::Pointer InternalFullSamplerPointer
typename InputImageType::IndexType InputImageIndexType
ImageRandomSamplerSparseMask()=default
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
A class that defines an image sample, which is the coordinates of a point and its value.
TInputImage InputImageType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::Pointer InputImagePointer
TOutputVectorContainer OutputVectorContainerType
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.