[Insight-users] Actually implementing a Gabor filter

Neal R. Harvey harve at lanl.gov
Wed Jun 23 09:34:43 EDT 2010


Nick Tustison wrote:
> The following is one problem:
>
>     std::cout << "Performing Convolution ... Starting" << std::endl;
>     typedef itk::ConvolutionImageFilter< ImageType >
>     ConvolutionFilterType;
>     ConvolutionFilterType::Pointer Convoluter;
>     Convoluter->SetInput( itkChipImg );
>     Convoluter->SetImageKernelInput( GaborKernelImage->GetOutput() );
>     Convoluter->NormalizeOn();
>     Convoluter->Update();
>     std::cout << "Performing Convolution ... Completed" << std::endl;
>
>
> Instead of  
>
> ConvolutionFilterType::Pointer Convoluter;
>
> you should have
>
> ConvolutionFilterType::Pointer Convoluter = ConvolutionFilterType::New();
   OK. Thanks. I'll make that modification. But, I had copied the code 
that was in the  "Image kernel Convolution" paper.
   But, on reflection, I should have noticed that was incorrect.


More information about the Insight-users mailing list