]> Creatis software - FrontAlgorithms.git/blobdiff - appli/CTBronchi/MoriLabelling.hxx
...
[FrontAlgorithms.git] / appli / CTBronchi / MoriLabelling.hxx
index e654b09278e67537e2ac0b25e3e633d7c29237e1..7963416db6fea8d16a5142af48a41834f3a0dc81 100644 (file)
@@ -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__