[Insight-users] itk2DEdgeDetectionSample (fwd)
Xinwei Xue
xwxue@cs.utah.edu
Wed, 8 May 2002 00:47:25 -0600 (MDT)
Hi Josh,
Thanks for the reminder, I actually was not on the users list. I should
have added myself to the list.
It's ture the itk2DEdgeDetection.txx should be renamed to .cxx file.
I also looked at the code for zerocrossing based edge detection and canny
edges and seems fine. but the result is not good. I'll do a careful
check tomorrow and let you guys know what's the problem asap.
Sorry for the inconvenience.
Thanks,
Xinwei
On Tue, 7 May 2002, Joshua Cates wrote:
> Hi Xinwei,
>
> Didn't know if you were on the insight-users list or not. Is this your
> example? Can you have a look?
>
> Thanks,
>
> Josh.
>
> ______________________________
> Josh Cates
> School of Computer Science
> University of Utah
> Email: cates@sci.utah.edu
> Phone: (801) 587-7697
> URL: www.cs.utk.edu/~cates
>
>
> ---------- Forwarded message ----------
> Date: Tue, 07 May 2002 19:57:46 -0400
> From: Mathieu Malaterre <mmalat@irus.rri.ca>
> To: insight-users@public.kitware.com
> Subject: [Insight-users] itk2DEdgeDetectionSample
>
> Hi all,
> I tried to used itk2DEdgeDetectionSample. So I changed the
> CMakeFile.txt. But then when I tried to recomplie, I get an error:
> > cmake .
> > make
> ...
> /shalom/data/mmalat/CMake/bin/cmake
> -S/shalom/data/mmalat/InsightSource/Examples/EdgeDetection
> -O/shalom/data/mmalat/InsightSource/Examples/EdgeDetection
> -H/shalom/data/mmalat/InsightSource -B/shalom/data/mmalat/InsightSource
> /usr/bin/c++ -rdynamic -g -O2 -ftemplate-depth-50
> -L/shalom/data/mmalat/InsightSource/Utilities/zlib
> -L/shalom/data/mmalat/InsightSource/Utilities/png
> -L/shalom/data/mmalat/InsightSource/Code/Common
> -L/shalom/data/mmalat/InsightSource/Code/IO
> -L/shalom/data/mmalat/InsightSource/Code/Numerics/vxl
> -L/shalom/data/mmalat/VTK_cvs/Lib
> -L/shalom/data/mmalat/InsightSource/Code/BasicFilters
> -L/shalom/data/mmalat/InsightSource/Code/Algorithms
> -L/shalom/data/mmalat/Insight/Lib/ -L/shalom/data/mmalat/Insight/Bin/
> -lpthread -ldl -lpthread -ldl -lm -lGL -lXt -lSM -lICE
> -L/usr/X11R6/lib -lX11 -lXext -lpthread -ldl -lm -lVXLNumerics
> -lITKCommon -lITKBasicFilters -lm -lITKBasicFilters -lITKCommon
> -lVXLNumerics -lITKIO -lpthread -ldl -lpthread -ldl
> -lm -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lpthread -ldl
> -lm -lVXLNumerics -lITKCommon -lITKBasicFilters -lm
> -lITKBasicFilters -lITKCommon -lVXLNumerics -lITKIO
> -Wl,-rpath,/shalom/data/mmalat/InsightSource/Utilities/zlib:/shalom/data/mmalat/InsightSource/Utilities/png:/shalom/data/mmalat/InsightSource/Code/Common:/shalom/data/mmalat/InsightSource/Code/IO:/shalom/data/mmalat/InsightSource/Code/Numerics/vxl:/shalom/data/mmalat/VTK_cvs/Lib:/shalom/data/mmalat/InsightSource/Code/BasicFilters:/shalom/data/mmalat/InsightSource/Code/Algorithms:/shalom/data/mmalat/Insight/Lib/:/shalom/data/mmalat/Insight/Bin/
> -o /shalom/data/mmalat/Insight/Bin/itk2DEdgeDetectionSample
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
> `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
> undefined reference to `main'
> collect2: ld returned 1 exit status
> make[5]: *** [/shalom/data/mmalat/Insight/Bin/itk2DEdgeDetectionSample]
> 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
>
> So the Makefile seems not to be correctly generated. I tried again by
~> changing itk2DEdgeDetectionSample.txx to itk2DEdgeDetectionSample.cxx,
> and magically it works (well it compiles fine).
> If anybody could explains to me what is the trick ?
>
> By the way I can only use SOBEL filter Canny and ZeroCrossing seems not
> to work. But I'll have a look.
> thanks
> Mathieu
>
>