<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear all, <br>
    <br>
    I am trying to run the following sample code with ITK 4.2 in order
    to perform a GPU-based mean filter: <br>
    <br>
    <blockquote>&nbsp; typedef
      itk::GPUMeanImageFilter&lt;ImageType,ImageType&gt; filterType; <br>
      &nbsp; filterType::Pointer blurFilter = filterType::New(); <br>
      &nbsp; blurFilter-&gt;SetInput(handler.getOutput());<br>
      &nbsp; blurFilter-&gt;SetRadius(2);<br>
      &nbsp; blurFilter-&gt;Update();<br>
    </blockquote>
    <br>
    And i get the following errors from the linker (compilation is
    fine): <br>
    <br>
    <blockquote>CMakeFiles/ReadDCMWriteNii.dir/main.cxx.o: In function
      `itk::GPUKernelManager::New()':<br>
      /usr/local/include/ITK-4.2/itkGPUKernelManager.h:60: undefined
      reference to `itk::GPUKernelManager::GPUKernelManager()'<br>
      CMakeFiles/ReadDCMWriteNii.dir/main.cxx.o: In function
      `itk::GPUMeanImageFilter&lt;itk::Image&lt;short, 4u&gt;,
      itk::Image&lt;short, 4u&gt; &gt;::GPUGenerateData()':<br>
      /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:92: undefined
      reference to `itk::OpenCLGetLocalBlockSize(unsigned int)'<br>
      /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:105:
      undefined reference to
      `itk::GPUKernelManager::SetKernelArgWithImage(int, unsigned int,
      itk::SmartPointer&lt;itk::GPUDataManager&gt;)'<br>
      /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:106:
      undefined reference to
      `itk::GPUKernelManager::SetKernelArgWithImage(int, unsigned int,
      itk::SmartPointer&lt;itk::GPUDataManager&gt;)'<br>
      /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:110:
      undefined reference to `itk::GPUKernelManager::SetKernelArg(int,
      unsigned int, unsigned long, void const*)'<br>
      /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:115:
      undefined reference to `itk::GPUKernelManager::SetKernelArg(int,
      unsigned int, unsigned long, void const*)'<br>
      /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:119:
      undefined reference to `itk::GPUKernelManager::LaunchKernel(int,
      int, unsigned long*, unsigned long*)<br>
    </blockquote>
    I don't see the error ? Seems like a bad declaration in the header
    itkGPUKernelManager.h but I didn't find it... Everythinh is well
    included in my code though. Anybody got an idea ? <br>
    <br>
    Thank you ! <br>
    <br>
    Best regards, <br>
    Yass Jd. <br>
    <br>
  </body>
</html>