<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>
<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<BR>                                            <br /><hr />使用Messenger保护盾2.0,支持多账号登录! <a href='http://www.windowslive.cn/safe/' target='_new'>现在就下载!</a></body>
</html>