18#ifndef __ImageRandomCoordinateSampler_h
19#define __ImageRandomCoordinateSampler_h
22#include "itkInterpolateImageFunction.h"
23#include "itkBSplineInterpolateImageFunction.h"
24#include "itkMersenneTwisterRandomVariateGenerator.h"
39template<
class TInputImage >
79 Superclass::InputImageDimension );
84 typedef InterpolateImageFunction<
87 typedef BSplineInterpolateImageFunction<
105 itkGetConstMacro( UseRandomSampleRegion,
bool );
106 itkSetMacro( UseRandomSampleRegion,
bool );
118 void PrintSelf( std::ostream & os, Indent indent )
const override;
128 ThreadIdType threadId )
override;
164#ifndef ITK_MANUAL_INSTANTIATION
165#include "itkImageRandomCoordinateSampler.hxx"
Samples an image by randomly composing a set of physical coordinates.
Superclass::InputImagePointType InputImagePointType
void GenerateData(void) override
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImagePointer InputImagePointer
SmartPointer< Self > Pointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::ImageSampleType ImageSampleType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::InputImageSizeType InputImageSizeType
virtual void GenerateSampleRegion(const InputImageContinuousIndexType &smallestImageContIndex, const InputImageContinuousIndexType &largestImageContIndex, InputImageContinuousIndexType &smallestContIndex, InputImageContinuousIndexType &largestContIndex)
InterpolateImageFunction< InputImageType, CoordRepType > InterpolatorType
void PrintSelf(std::ostream &os, Indent indent) const override
void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) override
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
void BeforeThreadedGenerateData(void) override
void operator=(const Self &)
Superclass::InputImageType InputImageType
ImageRandomSamplerBase< TInputImage > Superclass
~ImageRandomCoordinateSampler() override
BSplineInterpolateImageFunction< InputImageType, CoordRepType, double > DefaultInterpolatorType
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::OutputVectorContainerType OutputVectorContainerType
Superclass::InputImagePointValueType InputImagePointValueType
ImageRandomCoordinateSampler(const Self &)
Superclass::ImageSampleValueType ImageSampleValueType
RandomGeneratorPointer m_RandomGenerator
Superclass::MaskType MaskType
RandomGeneratorType::Pointer RandomGeneratorPointer
Superclass::DataObjectPointer DataObjectPointer
ImageRandomCoordinateSampler()
Superclass::InputImageIndexType InputImageIndexType
bool m_UseRandomSampleRegion
InterpolatorPointer m_Interpolator
itkGetModifiableObjectMacro(Interpolator, InterpolatorType)
ImageRandomCoordinateSampler Self
InputImageSpacingType m_SampleRegionSize
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
InterpolatorType::Pointer InterpolatorPointer
InputImageType::SpacingType InputImageSpacingType
virtual void GenerateRandomCoordinate(const InputImageContinuousIndexType &smallestContIndex, const InputImageContinuousIndexType &largestContIndex, InputImageContinuousIndexType &randomContIndex)
InterpolatorType::ContinuousIndexType InputImageContinuousIndexType
Superclass::InputImagePixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
This class is a base class for any image sampler that randomly picks samples.
Superclass::InputImagePixelType InputImagePixelType
Superclass::InputImageType InputImageType
Superclass::InputImagePointer InputImagePointer
Superclass::MaskType MaskType
Superclass::DataObjectPointer DataObjectPointer
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImageConstPointer InputImageConstPointer
A class that defines an image sample, which is the coordinates of a point and its value.
InputImageType::IndexType InputImageIndexType
InputImagePointType::ValueType InputImagePointValueType
InputImageType::SizeType InputImageSizeType
ImageSampleType::RealType ImageSampleValueType
InputImageType::PointType InputImagePointType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.