typedef itk::RandomImageSource< TInputImage > TImageSource;
typedef itk::ImageFileWriter< TOutputImage > TImageWriter;
-typedef fpa::Image::Functors::SimpleNeighborhood< TInputImage > TNeighFunction;
+typedef fpa::Image::Functors::SimpleNeighborhood< itk::ImageBase< VDim > > TNeighFunction;
typedef fpa::Image::Functors::SimpleDijkstraCost< TInputImage, TScalar > TCostFunction;
typedef fpa::Base::Functors::Inverse< TScalar, TScalar > TCostConversionFunction;
static const unsigned long SIZE = 100;
unsigned long size[] = { SIZE, SIZE };
- unsigned int neigh_order = 1;
+ unsigned int neigh_order = 2;
TInputImage::IndexType seed0, seed1;
seed0.Fill( 0 );