typedef itk::SmartPointer< const Self > ConstPointer;
// Superclass' types
- typedef typename Superclass::TInputImage TInputImage;
- typedef typename Superclass::TOutputValue TOutputValue;
- typedef typename Superclass::TIndex TIndex;
- typedef typename I::PixelType TPixel;
+ typedef I TInputImage;
+ typedef typename I::IndexType TIndex;
+ typedef typename I::PixelType TPixel;
public:
itkNewMacro( Self );
itkSetMacro( UpperThreshold, TPixel );
public:
- virtual TOutputValue Evaluate( const TIndex& idx ) const
+ virtual bool Evaluate( const TIndex& idx ) const
{
- const I* img = this->GetInputImage( );
+ const I* img = this->GetSpace( );
if( img != NULL )
{
TPixel v = img->GetPixel( idx );
return(
- this->m_LowerThreshold <= v && v < this->m_UpperThreshold
+ !( v < this->m_LowerThreshold || this->m_UpperThreshold < v )
);
} // fi