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->GraftOutput(this->GetOutput());
56 m_MinMaxFilter->Update();
57 this->GraftOutput(m_MinMaxFilter->GetOutput());
59 for (
PixelType label = m_MinMaxFilter->GetMinimum() + 1; label <= m_MinMaxFilter->GetMaximum(); ++label)
62 edgeFilter->SetInput(m_MinMaxFilter->GetOutput());
63 edgeFilter->SetForegroundValue(label);
65 m_PathList->PushBack(edgeFilter->GetOutput());
69 template <
class TInputImage,
class TOutputPath>
72 Superclass::PrintSelf(os, indent);