<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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>
&nbsp;<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>
&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's the codes I coded (just <FONT color=#000000>Bilinear Interpolation, I don'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("d:/Data/feet/feet.140");<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<BR>                                               <br /><hr />使用Messenger保护盾2.0,支持多账号登录! <a href='http://www.windowslive.cn/safe/' target='_new'>现在就下载!</a></body>
</html>