<br>Hi Danile,<br><br><br> Welcome to ITK !<br><br><br>1) ITK images are N-Dimensional.<br><br> When you use the Linear Interpolation class,<br> it does:<br><br> a) Linear interpolation if the image is 1-D<br>
b) Bilinear interpolation if the image is 2-D<br> c) Trilinear interpolation if the image is 3-D<br><br> and so on....<br><br><br>2) It looks like what you really want to do is to <br> Resample the image at the output of the <br>
BilateralImageFilter.<br><br> Something that internally will require an <br> interpolator.<br><br><br> Please look at the ITK Software Guide<br><br> <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br>
<br> in particular to <br><br> Section: 6.9.4. "Resample Image Filter".<br><br> in pdf-pages : 254-284.<br><br><br> You will find many source code examples in<br><br> Inisght/Examples/Filtering<br>
<br><br><br> Regards,<br><br><br> Luis<br><br><br><br>--------------------------------------------------------------------------------------<br><div class="gmail_quote">2010/5/29 noc <span dir="ltr"><<a href="mailto:hawkingyy@hotmail.com">hawkingyy@hotmail.com</a>></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'm new here to use ITK£¬and I met some problems now£¬and really wanna know the solutions£¬could U help me£¬please£¿<br>
<br>
first£¬I don't know whether it'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>
<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>
<br>
In the end£¬here's the codes I coded (just <font color="#000000">Bilinear Interpolation, I don't know how to use LinearInterpolateImageFunction</font>)<br>
<br>
int main()<br>{<br> typedef itk::Image<unsigned short, 2> ImageType;<br> typedef itk::ImageFileReader<ImageType> ReaderType;<br> typedef itk::GDCMImageIO DICOMType;<br> typedef itk::ImageToVTKImageFilter<ImageType> ConnectorType;<br>
typedef itk::BilateralImageFilter<ImageType, ImageType> FilterType;<br> typedef itk::LinearInterpolateImageFunction<ImageType, double> InterpolatorType;<br>
<br>
ReaderType :: Pointer reader = ReaderType :: New();<br> DICOMType :: Pointer gcdmImageIO = DICOMType :: New();<br> ConnectorType :: Pointer connector = ConnectorType :: New();<br> FilterType :: Pointer filter = FilterType :: New();<br>
InterpolatorType :: Pointer interpolator = InterpolatorType::New();<br>
<br>
reader->SetImageIO(gcdmImageIO);<br> reader->SetFileName("d:/Data/feet/feet.140");<br>
<br>
filter->SetInput(reader->GetOutput());<br> filter->SetDomainSigma(1.0);<br> filter->SetRangeSigma(1.0);<br>
<br>
return 0;<br>
}<br>
<br>
Could U help me, please?<br>
Thanks!<br>
And best wishes!!!<br>
<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>