// ========================================================================= // @author Leonardo Florez Valencia // @email florez-l@javeriana.edu.co // ========================================================================= #ifndef __fpa__Image__Mori__h__ #define __fpa__Image__Mori__h__ #include #include #include #include namespace fpa { namespace Image { /** */ template< class _TInputImage, class _TOutputImage > 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: 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 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; public: itkNewMacro( Self ); itkTypeMacro( fpa::Image::Mori, fpa::Base::Mori ); public: TMarks* GetOutputLevels( ) { return( this->GetMarks( ) ); } const TMarks* GetOutputLevels( ) const { return( this->GetMarks( ) ); } protected: Mori( ) : Superclass( ) { } virtual ~Mori( ) { } private: // Purposely not implemented. Mori( const Self& other ); Self& operator=( const Self& other ); }; } // ecapseman } // ecapseman #endif // __fpa__Image__Mori__h__ // eof - $RCSfile$