-// -------------------------------------------------------------------------
-template< class _TImage, class _TLabels, class _TScalar >
-_TScalar fpa::Common::OriginalRandomWalker< _TImage, _TLabels, _TScalar >::
-_W( const TIndex& i, const TIndex& j )
-{
- const TImage* in = this->GetInput( );
- TScalar a = TScalar( in->GetPixel( i ) );
- TScalar b = TScalar( in->GetPixel( j ) );
- TScalar v = std::exp( -this->m_Beta * std::fabs( a - b ) );
- if( v < this->m_Epsilon )
- return( this->m_Epsilon );
- else
- return( v );
-}
-