21 #ifndef otbOrientationPathFunction_hxx
22 #define otbOrientationPathFunction_hxx
26 #include "itkNumericTraits.h"
33 template <
class TInputPath,
class TOutput>
36 this->Superclass::PrintSelf(os, indent);
39 template <
class TInputPath,
class TOutput>
48 vertexList = path.GetVertexList();
49 nbPath = vertexList->Size();
53 cindex = vertexList->GetElement(0);
56 cindex = vertexList->GetElement(1);
60 Theta = std::atan2(y2 - y1, x2 - x1);
64 itkExceptionMacro(<<
"OrientationPathFunction::Evaluate() FAILED -- path must have 2 points");
69 template <
class TInputPath,
class TOutput>
72 if (!this->GetInputPath())
75 return static_cast<OutputType>(itk::NumericTraits<OutputType>::max());
78 OutputType Result = Evaluate(*(this->GetInputPath()));