# Danielsson Voronoi Map Type

Arnaud Gelas
2011-07-26
BUG: Add an extra template parameter in *DanielssonDistanceMapFilter for the Voronoi Map. The new default template parameter is TInputImage.

Fix ITK-227.
typedef itkDanielssonDistanceMapImageFilter< InputImageType, OutputImageType > FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetInput( input ); filter->Update();

OutputImageType* voronoi = filter->GetVoronoiMap();
typedef itkDanielssonDistanceMapImageFilter< InputImageType, OutputImageType > FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetInput( input ); filter->Update();

InputImageType* voronoi = filter->GetVoronoiMap();
typedef itkDanielssonDistanceMapImageFilter< InputImageType, OutputImageType > FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetInput( input ); filter->Update();

OutputImageType* voronoi = filter->GetVoronoiMap();
typedef itkDanielssonDistanceMapImageFilter< InputImageType, OutputImageType, VoronoiImageType > FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetInput( input ); filter->Update();

VoronoiImageType* voronoi = filter->GetVoronoiMap();
I8043661041ea427acf2a0e997c573c45212634b6
Documentation/Migration/DanielssonVoronoiMapType.xml Examples/Filtering/DanielssonDistanceMapImageFilter.cxx Examples/Filtering/SignedDanielssonDistanceMapImageFilter.cxx Modules/Filtering/DistanceMap/include/itkDanielssonDistanceMapImageFilter.h Modules/Filtering/DistanceMap/include/itkDanielssonDistanceMapImageFilter.hxx Modules/Filtering/DistanceMap/include/itkSignedDanielssonDistanceMapImageFilter.h Modules/Filtering/DistanceMap/include/itkSignedDanielssonDistanceMapImageFilter.hxx Modules/Filtering/DistanceMap/test/itkDanielssonDistanceMapImageFilterTest.cxx Modules/Filtering/DistanceMap/test/itkSignedDanielssonDistanceMapImageFilterTest.cxx