[Insight-users] problem with BilateralImageFilter -
GradientAnisotropicDiffusionImageFilter
Juan Gabriel Ramírez Sosa
juanchoramirez at gmail.com
Tue Sep 13 12:55:02 EDT 2005
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 application 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.
More information about the Insight-users
mailing list