1 #ifndef __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__
2 #define __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__
4 #include <itkImageFunction.h>
15 class RegionGrowAllBelongsFunction
16 : public itk::ImageFunction< I, bool >
19 /// Type-related and pointers
20 typedef RegionGrowAllBelongsFunction Self;
21 typedef itk::ImageFunction< I, bool > Superclass;
22 typedef itk::SmartPointer< Self > Pointer;
23 typedef itk::SmartPointer< const Self > ConstPointer;
26 typedef typename Superclass::InputImageType InputImageType;
27 typedef typename Superclass::InputPixelType InputPixelType;
28 typedef typename Superclass::OutputType OutputType;
29 typedef typename Superclass::CoordRepType CoordRepType;
30 typedef typename Superclass::IndexType IndexType;
31 typedef typename Superclass::IndexValueType IndexValueType;
32 typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
33 typedef typename Superclass::PointType PointType;
37 itkTypeMacro( RegionGrowAllBelongsFunction, itkImageFunction );
40 virtual OutputType Evaluate( const PointType& point ) const
43 this->ConvertPointToNearestIndex( point, index );
44 return( this->EvaluateAtIndex( index ) );
46 virtual OutputType EvaluateAtContinuousIndex(
47 const ContinuousIndexType& cindex
51 this->ConvertContinuousIndexToNearestIndex( cindex, index );
52 return( this->EvaluateAtIndex( index ) );
54 virtual OutputType EvaluateAtIndex( const IndexType& index ) const
58 RegionGrowAllBelongsFunction( )
61 virtual ~RegionGrowAllBelongsFunction( )
65 // Purposely not implemented
66 RegionGrowAllBelongsFunction( const Self& );
67 void operator=( const Self& );
76 #endif // __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__