[Insight-developers] Not work when using BilateralImageFilter

XiongXiang Zhang zhangxx110 at 126.com
Mon Oct 8 08:46:02 EDT 2012


Hi,
We filter an image (noised.tif 606*601) with BilateralImageFilter like this:
 
//instance reader
 ReaderType::Pointer reader = ReaderType::New();
 reader->SetFileName( argv[1] );
 
//instance filter
 typedef itk::BilateralImageFilter<InputImageType, OutputImageType >  FilterType;
  FilterType::Pointer filter = FilterType::New();
filter->SetInput( reader->GetOutput() );
 
 ...........
//instance writer
 typedef itk::ImageFileWriter< WriteImageType >  WriterType;
  WriterType::Pointer writer = WriterType::New();
  writer->SetFileName( argv[2] );

  writer->SetInput(  filter->GetOutput() );
 
//update
  writer->Update();
 
Run the program, CPU utilization last for 100% . It takes several quarters to filter the TIF image. IS there some
efficient method to filter the TIF iamge?
Thanks.
XiongXiang Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20121008/21c1a984/attachment.htm>


More information about the Insight-developers mailing list