[Insight-users] Problem with itkConvolutionImageFilter from git

Jothy jothybasu at gmail.com
Fri Sep 16 07:39:37 EDT 2011


Hi all,

I am trying to use the itkConvolutionImageFilter from git (since some of the
bugs are fixed in this). i was able to sucessfully use the older version of
this downloaded from the Insight journal. But I get the following errors
with the git version.

In file included from ..\BIOSIM2\/itkConvolutionImageFilter.h:197,

from ..\BIOSIM2\myimagefilters.cpp:48:

..\BIOSIM2\/itkConvolutionImageFilter.hxx: In member function 'typename
itk::ConvolutionImageFilter<TInputImage, TKernelImage,
TOutputImage>::OutputRegionType itk::ConvolutionImageFilter<TInputImage,
TKernelImage, TOutputImage>::GetValidRegion() const [with TInputImage =
itk::Image<unsigned int, 3u>, TKernelImage = itk::Image<unsigned int, 3u>,
TOutputImage = itk::Image<unsigned int, 3u>]':

..\BIOSIM2\/itkConvolutionImageFilter.hxx:200: instantiated from 'void
itk::ConvolutionImageFilter<TInputImage, TKernelImage,
TOutputImage>::GenerateOutputInformation() [with TInputImage =
itk::Image<unsigned int, 3u>, TKernelImage = itk::Image<unsigned int, 3u>,
TOutputImage = itk::Image<unsigned int, 3u>]'

..\BIOSIM2\myimagefilters.cpp:494: instantiated from here

..\BIOSIM2\/itkConvolutionImageFilter.hxx:267: error: passing 'const
itk::ConvolutionImageFilter<itk::Image<unsigned int, 3u>,
itk::Image<unsigned int, 3u>, itk::Image<unsigned int, 3u> >' as 'this'
argument of 'const TInputImage* itk::ImageToImageFilter<TInputImage,
TOutputImage>::GetInput() [with TInputImage = itk::Image<unsigned int, 3u>,
TOutputImage = itk::Image<unsigned int, 3u>]' discards qualifiers


And here is the code I use to convolve


typedef itk::ConvolutionImageFilter<ImageType> ConvolutionFilterType;

ConvolutionFilterType::Pointer convoluter= ConvolutionFilterType::New();

convoluter->SetInput(converter->GetOutput());

convoluter->SetImageKernelInput(converterKernel->GetOutput());

convoluter->Update();

Any hints

Jothy





-- 
Jothybasu K Selvaraj
PhD Student
University of Liverpool
Liverpool,UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110916/e2c1248d/attachment.htm>


More information about the Insight-users mailing list