[Insight-developers] Not work when using BilateralImageFilter
Bill Lorensen
bill.lorensen at gmail.com
Mon Oct 8 10:26:43 EDT 2012
Make sure you compile ITK and your program with Release.
On Mon, Oct 8, 2012 at 8:46 AM, XiongXiang Zhang <zhangxx110 at 126.com> wrote:
> 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
>
>
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20121008/a9548e16/attachment.htm>
More information about the Insight-developers
mailing list