19#ifndef itkGenerateImageSource_h
20#define itkGenerateImageSource_h
40template <
typename TOutputImage>
54 using PixelType =
typename OutputImageType::PixelType;
68 static constexpr unsigned int NDimensions = TOutputImage::ImageDimension;
73 itkSetMacro(UseReferenceImage,
bool);
74 itkBooleanMacro(UseReferenceImage);
75 itkGetConstMacro(UseReferenceImage,
bool);
90 itkSetVectorMacro(Spacing,
const float, NDimensions);
99 itkSetVectorMacro(Origin,
const float, NDimensions);
148 bool m_UseReferenceImage{
false };
153#ifndef ITK_MANUAL_INSTANTIATION
154# include "itkGenerateImageSource.hxx"
a Base class for image sources which need to have image size, and other meta-data set.
void SetOutputParametersFromImage(const ReferenceImageBaseType *image)
typename TOutputImage::SizeType SizeType
itkSetInputMacro(ReferenceImage, ReferenceImageBaseType)
typename OutputImageType::PointType PointType
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateOutputInformation() override
typename OutputImageType::RegionType RegionType
~GenerateImageSource() override=default
typename OutputImageType::IndexType IndexType
typename OutputImageType::PixelType PixelType
typename TOutputImage::SizeValueType SizeValueType
itkGetInputMacro(ReferenceImage, ReferenceImageBaseType)
typename OutputImageType::DirectionType DirectionType
typename OutputImageType::SpacingType SpacingType
Base class for templated image classes.
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
ImageBaseType::DirectionType DirectionType
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Represent a n-dimensional size (bounds) of a n-dimensional image.