X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkReconstructThroughDilationImageFilter.h;h=32d31fe51075bf235a8256d9d8066f38d7bf509a;hb=1eaa43a8aa678f784fd0f4b587d45c1435285214;hp=23cc98bba878d45a35e7fd3a1c1558e4c3810112;hpb=0d181563607d9b97bc296cfab1ab5f2bb69c3db9;p=clitk.git diff --git a/itk/clitkReconstructThroughDilationImageFilter.h b/itk/clitkReconstructThroughDilationImageFilter.h index 23cc98b..32d31fe 100644 --- a/itk/clitkReconstructThroughDilationImageFilter.h +++ b/itk/clitkReconstructThroughDilationImageFilter.h @@ -1,3 +1,20 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://www.centreleonberard.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - BSD See included LICENSE.txt file + - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +===========================================================================*/ #ifndef clitkReconstructThroughDilationImageFilter_h #define clitkReconstructThroughDilationImageFilter_h @@ -22,7 +39,11 @@ #include "itkConnectedComponentImageFilter.h" #include "itkStatisticsImageFilter.h" #include "itkCastImageFilter.h" -#include "itkDifferenceImageFilter.h" +#if ITK_VERSION_MAJOR >= 4 + #include "itkTestingComparisonImageFilter.h" +#else + #include "itkDifferenceImageFilter.h" +#endif #include "itkThresholdImageFilter.h" namespace clitk @@ -67,6 +88,7 @@ namespace clitk itkSetMacro( Verbose, bool); itkGetConstReferenceMacro( Verbose, bool); void SetRadius ( const SizeType& s){ m_Radius=s; this->Modified();} + void SetRadius(const int r) { for(uint i=0; i