/**
*/
-template< class _TRawImage, class _TLabelsImage >
+template< class _TRawImage, class _TCostsImage, class _TLabelsImage >
class RandomWalkLabelling
: public fpa::Filters::Image::RegionGrow< _TRawImage, _TLabelsImage, typename _TLabelsImage::PixelType >
{
public:
- typedef _TRawImage TRawImage;
+ typedef _TRawImage TRawImage;
+ typedef _TCostsImage TCostsImage;
typedef _TLabelsImage TLabelsImage;
+ typedef typename TCostsImage::PixelType TScalar;
typedef typename TLabelsImage::PixelType TLabel;
typedef fpa::Filters::Image::RegionGrow< TRawImage, TLabelsImage, TLabel > Superclass;
itkGetConstMacro( UpperThreshold, double );
itkSetMacro( UpperThreshold, double );
- fpaFilterInputMacro( InputMarks, TLabelsImage );
+ itkGetConstMacro( MaxCost, TScalar );
+ itkSetMacro( MaxCost, TScalar );
+
+ fpaFilterInputMacro( InputCosts, TCostsImage );
fpaFilterInputMacro( InputPath, TPath );
public:
double m_LowerThreshold;
double m_UpperThreshold;
+ TScalar m_MaxCost;
+
unsigned long m_CurrIdx;
};