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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers

Reply via email to