[Insight-users] problem with BilateralImageFilter
- GradientAnisotropicDiffusionImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Thu Sep 15 22:55:46 EDT 2005
Hi Juan,
1) What is the number of pixels on each slice ?
2) Are you compiling your application for "Release" ?
There is a huge difference in performance
between Release and Debug mode.
3) Do you need to use the Bilateral image filter ?
There are other faster options, including
CurvatureFlow and the Median filter.
Regards,
Luis
----------------------------------
Juan Gabriel Ramírez Sosa wrote:
> Hello, i uses the GradientAnisotropicDiffusionImageFilter and
> BilateralImageFilter in a raw image that contains 97 slices.
>
> With the first filter my application run very slow, it take more than
> 5 minutes in apply the filter. If you can help me and make it faster
> thanks.
>
> And with the BilateralImageFilter and parameters domain sigma 4 and
> range sigma 5 the aplication run, but it shows an error after 5
> minutes when i apply the filter.
>
>
> I uses the following code for the BilateralImageFilter
>
> ///////////////
> try{
> this->filter->SetInput(this->pDoc->reader->GetOutput() );
> const unsigned int Dimension = OutputImageType::ImageDimension;
> double domainSigmas[Dimension];
> const double rangeSigma = float(this->m_spinransigma.GetPos());
> for(unsigned int i=0; i<Dimension; i++)
> {
> domainSigmas[i] = float(this->m_spindomsigma.GetPos());
> }
> this->filter->SetDomainSigma( domainSigmas );
> this->filter->SetRangeSigma( rangeSigma );
> this->filter->Update();
> rescaler->SetOutputMinimum( 0 );
> rescaler->SetOutputMaximum( 255 );
> this->rescaler->SetInput(filter->GetOutput() );
> this->pDoc->connector->SetInput(this->rescaler->GetOutput());
> this->pDoc->connector->Update();
> }
> catch( itk::ExceptionObject & err )
> {
> MessageBox(err.what(),"Alerta",MB_ICONERROR);
> return;
> }
> ///////////////////////////
>
> some help, any suggestion, thank.
>
> Juancho.
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list