12 #ifndef __itkConnectedAdaptiveThresholdImageFilter_h
13 #define __itkConnectedAdaptiveThresholdImageFilter_h
15 #include "itkConnectedThresholdImageFilter.h"
26 template <
class TInputImage,
class TOutputImage>
28 :
public ConnectedThresholdImageFilter<TInputImage, TOutputImage>
33 typedef ConnectedThresholdImageFilter<TInputImage, TOutputImage>
Superclass;
38 itkFactorylessNewMacro(
Self);
47 typedef typename InputImageType::IndexType
IndexType;
48 typedef typename InputImageType::PixelType
PixelType;
54 m_FineDetectionMode = fine;
55 m_DiscardLastPreview =
false;
65 IndexType CorrectSeedPointPosition(
unsigned int sizeOfVolume,
int lowerTh,
int upperTh);
70 void CropMask(
unsigned int croppingSize);
75 unsigned int AdjustIteratorMask();
85 void SetParameterForFineSegmentation(TOutputImage *iteratorMaskForFineSegmentation,
86 unsigned int adjLowerTh,
87 unsigned int adjUpperTh,
89 bool discardLeafSegmentation);
91 TOutputImage *GetResultImage();
97 void GenerateData()
override;
100 OutputImagePointer m_OutoutImageMaskFineSegmentation;
101 bool m_GrowingDirectionIsUpwards;
102 PixelType m_SeedpointValue;
103 PixelType m_DetectedLeakagePoint;
104 PixelType m_InitValue;
105 unsigned int m_AdjLowerTh;
106 unsigned int m_AdjUpperTh;
110 bool m_FineDetectionMode;
112 bool m_DiscardLastPreview;
113 bool m_SegmentationCancelled;
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkConnectedAdaptiveThresholdImageFilter.txx"