1 #ifndef __CPEXTENSIONS__ALGORITHMS__FLUXMEDIALNESS__H__
2 #define __CPEXTENSIONS__ALGORITHMS__FLUXMEDIALNESS__H__
4 #include <cpExtensions/Algorithms/GradientImageFunctionBase.h>
12 template< class _TGradient, class _TMask = itk::Image< unsigned char, _TGradient::ImageDimension > >
14 : public GradientImageFunctionBase< _TGradient, _TMask >
17 typedef FluxMedialness Self;
18 typedef GradientImageFunctionBase< _TGradient, _TMask > Superclass;
19 typedef itk::SmartPointer< Self > Pointer;
20 typedef itk::SmartPointer< const Self > ConstPointer;
22 itkStaticConstMacro( Dimension, unsigned int, Superclass::Dimension );
24 typedef typename Superclass::TOutput TOutput;
25 typedef typename Superclass::TScalar TScalar;
26 typedef typename Superclass::TIndex TIndex;
27 typedef typename Superclass::TVector TVector;
28 typedef typename Superclass::TPoint TPoint;
30 typedef std::vector< double > TRCandidates;
34 itkTypeMacro( FluxMedialness, GradientImageFunctionBase );
36 itkGetConstMacro( RadiusStep, double );
37 itkGetConstMacro( MinRadius, double );
38 itkGetConstMacro( MaxRadius, double );
39 itkGetConstMacro( RadialSampling, unsigned int );
41 itkSetMacro( RadiusStep, double );
42 itkSetMacro( MinRadius, double );
43 itkSetMacro( MaxRadius, double );
44 itkSetMacro( RadialSampling, unsigned int );
48 virtual ~FluxMedialness( );
50 virtual TOutput _Evaluate( const TIndex& i ) const cpExtensions_OVERRIDE;
53 // Purposely not implemented.
54 FluxMedialness( const Self& );
55 void operator=( const Self& );
60 unsigned int m_RadialSampling;
68 #ifndef ITK_MANUAL_INSTANTIATION
69 # include <cpExtensions/Algorithms/FluxMedialness.hxx>
70 #endif // ITK_MANUAL_INSTANTIATION
72 #endif // __CPEXTENSIONS__ALGORITHMS__FLUXMEDIALNESS__H__