X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FFunctors%2FRegionGrowBinaryThreshold.hxx;fp=lib%2Ffpa%2FImage%2FFunctors%2FRegionGrowBinaryThreshold.hxx;h=0000000000000000000000000000000000000000;hb=6585142e69f2ff5e4fceb21320ab3795c3e82218;hp=53e3b2edb2e951872146848d1fc39e8902c8be40;hpb=91510d06bf1895f684f9f2f6508ab7d97154576d;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Functors/RegionGrowBinaryThreshold.hxx b/lib/fpa/Image/Functors/RegionGrowBinaryThreshold.hxx deleted file mode 100644 index 53e3b2e..0000000 --- a/lib/fpa/Image/Functors/RegionGrowBinaryThreshold.hxx +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef __fpa__Image__Functors__RegionGrowBinaryThreshold__hxx__ -#define __fpa__Image__Functors__RegionGrowBinaryThreshold__hxx__ - -// ------------------------------------------------------------------------- -template< class _TImage > -bool fpa::Image::Functors::RegionGrowBinaryThreshold< _TImage >:: -Evaluate( const TIndex& a, const TIndex& b ) const -{ - const _TImage* im = - dynamic_cast< const _TImage* >( this->m_Image.GetPointer( ) ); - TPixel v = im->GetPixel( b ); - return( this->m_LowerThreshold <= v && v <= this->m_UpperThreshold ); -} - -// ------------------------------------------------------------------------- -template< class _TImage > -fpa::Image::Functors::RegionGrowBinaryThreshold< _TImage >:: -RegionGrowBinaryThreshold( ) - : Superclass( ), - m_LowerThreshold( TPixel( 0 ) ), - m_UpperThreshold( std::numeric_limits< TPixel >::max( ) ) -{ -} - -// ------------------------------------------------------------------------- -template< class _TImage > -fpa::Image::Functors::RegionGrowBinaryThreshold< _TImage >:: -~RegionGrowBinaryThreshold( ) -{ -} - -#endif // __fpa__Image__Functors__RegionGrowBinaryThreshold__hxx__ - -// eof - $RCSfile$