15 #ifndef __ImageRandomCoordinateSampler_h
16 #define __ImageRandomCoordinateSampler_h
19 #include "itkInterpolateImageFunction.h"
20 #include "itkBSplineInterpolateImageFunction.h"
21 #include "itkMersenneTwisterRandomVariateGenerator.h"
36 template <
class TInputImage >
75 Superclass::InputImageDimension );
80 typedef InterpolateImageFunction<
99 itkGetConstMacro(UseRandomSampleRegion,
bool);
100 itkSetMacro(UseRandomSampleRegion,
bool);
112 void PrintSelf( std::ostream& os, Indent indent )
const;
153 #ifndef ITK_MANUAL_INSTANTIATION
154 #include "itkImageRandomCoordinateSampler.txx"
157 #endif // end #ifndef __ImageRandomCoordinateSampler_h
SmartPointer< Self > Pointer
Superclass::InputImagePixelType InputImagePixelType
ImageSampleType::RealType ImageSampleValueType
BSplineInterpolateImageFunction< InputImageType, CoordRepType, double > DefaultInterpolatorType
Superclass::DataObjectPointer DataObjectPointer
InputImageType::PointType InputImagePointType
RandomGeneratorType::Pointer m_RandomGenerator
Superclass::ImageSampleValueType ImageSampleValueType
Superclass::InputImagePointer InputImagePointer
Superclass::InputImageSizeType InputImageSizeType
A class that defines an image sample, which is the coordinates of a point and its value...
virtual void GenerateRandomCoordinate(const InputImageContinuousIndexType &smallestContIndex, const InputImageContinuousIndexType &largestContIndex, InputImageContinuousIndexType &randomContIndex)
Superclass::InputImageConstPointer InputImageConstPointer
InterpolatorType::ContinuousIndexType InputImageContinuousIndexType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::MaskType MaskType
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImagePointType InputImagePointType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
ImageRandomCoordinateSampler Self
InputImagePointType::ValueType InputImagePointValueType
ImageRandomSamplerBase< TInputImage > Superclass
Superclass::InputImageType InputImageType
Superclass::ImageSampleType ImageSampleType
Superclass::InputImagePointValueType InputImagePointValueType
Superclass::InputImageType InputImageType
Superclass::InputImageRegionType InputImageRegionType
virtual void GenerateSampleRegion(const InputImageContinuousIndexType &smallestImageContIndex, const InputImageContinuousIndexType &largestImageContIndex, InputImageContinuousIndexType &smallestContIndex, InputImageContinuousIndexType &largestContIndex)
Samples an image by randomly composing a set of physical coordinates.
Superclass::MaskType MaskType
InputImageType::SizeType InputImageSizeType
virtual ~ImageRandomCoordinateSampler()
void PrintSelf(std::ostream &os, Indent indent) const
itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType
SmartPointer< const Self > ConstPointer
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::InputImagePixelType InputImagePixelType
virtual void GenerateData(void)
Superclass::InputImagePointer InputImagePointer
InputImageType::SpacingType InputImageSpacingType
InterpolateImageFunction< InputImageType, CoordRepType > InterpolatorType
InputImageSpacingType m_SampleRegionSize
Superclass::OutputVectorContainerType OutputVectorContainerType
Superclass::DataObjectPointer DataObjectPointer
void operator=(const Self &)
This class is a base class for any image sampler that randomly picks samples.
bool m_UseRandomSampleRegion
InputImageType::IndexType InputImageIndexType
Superclass::InputImageIndexType InputImageIndexType
ImageRandomCoordinateSampler()
InterpolatorType::Pointer m_Interpolator
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer