<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> typedef
itk::GPUMeanImageFilter<ImageType,ImageType> filterType; <br>
filterType::Pointer blurFilter = filterType::New(); <br>
blurFilter->SetInput(handler.getOutput());<br>
blurFilter->SetRadius(2);<br>
blurFilter->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<itk::Image<short, 4u>,
itk::Image<short, 4u> >::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<itk::GPUDataManager>)'<br>
/usr/local/include/ITK-4.2/itkGPUMeanImageFilter.hxx:106:
undefined reference to
`itk::GPUKernelManager::SetKernelArgWithImage(int, unsigned int,
itk::SmartPointer<itk::GPUDataManager>)'<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>