X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FCTBronchi%2FMoriLabelling.hxx;fp=appli%2FCTBronchi%2FMoriLabelling.hxx;h=7963416db6fea8d16a5142af48a41834f3a0dc81;hb=9ddfa27c59f7a0cdea8758b8aff1d9cd80c60d99;hp=e654b09278e67537e2ac0b25e3e633d7c29237e1;hpb=b6c80dbd5be1caf6cbdbfc21d2075021c57d7af2;p=FrontAlgorithms.git diff --git a/appli/CTBronchi/MoriLabelling.hxx b/appli/CTBronchi/MoriLabelling.hxx index e654b09..7963416 100644 --- a/appli/CTBronchi/MoriLabelling.hxx +++ b/appli/CTBronchi/MoriLabelling.hxx @@ -45,18 +45,17 @@ template< class _TInputImage, class _TLabelImage > void CTBronchi::MoriLabelling< _TInputImage, _TLabelImage >:: _UpdateOutputValue( TNode& n ) { - this->Superclass::_UpdateOutputValue( n ); + this->TBase::_UpdateOutputValue( n ); if( n.FrontId != 0 ) { const TLabelImage* input_labels = this->GetInputLabels( ); - if( input_labels->GetPixel( n.Vertex ) == this->GetInsideValue( ) ) - n.Value = TOutputValue( 1 ); // this->GetInsideLabel( ); - else + if( input_labels->GetPixel( n.Vertex ) != this->GetInputInsideValue( ) ) n.Value = TOutputValue( 0 ); - /* TODO - if( input_labels->GetPixel( n.Vertex ) == this->GetInsideValue( ) ) - */ + else + n.Value = this->GetInsideValue( ); + } // fi + this->GetOutput( )->SetPixel( n.Vertex, n.Value ); } #endif // __CTBronchi__MoriLabelling__hxx__