[Insight-users] a question about watershed
Karthik Krishnan
Karthik.Krishnan at kitware.com
Fri Apr 7 18:15:53 EDT 2006
liu jianfei wrote:
> Hi, everyone
>
>
> WatershedFilterType::Pointer watershed = WatershedFilterType::New();
> watershed->SetLevel( 0.4 );
> watershed->SetThreshold( 0.5 );
> watershed->SetInput(gradient->GetOutput());
>
>
> When I compiled the program, it's running fine except the last
> step: building the executable. Here are the error information:
>
> Building executable /home/jliu1/illustrative/exampApp...
> VtkCanvas.o(.gnu.linkonce.t._ZN3itk20WatershedImageFilterINS_5ImageIfLj3EEEE12GenerateDataEv+0x117):
> In function `itk::WatershedImageFilter<itk::Image<float, (unsigned)3>
> >::GenerateData()':
> /home/krs/src/InsightToolkit-2.2.0/Code/Common/itkDerivativeOperator.txx:48:
> undefined reference to `typeinfo for
> itk::WatershedMiniPipelineProgressCommand'
> VtkCanvas.o(.gnu.linkonce.t._ZN3itk36WatershedMiniPipelineProgressCommandC1Ev+0x19):
> In function
> `itk::WatershedMiniPipelineProgressCommand::WatershedMiniPipelineProgressCommand[in-charge]()':
> /usr/include/c++/3.2.2/bits/stl_vector.h:891: undefined reference to
> `vtable for itk::WatershedMiniPipelineProgressCommand'
> VtkCanvas.o(.gnu.linkonce.t._ZN3itk13ObjectFactoryINS_36WatershedMiniPipelineProgressCommandEE6CreateEv+0x11):
> In function
> `itk::ObjectFactory<itk::WatershedMiniPipelineProgressCommand>::Create()':
> /usr/include/c++/3.2.2/bits/stl_vector.h:967: undefined reference to
> `typeinfo for itk::WatershedMiniPipelineProgressCommand'
> VtkCanvas.o(.gnu.linkonce.t._ZN3itk13ObjectFactoryINS_36WatershedMiniPipelineProgressCommandEE6CreateEv+0x51):
> In function
> `itk::ObjectFactory<itk::WatershedMiniPipelineProgressCommand>::Create()':
> /home/krs/src/InsightToolkit-2.2.0/Code/Common/itkImportImageContainer.txx:64:
> undefined reference to `typeinfo for
> itk::WatershedMiniPipelineProgressCommand'
You did not link against ITKAlgorithms
> collect2: ld returned 1 exit status
> gmake[1]: *** [/home/jliu1/illustrative/exampApp] Error 1
> gmake: *** [default_target] Error 2
>
> Can anyone tell me what's the error in my program or cmakelist.txt?
> Thanks..
>
> --
> Sincerly
> Jianfei Liu
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list