19#ifndef itkFastGrowCut_h
20#define itkFastGrowCut_h
57template <
typename TInputImage,
typename TLabelImage,
typename TMaskImage = TLabelImage>
85 using IndexType =
typename InputImageType::IndexType;
86 using SizeType =
typename InputImageType::SizeType;
118 itkGetMacro(DistancePenalty,
double);
129 const LabelImageType *
146 const MaskImageType *
156 static_assert(TInputImage::ImageDimension == 3,
"FastGrowCut only works with 3D images");
157 static_assert(TLabelImage::ImageDimension == 3,
"FastGrowCut only works with 3D images");
158 static_assert(TMaskImage::ImageDimension == 3,
"FastGrowCut only works with 3D images");
173 static constexpr unsigned char NNGBH = 26;
209#ifndef ITK_MANUAL_INSTANTIATION
210# include "itkFastGrowCut.hxx"
unsigned int NodeIndexType
Base class for all data objects in ITK.
std::vector< NodeIndexType > m_NeighborIndexOffsets
const LabelImageType * GetSeedImage()
std::vector< double > m_NeighborDistancePenalties
typename InputImageType::RegionType RegionType
DistanceImageType::Pointer m_DistanceVolume
TLabelImage LabelImageType
SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, Indent indent) const override
void EnlargeOutputRequestedRegion(DataObject *output) override
typename MaskImageType::PixelType MaskPixelType
typename InputImageType::SizeType SizeType
void GenerateData() override
typename InputImageType::SpacingType SpacingType
static constexpr unsigned char NNGBH
void SetMaskImage(const MaskImageType *maskImage)
static constexpr NodeKeyValueType DIST_EPSILON
void GenerateInputRequestedRegion() override
std::vector< unsigned char > m_NumberOfNeighbors
const MaskImageType * GetMaskImage()
typename InputImageType::IndexType IndexType
typename InputImageType::PixelType IntensityPixelType
typename LabelImageType::PixelType LabelPixelType
itk::Image< DistancePixelType, 3 > DistanceImageType
void DijkstraBasedClassificationAHP()
SmartPointer< const Self > ConstPointer
FibHeapNode * m_HeapNodes
TInputImage InputImageType
virtual void SetDistancePenalty(double penalty)
static constexpr NodeKeyValueType DIST_INF
ImageToImageFilter< TInputImage, TLabelImage > Superclass
void SetSeedImage(const LabelImageType *seedImage)
Templated n-dimensional image class.
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
virtual void Modified() const
virtual void SetNthInput(DataObjectPointerArraySizeType idx, DataObject *input)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
constexpr bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potentially different types.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....