28 #ifndef itkRandomImageSource_h 29 #define itkRandomImageSource_h 53 template<
typename TOutputImage >
76 typedef typename TOutputImage::SizeType
SizeType;
89 itkSetMacro(
Size, SizeType);
90 virtual void SetSize(SizeValueArrayType sizeArray);
93 virtual const SizeValueType *
GetSize()
const;
96 itkSetMacro(Spacing, SpacingType);
97 virtual void SetSpacing(SpacingValueArrayType spacingArray);
100 virtual const SpacingValueType *
GetSpacing()
const;
103 itkSetMacro(Origin, PointType);
104 virtual void SetOrigin(PointValueArrayType originArray);
107 virtual const PointValueType *
GetOrigin()
const;
109 itkSetMacro(Direction, DirectionType);
110 itkGetMacro(Direction, DirectionType);
114 itkSetClampMacro( Min, OutputImagePixelType,
119 itkGetConstMacro(Min, OutputImagePixelType);
123 itkSetClampMacro( Max, OutputImagePixelType,
128 itkGetConstMacro(Max, OutputImagePixelType);
137 outputRegionForThread,
ThreadIdType threadId) ITK_OVERRIDE;
150 typename TOutputImage::PixelType
m_Min;
151 typename TOutputImage::PixelType
m_Max;
160 #ifndef ITK_MANUAL_INSTANTIATION 161 #include "itkRandomImageSource.hxx" virtual void SetSize(SizeType _arg)
virtual void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
virtual void SetSpacing(SpacingType _arg)
SizeType::SizeValueType SizeValueType
PointValueType PointValueArrayType[TOutputImage::ImageDimension]
Represent the size (bounds) of a n-dimensional image.
SpacingValueType SpacingValueArrayType[TOutputImage::ImageDimension]
TOutputImage::PointValueType PointValueType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
virtual const SpacingValueType * GetSpacing() const
DirectionType m_Direction
SmartPointer< const Self > ConstPointer
Base class for all process objects that output image data.
unsigned long SizeValueType
TOutputImage::PixelType m_Max
TOutputImage::PixelType OutputImagePixelType
virtual const PointValueType * GetOrigin() const
SizeValueType SizeValueArrayType[TOutputImage::ImageDimension]
SpacingValueArrayType m_SpacingArray
TOutputImage::SizeType SizeType
TOutputImage::IndexType IndexType
unsigned int ThreadIdType
Generate an n-dimensional image of random pixel values.
virtual void SetOrigin(PointType _arg)
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
TOutputImage::PixelType m_Min
ImageSource< TOutputImage > Superclass
virtual const SizeValueType * GetSize() const
TOutputImage::PointType PointType
TOutputImage::SpacingType SpacingType
PointValueArrayType m_OriginArray
Define additional traits for native types such as int or float.
TOutputImage::RegionType OutputImageRegionType
virtual void GenerateOutputInformation() override
TOutputImage::DirectionType DirectionType
SmartPointer< Self > Pointer
TOutputImage::SpacingValueType SpacingValueType