X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FCTBronchi%2FMoriLabelling.hxx;fp=appli%2FCTBronchi%2FMoriLabelling.hxx;h=6f7246cbced10880b7c220f963b3c5742cdc7f00;hb=e977d1bb57ca61759a1fb1a1d0d8937718ef8722;hp=69e968bc1c377861f3012deb59156b2d1a6dc3b3;hpb=2047276c8f1a02432fbcc7014722d460d6c1e60f;p=FrontAlgorithms.git diff --git a/appli/CTBronchi/MoriLabelling.hxx b/appli/CTBronchi/MoriLabelling.hxx index 69e968b..6f7246c 100644 --- a/appli/CTBronchi/MoriLabelling.hxx +++ b/appli/CTBronchi/MoriLabelling.hxx @@ -9,43 +9,43 @@ #include // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -const typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: -TLabelImage* CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +const typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: +TLabelImage* CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: GetInputLabelImage( ) const { return( this->GetLabels( ) ); } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: SetInputLabelImage( TLabelImage* image ) { this->SetLabels( image ); } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -const typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: -TInputImage* CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +const typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: +TInputImage* CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: GetInputRawImage( ) const { return( this->GetInput( ) ); } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: SetInputRawImage( TInputImage* image ) { this->SetInput( image ); } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: -TInputValue CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: +TInputValue CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: GetUpperThreshold( ) const { const TThresholdFunction* func = @@ -57,8 +57,8 @@ GetUpperThreshold( ) const } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: SetUpperThreshold( TInputValue t ) { TThresholdFunction* func = @@ -68,25 +68,25 @@ SetUpperThreshold( TInputValue t ) } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: -TOutputValue CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: +TOutputValue CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: GetOutsideValue( ) const { return( this->GetInitValue( ) ); } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: SetOutsideLabel( TOutputValue o ) { this->SetInitValue( o ); } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: MoriLabelling( ) : Superclass( ), m_InsideLabel( TOutputValue( 0 ) ) @@ -96,16 +96,16 @@ MoriLabelling( ) } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: ~MoriLabelling( ) { } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: -TNodes CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +typename CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: +TNodes CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: _UnifySeeds( ) { this->m_Seeds.clear( ); @@ -172,8 +172,8 @@ _UnifySeeds( ) } // ------------------------------------------------------------------------- -template< class _TInputImage, class _TLabelImage > -void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: +template< class _TInputImage, class _TLabelImage, class _TTraits > +void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage, _TTraits >:: _UpdateOutputValue( TNode& n ) { const TLabelImage* input_labels = this->GetInputLabelImage( );