[Insight-users] ITK 4.2 - GPUMeanImageFilter - itkGPUKernelManager

Yass Jd yasso50 at hotmail.com
Tue Jun 5 12:55:55 EDT 2012


Dear all,

I am trying to run the following sample code with ITK 4.2 in order to 
perform a GPU-based mean filter:

       typedef itk::GPUMeanImageFilter<ImageType,ImageType> filterType;
       filterType::Pointer blurFilter = filterType::New();
       blurFilter->SetInput(handler.getOutput());
       blurFilter->SetRadius(2);
       blurFilter->Update();


And i get the following errors from the linker (compilation is fine):

    CMakeFiles/ReadDCMWriteNii.dir/main.cxx.o: In function
    `itk::GPUKernelManager::New()':
    /usr/local/include/ITK-4.2/itkGPUKernelManager.h:60: undefined
    reference to `itk::GPUKernelManager::GPUKernelManager()'
    CMakeFiles/ReadDCMWriteNii.dir/main.cxx.o: In function
    `itk::GPUMeanImageFilter<itk::Image<short, 4u>, itk::Image<short,
    4u> >::GPUGenerateData()':
    /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:92: undefined
    reference to `itk::OpenCLGetLocalBlockSize(unsigned int)'
    /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:105: undefined
    reference to `itk::GPUKernelManager::SetKernelArgWithImage(int,
    unsigned int, itk::SmartPointer<itk::GPUDataManager>)'
    /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:106: undefined
    reference to `itk::GPUKernelManager::SetKernelArgWithImage(int,
    unsigned int, itk::SmartPointer<itk::GPUDataManager>)'
    /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:110: undefined
    reference to `itk::GPUKernelManager::SetKernelArg(int, unsigned int,
    unsigned long, void const*)'
    /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:115: undefined
    reference to `itk::GPUKernelManager::SetKernelArg(int, unsigned int,
    unsigned long, void const*)'
    /usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:119: undefined
    reference to `itk::GPUKernelManager::LaunchKernel(int, int, unsigned
    long*, unsigned long*)

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 ?

Thank you !

Best regards,
Yass Jd.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120605/7257158d/attachment.htm>


More information about the Insight-users mailing list