[Insight-users] How can I use LinearInterpolateImageFunction After BilateralImageFilter

noc hawkingyy at hotmail.com
Sat May 29 01:47:51 EDT 2010


Hi everyone,

I'm new here to use ITK,and I met some problems now,and really wanna know the solutions,could U help me,please?

 

first,I don't know whether it's Bilinear Interpolation or Linear Interpolation when I use LinearInterpolateImageFunction to process a 2D image.

 

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.

 

In the end,here's the codes I coded (just Bilinear Interpolation, I don't know how to use LinearInterpolateImageFunction)

 

int main()
{
 typedef itk::Image<unsigned short, 2> ImageType;
 typedef itk::ImageFileReader<ImageType> ReaderType;
 typedef itk::GDCMImageIO DICOMType;
 typedef itk::ImageToVTKImageFilter<ImageType> ConnectorType;
 typedef itk::BilateralImageFilter<ImageType, ImageType> FilterType;
 typedef itk::LinearInterpolateImageFunction<ImageType, double> InterpolatorType;

 

 ReaderType :: Pointer reader = ReaderType :: New();
 DICOMType :: Pointer gcdmImageIO = DICOMType :: New();
 ConnectorType :: Pointer connector = ConnectorType :: New();
 FilterType :: Pointer filter = FilterType :: New();
 InterpolatorType :: Pointer interpolator = InterpolatorType::New();

 

 reader->SetImageIO(gcdmImageIO);
 reader->SetFileName("d:/Data/feet/feet.140");

 

 filter->SetInput(reader->GetOutput());
 filter->SetDomainSigma(1.0);
 filter->SetRangeSigma(1.0);

 

 return 0;

}

 

Could U help me, please?

Thanks!

And best wishes!!!

 

Danile
 		 	   		  
_________________________________________________________________
一张照片的自白――Windows Live照片的可爱视频介绍
http://windowslivesky.spaces.live.com/blog/cns!5892B6048E2498BD!889.entry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100529/84981b03/attachment-0001.htm>


More information about the Insight-users mailing list