-#ifndef __FPA__IMAGE__FASTMARCHING__H__
-#define __FPA__IMAGE__FASTMARCHING__H__
+#ifndef __fpa__Image__FastMarching__h__
+#define __fpa__Image__FastMarching__h__
-#include <itkImage.h>
-#include <itkImageFunction.h>
-#include <itkImageToImageFilter.h>
-#include <itkIndex.h>
#include <fpa/Base/FastMarching.h>
#include <fpa/Image/Algorithm.h>
namespace Image
{
/**
- * @param I Input image type
*/
- template< class I, class C >
+ template< class _TInputImage, class _TOutputImage >
class FastMarching
- : public Algorithm< I, fpa::Base::FastMarching< typename I::IndexType, C, typename I::PixelType, itk::Functor::IndexLexicographicCompare< I::ImageDimension >, itk::ImageToImageFilter< I, itk::Image< C, I::ImageDimension > > > >
+ : public fpa::Base::FastMarching< fpa::Image::Algorithm< _TInputImage, _TOutputImage > >
{
public:
- // Standard class typdedefs
- typedef typename I::IndexType TVertex;
- typedef typename I::PixelType TVertexValue;
- typedef itk::Image< C, I::ImageDimension > TCostImage;
- typedef itk::ImageToImageFilter< I, TCostImage > TBaseFilter;
- typedef fpa::Base::FastMarching< TVertex, C, TVertexValue, itk::Functor::IndexLexicographicCompare< I::ImageDimension >, TBaseFilter > TBaseAlgorithm;
-
- typedef FastMarching Self;
- typedef Algorithm< I, TBaseAlgorithm > Superclass;
- typedef itk::SmartPointer< Self > Pointer;
- typedef itk::SmartPointer< const Self > ConstPointer;
+ typedef FastMarching Self;
+ typedef fpa::Image::Algorithm< _TInputImage, _TOutputImage > TAlgorithm;
+ typedef fpa::Base::FastMarching< TAlgorithm > Superclass;
+ typedef itk::SmartPointer< Self > Pointer;
+ typedef itk::SmartPointer< const Self > ConstPointer;
+
+ typedef typename Superclass::TOutput TOutput;
+ typedef typename Superclass::TVertex TVertex;
+ typedef typename Superclass::TFastMarchingNeighbor TFastMarchingNeighbor;
+ typedef typename Superclass::TFastMarchingNeighborhood TFastMarchingNeighborhood;
public:
itkNewMacro( Self );
- itkTypeMacro( FastMarching, fpaBaseFastMarching );
+ itkTypeMacro( fpa::Image::FastMarching, fpa::Base::FastMarching );
protected:
- FastMarching( )
- : Superclass( )
- { }
- virtual ~FastMarching( )
- { }
+ FastMarching( );
+ virtual ~FastMarching( );
+
+ virtual TFastMarchingNeighborhood _FastMarchingNeighbors( const TVertex& v ) const override;
private:
- // Purposely not implemented
- FastMarching( const Self& );
- void operator=( const Self& );
+ // Purposely not defined
+ FastMarching( const Self& other );
+ Self& operator=( const Self& other );
};
} // ecapseman
} // ecapseman
-#endif // __FPA__IMAGE__FASTMARCHING__H__
+#ifndef ITK_MANUAL_INSTANTIATION
+# include <fpa/Image/FastMarching.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+
+#endif // __fpa__Image__FastMarching__h__
// eof - $RCSfile$