// @author Leonardo Florez Valencia
// @email florez-l@javeriana.edu.co
// =========================================================================
-#ifndef __fpa__Common__OriginalRandomWalker__h__
-#define __fpa__Common__OriginalRandomWalker__h__
+#ifndef __fpa__Common__RandomWalker__h__
+#define __fpa__Common__RandomWalker__h__
#include <fpa/Config.h>
#include <map>
/**
*/
template< class _TImage, class _TLabels, class _TScalar = float >
- class OriginalRandomWalker
+ class RandomWalker
: public itk::ImageToImageFilter< _TImage, _TLabels >
{
public:
typedef _TLabels TLabels;
typedef _TScalar TScalar;
- typedef OriginalRandomWalker Self;
+ typedef RandomWalker Self;
typedef itk::ImageToImageFilter< TImage, TLabels > Superclass;
typedef itk::SmartPointer< Self > Pointer;
typedef itk::SmartPointer< const Self > ConstPointer;
public:
itkNewMacro( Self );
itkTypeMacro(
- fpa::Common::OriginalRandomWalker, itk::ImageToImageFilter
+ fpa::Common::RandomWalker, itk::ImageToImageFilter
);
itkGetConstObjectMacro( EdgeFunction, TEdgeFunction );
fpaFilterInputMacro( InputLabels, TLabels );
fpaFilterOutputMacro( OutputProbabilities, TScalarImage );
- /* TODO
- public:
- void AddSeed( const TIndex& seed, const TLabel& label );
- */
-
protected:
- OriginalRandomWalker( );
- virtual ~OriginalRandomWalker( );
+ RandomWalker( );
+ virtual ~RandomWalker( );
virtual void GenerateData( ) override;
private:
// Purposely not implemented
- OriginalRandomWalker( const Self& other );
+ RandomWalker( const Self& other );
Self& operator=( const Self& other );
protected:
- /* TODO
- std::vector< TIndex > m_Seeds;
- std::vector< TLabel > m_Labels;
- */
-
typename TEdgeFunction::Pointer m_EdgeFunction;
-
itk::SimpleFastMutexLock m_Mutex;
};
} // ecapseman
#ifndef ITK_MANUAL_INSTANTIATION
-# include <fpa/Common/OriginalRandomWalker.hxx>
+# include <fpa/Common/RandomWalker.hxx>
#endif // ITK_MANUAL_INSTANTIATION
-#endif // __fpa__Common__OriginalRandomWalker__h__
+#endif // __fpa__Common__RandomWalker__h__
// eof - $RCSfile$