]> Creatis software - FrontAlgorithms.git/blobdiff - appli/examples/ImageDijkstra.cxx
...
[FrontAlgorithms.git] / appli / examples / ImageDijkstra.cxx
index 1b562636724ce0376872875cf8a07021f5683610..2dede622dd4b7f3b2d26aa18755ba8d1ce0ceab7 100644 (file)
@@ -16,7 +16,7 @@ typedef itk::Image< TScalar, VDim > TOutputImage;
 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;
 
@@ -28,7 +28,7 @@ int main( int argc, char* argv[] )
   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 );