X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2FImageDijkstra.cxx;h=2dede622dd4b7f3b2d26aa18755ba8d1ce0ceab7;hb=a7f37699808cd8cd56110607b03b84288628a690;hp=1b562636724ce0376872875cf8a07021f5683610;hpb=b9128432da0c510bb4ac9a165cc84c065b5e34e8;p=FrontAlgorithms.git diff --git a/appli/examples/ImageDijkstra.cxx b/appli/examples/ImageDijkstra.cxx index 1b56263..2dede62 100644 --- a/appli/examples/ImageDijkstra.cxx +++ b/appli/examples/ImageDijkstra.cxx @@ -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 );