#include <fpa/Base/MarksInterface.h>
#include <fpa/Base/SingleSeedInterface.h>
#include <fpa/Image/Algorithm.h>
+#include <fpa/Image/DefaultTraits.h>
namespace fpa
{
{
/**
*/
- template< class _TInputImage, class _TOutputImage >
+ template< class _TInputImage, class _TOutputImage, class _TTraits = fpa::Image::DefaultTraits< _TInputImage, _TOutputImage, typename _TOutputImage::PixelType > >
class Mori
- : public fpa::Base::Mori< fpa::Image::Algorithm< _TInputImage, _TOutputImage, fpa::Base::MarksInterface< typename _TInputImage::IndexType >, fpa::Base::SingleSeedInterface< typename _TInputImage::IndexType, typename _TInputImage::PointType, typename _TInputImage::PixelType, typename _TOutputImage::PixelType, typename _TOutputImage::PixelType, typename _TInputImage::IndexType::LexicographicCompare > > >
+ : public fpa::Base::Mori< fpa::Image::Algorithm< _TTraits, fpa::Base::MarksInterface< _TTraits >, fpa::Base::SingleSeedInterface< _TTraits > > >
{
public:
typedef _TInputImage TInputImage;
typedef _TOutputImage TOutputImage;
-
- typedef typename TInputImage::IndexType TVertex;
- typedef typename TInputImage::PointType TPoint;
- typedef typename TVertex::LexicographicCompare TVertexCompare;
- typedef typename TInputImage::PixelType TInputValue;
- typedef typename TOutputImage::PixelType TOutputValue;
- typedef typename TOutputImage::PixelType TFrontId;
-
- typedef fpa::Base::MarksInterface< TVertex > TMarksInterface;
- typedef fpa::Base::SingleSeedInterface< TVertex, TPoint, TInputValue, TOutputValue, TFrontId, TVertexCompare > TSeedsInterface;
- typedef fpa::Image::Algorithm< TInputImage, TOutputImage, TMarksInterface, TSeedsInterface > TAlgorithm;
+ typedef _TTraits TTraits;
+ typedef fpa::Base::MarksInterface< _TTraits > TMarksInterface;
+ typedef fpa::Base::SingleSeedInterface< _TTraits > TSeedsInterface;
+ typedef fpa::Image::Algorithm< TTraits, TMarksInterface, TSeedsInterface > TAlgorithm;
typedef Mori Self;
typedef fpa::Base::Mori< TAlgorithm > Superclass;
typedef itk::SmartPointer< Self > Pointer;
typedef itk::SmartPointer< const Self > ConstPointer;
- typedef typename TSeedsInterface::TNode TNode;
- typedef typename TSeedsInterface::TNodes TNodes;
- typedef typename TAlgorithm::TMarks TMarks;
+ typedef typename TAlgorithm::TMarks TMarks;
public:
itkNewMacro( Self );