[Insight-users] Problem with Canny Edge Detection

Luis Ibanez luis.ibanez at kitware.com
Tue, 17 Feb 2004 02:28:11 -0500


Hi BeeJay,

You are instantiating this filter for images
of pixeltype 'char', but it expects a pixel
type 'float'.

Please convert the pixel type.

You may use the CastImageFilter for converting
the input image from pixel type 'char' to
pixel type 'float'


Regards,


     Luis


----------------------
Sentil Balaji wrote:
> Hey,
> 
>    I tried the Canny Edge Detection filter and I get
> the following error....Awaiting your assistance
> 
> -----------------------------------------------------
> C:\Program Files\Microsoft Visual
> Studio\VC98\Include\ITK/itkCannyEdgeDetectionImageFilter.txx(633)
> : error C2668: 'sqrt' : ambiguous call to overloaded
> function
>         C:\Program Files\Microsoft Visual
> Studio\VC98\Include\vector(152) : while compiling
> class-template member function 'void __thiscall
> itk::CannyEdgeDetectionImageFilter<class
> itk::Image<unsigned char,2>,class itk::Image<unsigned
> char,2> >::Thr
> eadedCompute2ndDerivativePos(const class
> itk::ImageRegion<2> &,int)'
> -----------------------------------------------------
> 
> Cheers
> 
> BeeJay
>