[Insight-users] trouble with cannyedgedetectectioniamgefilter
valerie glatt
glattvalerie at hotmail.com
Thu Jan 31 11:42:02 EST 2002
dear miss or mister
I try to use your itkCannyEdgeDetectionImageFilter, and when i compile i
have this 2 errors
D:\glatt\src\Insight\Code\Numerics\vxl\vnl/vnl_matrix.h(443) : while
compiling class-template member function 'void __thiscall
itk::CannyEdgeDetectionImageFilter<class itk::Image<unsigned short,2,class
itk::DefaultImageTraits<unsigned short,
2,class itk::ValarrayImageContainer<unsigned long,unsigned short> > >,class
itk::Image<unsigned short,2,class itk::DefaultImageTraits<unsigned
short,2,class itk::ValarrayImageContainer<unsigned long,unsigned short> > >
>::ThreadedCompute2ndDerivativ
ePos(const class itk::ImageRegion<2> &,int)'
D:\glatt\src\Insight\Code\BasicFilters\itkCannyEdgeDetectionImageFilter.txx(624)
: error C2668: 'vnl_math_sqrt' : ambiguous call to overloaded function
D:\glatt\src\Insight\Code\Numerics\vxl\vnl/vnl_matrix.h(443) : while
compiling class-template member function 'void __thiscall
itk::CannyEdgeDetectionImageFilter<class itk::Image<unsigned short,2,class
itk::DefaultImageTraits<unsigned short,
2,class itk::ValarrayImageContainer<unsigned long,unsigned short> > >,class
itk::Image<unsigned short,2,class itk::DefaultImageTraits<unsigned
short,2,class itk::ValarrayImageContainer<unsigned long,unsigned short> > >
>::ThreadedCompute2ndDerivativ
ePos(const class itk::ImageRegion<2> &,int)'
I use the same code that in your example
itk::CannyEdgeDetectionImageFilter<ImageType, ImageType>::Pointer
cannyFilter
= itk::CannyEdgeDetectionImageFilter<ImageType, ImageType>::New();
cannyFilter->SetInput(m_Image);
cannyFilter->SetVariance(m_Sigma);
cannyFilter->Update();
m_Image = cannyFilter->GetOutput();
and m_Sigma is a float[2] because i am in 2 dimension.
So can you told me what i have to do or if the trouble come from itk
thank you valerie glatt (from unc chapel hill)
_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse
http://explorer.msn.fr/intl.asp.
More information about the Insight-users
mailing list