18#ifndef itkSignedDanielssonDistanceMapImageFilter_h
19#define itkSignedDanielssonDistanceMapImageFilter_h
29template <
typename InputPixelType>
38 return InputPixelType{};
93template <
typename TInputImage,
typename TOutputImage,
typename TVoronoiImage = TInputImage>
134 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
156 itkSetMacro(SquaredDistance,
bool);
159 itkGetConstReferenceMacro(SquaredDistance,
bool);
162 itkBooleanMacro(SquaredDistance);
165 itkSetMacro(UseImageSpacing,
bool);
168 itkGetConstReferenceMacro(UseImageSpacing,
bool);
171 itkBooleanMacro(UseImageSpacing);
175 itkSetMacro(InsideIsPositive,
bool);
179 itkGetConstReferenceMacro(InsideIsPositive,
bool);
184 itkBooleanMacro(InsideIsPositive);
211 using Superclass::MakeOutput;
215#ifdef ITK_USE_CONCEPT_CHECKING
235 bool m_SquaredDistance{};
236 bool m_UseImageSpacing{
true };
237 bool m_InsideIsPositive{};
242#ifndef ITK_MANUAL_INSTANTIATION
243# include "itkSignedDanielssonDistanceMapImageFilter.hxx"
InputPixelType operator()(InputPixelType input) const
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
Base class for filters that take an image as input and produce an image as output.
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
Templated n-dimensional image class.
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
This filter computes the signed distance map of the input image as an approximation with pixel accura...
typename InputImageType::OffsetType OffsetType
void GenerateData() override
VectorImageType * GetVectorDistanceMap()
typename VoronoiImageType::Pointer VoronoiImagePointer
typename InputImageType::PixelType PixelType
VoronoiImageType * GetVoronoiMap()
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
typename VectorImageType::Pointer VectorImagePointer
typename RegionType::IndexType IndexType
typename VoronoiImageType::PixelType VoronoiPixelType
typename RegionType::SizeType SizeType
typename InputImageType::RegionType RegionType
OutputImageType * GetDistanceMap()
TVoronoiImage VoronoiImageType
SignedDanielssonDistanceMapImageFilter()
~SignedDanielssonDistanceMapImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....