[Insight-users] itk2DEdgeDetectionSample (fwd)
Xinwei Xue
xwxue@cs.utah.edu
Thu, 9 May 2002 15:22:21 -0600 (MDT)
Please do a update again for the itk2DEdgeDetectionSample.cxx file.
The 'float value[2]' should not be an array, it should be declared as
'float value'.
Thanks,
Xinwei
On Thu, 9 May 2002, Mathieu Malaterre wrote:
> Hi Xinwei,
>
> I tried again (after a cvs update) the edge detection and Canny but here
> is what I get during the compilation:
> > cvs update
> > cmake .
> > make
> ...
> /usr/bin/c++ -g -O2 -ftemplate-depth-50
> -I/shalom/data/mmalat/Insight/Examples/EdgeDetection
> -I/shalom/data/mmalat/InsightTemp
> -I/shalom/data/mmalat/Insight/Code/Numerics
> -I/shalom/data/mmalat/Insight/Code/Common
> -I/shalom/data/mmalat/Insight/Code/IO
> -I/shalom/data/mmalat/InsightTemp/Code/Numerics/vxl
> -I/shalom/data/mmalat/Insight/Code/Numerics/vxl
> -I/shalom/data/mmalat/InsightTemp/Code/Numerics/vxl/vcl
> -I/shalom/data/mmalat/Insight/Code/Numerics/vxl/vcl
> -I/shalom/data/mmalat/Insight/Utilities/png
> -I/shalom/data/mmalat/Insight/Utilities/zlib
> -I/shalom/data/mmalat/VTK_cvs/Rendering -I/shalom/data/mmalat/VTK_cvs/Hybrid
> -I/shalom/data/mmalat/VTK_cvs/Patented -I/shalom/data/mmalat/VTK_cvs
> -I/shalom/data/mmalat/VTK_cvs/Common -I/shalom/data/mmalat/VTK_cvs/Filtering
> -I/shalom/data/mmalat/VTK_cvs/Imaging -I/shalom/data/mmalat/VTK_cvs/Graphics
> -I/shalom/data/mmalat/VTK_cvs/IO
> -I/shalom/data/mmalat/VTK_cvs/Utilities/zlib
> -I/shalom/data/mmalat/VTK_cvs/Utilities/png
> -I/shalom/data/mmalat/VTK_cvs/Utilities/jpeg
> -I/shalom/data/mmalat/VTK_cvs/Utilities/tiff
> -I/shalom/data/mmalat/VTK_cvs/Utilities/expat
> -I/shalom/data/mmalat/VTK_cvs/Common/Testing/Cxx
> -I/usr/local/include/python2.2
> -I/shalom/data/mmalat/Insight/Code/BasicFilters
> -I/shalom/data/mmalat/Insight/Code/Algorithms
> -I/shalom/data/mmalat/Insight/Examples/EdgeDetection -D_PTHREADS
> -I/usr/X11R6/include -c
> /shalom/data/mmalat/Insight/Examples/EdgeDetection/itk2DEdgeDetectionSample.cxx
> -o itk2DEdgeDetectionSample.o
> /shalom/data/mmalat/Insight/Examples/EdgeDetection/itk2DEdgeDetectionSample.cxx:
> In function `int main
> (int, char **)':
> /shalom/data/mmalat/Insight/Examples/EdgeDetection/itk2DEdgeDetectionSample.cxx:203:
> no matching
> function for call to `itk::CannyEdgeDetectionImageFilter<main (int, char
> **)::ImageType, main (int,
> char **)::ImageType>::SetVariance (float[2])'
> /shalom/data/mmalat/Insight/Code/BasicFilters/itkCannyEdgeDetectionImageFilter.h:119:
> candidates are:
> void itk::CannyEdgeDetectionImageFilter<TInputImage,
> TOutputImage>::SetVariance (double *) [with
> TInputImage = main (int, char **)::ImageType, TOutputImage = main (int, char
> **)::ImageType]
> /shalom/data/mmalat/Insight/Code/BasicFilters/itkCannyEdgeDetectionImageFilter.h:127:
>
> void itk::CannyEdgeDetectionImageFilter<TInputImage,
> TOutputImage>::SetVariance (double) [with
> TInputImage = main (int, char **)::ImageType, TOutputImage = main (int, char
> **)::ImageType]
> make[5]: *** [itk2DEdgeDetectionSample.o] Error 1
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_EdgeDetection] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Examples] Error 2
> make: *** [default_target] Error 2
>
> Any help appreciated. Thanks
> mathieu
>
>
> Xinwei Xue wrote:
>
> > Hi,
> >
> > I checked the code and tried examples for zerocrossing based edge
> > detector and it seems working well. The canny edge detector is working
> > ugly. I am writing a newer version of it, and will let you guys know when
> > it is ready.
> >
> > Again thanks for reporting bugs and sorry for the inconvenience.
> >
> > Xinwei
> >
> > > By the way I can only use SOBEL filter Canny and ZeroCrossing seems not
> > > to work. But I'll have a look.
> > > thanks
> > > Mathieu
> > >
> > >
>