22 #ifndef otbPersistentVectorizationImageFilter_hxx
23 #define otbPersistentVectorizationImageFilter_hxx
27 #include "itkProgressReporter.h"
32 template <
class TInputImage,
class TOutputPath>
35 m_MinMaxFilter = MinMaxFilterType::New();
36 m_PathList = PathListType::New();
39 template <
class TInputImage,
class TOutputPath>
45 template <
class TInputImage,
class TOutputPath>
50 template <
class TInputImage,
class TOutputPath>
54 m_MinMaxFilter->SetInput(this->GetInput());
55 m_MinMaxFilter->Update();
57 for (
PixelType label = m_MinMaxFilter->GetMinimum() + 1; label <= m_MinMaxFilter->GetMaximum(); ++label)
60 edgeFilter->SetInput(this->GetInput());
61 edgeFilter->SetForegroundValue(label);
63 m_PathList->PushBack(edgeFilter->GetOutput());
67 template <
class TInputImage,
class TOutputPath>
70 Superclass::PrintSelf(os, indent);
void Reset(void) override
PersistentVectorizationImageFilter()
void GenerateData() override
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void Synthetize(void) override
ImageToEdgePathFilterType::Pointer ImageToEdgePathFilterPointerType
TInputImage::PixelType PixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.