[Insight-users] Problem with itkConvolutionImageFilter from git

Cory Quammen cquammen at cs.unc.edu
Fri Sep 16 09:23:45 EDT 2011


Jothy,

Could you post a minimal compilable and runnable example with an
accompanying CMakeLists.txt file that gives the compilation error?

Thanks,
Cory

On Fri, Sep 16, 2011 at 7:39 AM, Jothy <jothybasu at gmail.com> wrote:
> 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
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the Insight-users mailing list