<div>Hi,</div>
<div>I want to use itk::WatershedImageFilter for 3D image segmentation in MSVC framework. The code is as follow:</div>
<div>typedef itk::GradientAnisotropicDiffusionImageFilter<ImageType3D,ImageType3D> diffusionFilterType;<br> diffusionFilterType::Pointer diffusion=diffusionFilterType::New();<br> <br> typedef itk::GradientMagnitudeImageFilter<ImageType3D,ImageType3D> gradientMagnitudeFilterType;</div>
<div>gradientMagnitudeFilterType::Pointer gradientMagnitude=gradientMagnitudeFilterType::New();<br> typedef itk::WatershedImageFilter<ImageType3D> watershedFilterType;<br> watershedFilterType::Pointer watershed=watershedFilterType::New();</div>
<div> </div>
<div>When the last row is added, there are following errors:</div>
<div>vtkProgramDoc.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall itk::WatershedMiniPipelineProgressCommand::Execute(class itk::Object *,class itk::EventObject const &)" (<a href="mailto:?Execute@WatershedMiniPipelineProgressCommand@itk">?Execute@WatershedMiniPipelineProgressCommand@itk</a><br>
@@UAEXPAVObject@2@ABVEventObject@2@@Z)<br>vtkProgramDoc.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall itk::WatershedMiniPipelineProgressCommand::Execute(class itk::Object const *,class itk::EventObject const &)" (<a href="mailto:?Execute@WatershedMiniPipelineProgressComma">?Execute@WatershedMiniPipelineProgressComma</a><br>
<a href="mailto:nd@itk@@UAEXPBVObject@2@ABVEventObject@2@@Z">nd@itk@@UAEXPBVObject@2@ABVEventObject@2@@Z</a>)<br>Debug/vtkProgram.exe : fatal error LNK1120: 2 unresolved externals</div>
<div>All the librarys are included and image type are declared. Please tell me why!</div>
<div>thanks!</div>