<div dir="ltr"><div>Hi,</div><div><br></div><div>While compiling my project I get some linking problems.</div><div>tlQuantification.cpp:(.text+0x1623): undefined reference to `vtkPolyDataToImageStencil::New()'<br>tlQuantification.cpp:(.text+0x162b): undefined reference to `vtkImageAccumulate::New()'<br>tlQuantification.cpp:(.text+0x168e): undefined reference to `vtkImageAccumulate::SetStencilData(vtkImageStencilData*)'</div><div><br></div><div><div>I found that I sould add in CmakeLists.txt the following lines but I doesn't work:<br></div>if(VTK_LIBRARIES)<br>  target_link_libraries(quantification ${VTK_LIBRARIES} )<br>else()<br>  target_link_libraries(quantification vtkHybrid vtkWidgets)<br>endif()</div><div><br></div><div>I'm trying to compile and old project that work properly with a former VTK version (I can't remember the VTK version).</div><div><br></div><div></div><div>I was thinking that maybe is a migration problem but I'm not able to find what I need to change. <br></div><div><br></div><div>What I'm doing is clipping an image by a cylinder (m_rotate_tformer[id]) to calculate the mean activity of the image inside the cylinder. Maybe there is a better way to perform it.<br></div><div><br></div><div>    vtkPolyDataToImageStencil* sts = vtkPolyDataToImageStencil::New();<br>    vtkImageAccumulate* act = vtkImageAccumulate::New();<br><br>    sts->SetInputData(m_rotate_tformer[id]->GetPolyDataOutput());<br>    sts->SetInformationInput(vtkInputImage.GetPointer());<br>    sts->Update();<br>    <br>    act->SetInputData(vtkInputImage.GetPointer());<br>    act->SetStencilData(sts->GetOutput());<br>    act->Update();</div><div><br></div><div>I'm running out of ideas. I'll appreciate any idea.<br></div><div><br></div><div>Thanks,</div><div>Aida</div></div>