#include <fpa/Base/MinimumSpanningTree.h>
#include <itkImage.h>
+#include <fpa/Image/PolyLineParametricPath.h>
namespace fpa
{
typedef typename Superclass::TCollisions TCollisions;
typedef typename Superclass::TVertices TVertices;
+ typedef fpa::Image::PolyLineParametricPath< _VDim > TPolyLineParametricPath;
+
public:
itkNewMacro( Self );
itkTypeMacro(
);
public:
- virtual TVertex GetParent( const TVertex& v ) const override
- {
- return( v + this->GetPixel( v ) );
- }
- virtual void SetParent( const TVertex& v, const TVertex& p ) override
- {
- this->SetPixel( v, p - v );
- }
+ virtual TVertex GetParent( const TVertex& v ) const override;
+ virtual void SetParent( const TVertex& v, const TVertex& p ) override;
+
+ void GetPolyLineParametricPath(
+ typename TPolyLineParametricPath::Pointer& path,
+ const TVertex& a
+ ) const;
+ void GetPolyLineParametricPath(
+ typename TPolyLineParametricPath::Pointer& path,
+ const TVertex& a, const TVertex& b
+ ) const;
protected:
- MinimumSpanningTree( )
- : Superclass( )
- { }
- virtual ~MinimumSpanningTree( )
- { }
+ MinimumSpanningTree( );
+ virtual ~MinimumSpanningTree( );
private:
MinimumSpanningTree( const Self& other );
} // ecapseman
+#ifndef ITK_MANUAL_INSTANTIATION
+# include <fpa/Image/MinimumSpanningTree.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+
#endif // __fpa__Image__MinimumSpanningTree__h__
// eof - $RCSfile$