cannot convert param from XXX to const XXX

Hello,

I have compilation trouble with following wiki example :

http://www.itk.org/Wiki/ITK/Examples/NeedDemo/ImageProcessing/AdaptiveHistogramEqualizationImageFilter

Code from wiki :
1
2
3
4
5
6
typedef  itk::AdaptiveHistogramEqualizationImageFilter<XITKTools::ItkImage3DFloatType> AdaptiveHistogramEqualizationImageFilterType;
          AdaptiveHistogramEqualizationImageFilterType::Pointer adaptiveHistogramEqualizationImageFilter
                  = AdaptiveHistogramEqualizationImageFilterType::New();
          adaptiveHistogramEqualizationImageFilter->SetInput(itkImage);

          adaptiveHistogramEqualizationImageFilter->SetRadius(1); 


Compilation error :
1
2
3
4
5
6
7
8
9
10
error: C2664: 'itk::AdaptiveHistogramEqualizationImageFilter<TImageType>::SetRadius' : cannot convert parameter 1 from 'int' to 'const itk::Size<VDimension>'
with
[
    TImageType=imagx::itktools::XITKTools::ItkImage3DFloatType
]
and
[
    VDimension=3
]
No constructor could take the source type, or constructor overload resolution was ambiguous


Another try :
Change last line in code above to :

1
2
3
4
5
      typedef itk::Image<unsigned char, 2> ImageType;
          ImageType::SizeType size;
          size[0] = 1;

          adaptiveHistogramEqualizationImageFilter->SetRadius(size);

Compilation error :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: C2664: 'itk::AdaptiveHistogramEqualizationImageFilter<TImageType>::SetRadius' : cannot convert parameter 1 from 'itk::Size<VDimension>' to 'const itk::Size<VDimension>'
with
[
    TImageType=imagx::itktools::XITKTools::ItkImage3DFloatType
]
and
[
    VDimension=2
]
and
[
    VDimension=3
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called


Thanks for helping me understanding,
Topic archived. No new replies allowed.