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 std::vector<size_t> m_RandomIndices{};
112 static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION
118#ifndef ITK_MANUAL_INSTANTIATION
119# 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.
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.
SmartPointer< const Self > ConstPointer
typename RandomGeneratorType::Pointer RandomGeneratorPointer
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
typename InputImageType::PointType InputImagePointType
void PrintSelf(std::ostream &os, Indent indent) const override
ITK_DISALLOW_COPY_AND_MOVE(ImageRandomSamplerSparseMask)
~ImageRandomSamplerSparseMask() override=default
void GenerateData() override
typename InternalFullSamplerType::Pointer InternalFullSamplerPointer
typename InputImageType::IndexType InputImageIndexType
ImageRandomSamplerSparseMask()=default
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback(void *arg)
A class that defines an image sample, which is the coordinates of a point and its value.
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
const std::vector< ImageSampleType > & m_AllValidSamples
ITK_DISALLOW_COPY_AND_MOVE(UserData)
const std::vector< vcl_size_t > & m_RandomIndices
std::vector< ImageSampleType > & m_Samples