<br>Hi Danile,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welcome to ITK !<br><br><br>1)&nbsp; ITK images are N-Dimensional.<br><br>&nbsp;&nbsp;&nbsp; When you use the Linear Interpolation class,<br>&nbsp;&nbsp;&nbsp; it does:<br><br>&nbsp;&nbsp;&nbsp; a)&nbsp; Linear interpolation if the image is 1-D<br>
&nbsp;&nbsp;&nbsp; b)&nbsp; Bilinear interpolation if the image is 2-D<br>&nbsp;&nbsp;&nbsp; c)&nbsp; Trilinear interpolation if the image is 3-D<br><br>&nbsp;&nbsp;&nbsp; and so on....<br><br><br>2)&nbsp;&nbsp; It looks like what you really want to do is to <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Resample the image at the output of the <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BilateralImageFilter.<br><br>&nbsp; &nbsp; &nbsp; Something that internally will require an <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interpolator.<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please look at the ITK Software Guide<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br>
<br>&nbsp;&nbsp;&nbsp; in particular to <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Section: 6.9.4. &quot;Resample Image Filter&quot;.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; in pdf-pages :&nbsp; 254-284.<br><br><br>&nbsp;&nbsp; You will find many source code examples in<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; Inisght/Examples/Filtering<br>
<br><br><br>&nbsp;&nbsp; Regards,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><br><br>--------------------------------------------------------------------------------------<br><div class="gmail_quote">2010/5/29 noc <span dir="ltr">&lt;<a href="mailto:hawkingyy@hotmail.com">hawkingyy@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
Hi everyone£¬<br>
I&#39;m new here to use ITK£¬and I met some problems now£¬and really wanna know the solutions£¬could U help me£¬please£¿<br>
&nbsp;<br>
first£¬I don&#39;t know whether it&#39;s <font color="#ff0000">Bilinear Interpolation <font color="#000000">or</font> Linear Interpolation </font><font color="#000000">when I use LinearInterpolateImageFunction to process a 2D image.</font><br>

&nbsp;<br>
second, how can I use LinearInterpolateImageFunction after BilateralImageFilter? The purpose to do so is that I wanna keep the edge of a CT image, and make the edge more consecutive.<br>
&nbsp;<br>
In the end£¬here&#39;s the codes I coded (just <font color="#000000">Bilinear Interpolation, I don&#39;t know how to use LinearInterpolateImageFunction</font>)<br>
&nbsp;<br>
int main()<br>{<br>&nbsp;typedef itk::Image&lt;unsigned short, 2&gt; ImageType;<br>&nbsp;typedef itk::ImageFileReader&lt;ImageType&gt; ReaderType;<br>&nbsp;typedef itk::GDCMImageIO DICOMType;<br>&nbsp;typedef itk::ImageToVTKImageFilter&lt;ImageType&gt; ConnectorType;<br>
&nbsp;typedef itk::BilateralImageFilter&lt;ImageType, ImageType&gt; FilterType;<br>&nbsp;typedef itk::LinearInterpolateImageFunction&lt;ImageType, double&gt; InterpolatorType;<br>
&nbsp;<br>
&nbsp;ReaderType :: Pointer reader = ReaderType :: New();<br>&nbsp;DICOMType :: Pointer gcdmImageIO = DICOMType :: New();<br>&nbsp;ConnectorType :: Pointer connector = ConnectorType :: New();<br>&nbsp;FilterType :: Pointer filter = FilterType :: New();<br>
&nbsp;InterpolatorType :: Pointer interpolator = InterpolatorType::New();<br>
&nbsp;<br>
&nbsp;reader-&gt;SetImageIO(gcdmImageIO);<br>&nbsp;reader-&gt;SetFileName(&quot;d:/Data/feet/feet.140&quot;);<br>
&nbsp;<br>
&nbsp;filter-&gt;SetInput(reader-&gt;GetOutput());<br>&nbsp;filter-&gt;SetDomainSigma(1.0);<br>&nbsp;filter-&gt;SetRangeSigma(1.0);<br>
&nbsp;<br>
&nbsp;return 0;<br>
}<br>
&nbsp;<br>
Could U help me, please?<br>
Thanks!<br>
And best wishes!!!<br>
&nbsp;<br>
Danile<a href="http://www.windowslive.cn/safe/" target="_blank"></a></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>