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__