// ========================================================================= // @author Leonardo Florez Valencia // @email florez-l@javeriana.edu.co // ========================================================================= #ifndef __fpa__Image__Mori__h__ #define __fpa__Image__Mori__h__ #include #include #include #include #include namespace fpa { namespace Image { /** */ template< class _TInputImage, class _TOutputImage, class _TTraits = fpa::Image::DefaultTraits< _TInputImage, _TOutputImage, typename _TOutputImage::PixelType > > class Mori : public fpa::Base::Mori< fpa::Image::Algorithm< _TTraits, fpa::Base::MarksInterface< _TTraits >, fpa::Base::SingleSeedInterface< _TTraits > > > { public: typedef _TInputImage TInputImage; typedef _TOutputImage TOutputImage; 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 TAlgorithm::TMarks TMarks; public: itkNewMacro( Self ); itkTypeMacro( fpa::Image::Mori, fpa::Base::Mori ); public: TOutputImage* GetThresholdedOutput( ); const TOutputImage* GetThresholdedOutput( ) const; protected: Mori( ); virtual ~Mori( ); virtual void _AfterGenerateData( ) override; private: // Purposely not implemented. Mori( const Self& other ); Self& operator=( const Self& other ); protected: unsigned long m_ThresholdedOutputIdx; }; } // ecapseman } // ecapseman #ifndef ITK_MANUAL_INSTANTIATION # include #endif // ITK_MANUAL_INSTANTIATION #endif // __fpa__Image__Mori__h__ // eof - $RCSfile$