<div dir="ltr">Hi all,<br><br>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.<br>
<br><span style=" color:#ff0000;">In file included from ..\BIOSIM2\/itkConvolutionImageFilter.h:197, </span>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">from ..\BIOSIM2\myimagefilters.cpp:48: </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">..\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>]': </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">..\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>]' </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">..\BIOSIM2\myimagefilters.cpp:494: instantiated from here </span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">..\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 <br>
</span></p><p style="margin: 0px; text-indent: 0px;"><br><span style="color: rgb(255, 0, 0);"></span></p><p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);"><font color="#000000">And here is the code I use to convolve</font></span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);"><font color="#000000"><br></font></span></p><p style="margin: 0px; text-indent: 0px;"><span style=" color:#c0c0c0;"> </span><font size="4"><span style="color: rgb(128, 128, 0);">typedef</span><span style="color: rgb(192, 192, 192);"> </span>itk<span style="color: rgb(0, 0, 0);">::</span>ConvolutionImageFilter<span style="color: rgb(0, 0, 0);"><</span>ImageType<span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(192, 192, 192);"> </span>ConvolutionFilterType<span style="color: rgb(0, 0, 0);">;</span>
</font></p><pre style="margin: 0px; text-indent: 0px;"><font size="4"><span style="color: rgb(192, 192, 192);"></span>ConvolutionFilterType<span style="color: rgb(0, 0, 0);">::</span>Pointer<span style="color: rgb(192, 192, 192);"> </span>convoluter<span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span>ConvolutionFilterType<span style="color: rgb(0, 0, 0);">::</span>New<span style="color: rgb(0, 0, 0);">();</span></font></pre>
<font size="4">
</font><pre style="margin: 0px; text-indent: 0px;"><font size="4"><span style="color: rgb(192, 192, 192);"></span>convoluter<span style="color: rgb(0, 0, 0);">-></span>SetInput<span style="color: rgb(0, 0, 0);">(</span>converter<span style="color: rgb(0, 0, 0);">-></span>GetOutput<span style="color: rgb(0, 0, 0);">());</span></font></pre>
<font size="4">
</font><pre style="margin: 0px; text-indent: 0px;"><font size="4"><span style="color: rgb(192, 192, 192);"></span>convoluter<span style="color: rgb(0, 0, 0);">-></span>SetImageKernelInput<span style="color: rgb(0, 0, 0);">(</span>converterKernel<span style="color: rgb(0, 0, 0);">-></span>GetOutput<span style="color: rgb(0, 0, 0);">());</span></font></pre>
<font size="4">
</font><pre style="margin: 0px; text-indent: 0px;"><font size="4"><span style="color: rgb(192, 192, 192);"></span>convoluter<span style="color: rgb(0, 0, 0);">-></span>Update<span style="color: rgb(0, 0, 0);">();<br><br>
Any hints<br><br>Jothy<br></span></font></pre><p style="margin: 0px; text-indent: 0px;"><br><span style="color: rgb(255, 0, 0);"></span></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#ff0000;"><br></span></p><br clear="all"><br>-- <br><div dir="ltr">Jothybasu K Selvaraj<br>PhD Student<br>University of Liverpool<br>Liverpool,UK<br></div><br>
</div>