[ITK-users] AdaptiveHistogramEqualizationImageFilter 3D
JoseBarretoT
jose.de.paula at live.com
Fri Oct 16 08:56:06 EDT 2015
Hello guys,
itk::AdaptiveHistogramEqualizationImageFilter works well when applied in 3D
images?
Need to apply this filter to a .mhd arquido a DICOM (zraw), have a similar
effect as unsharp.
The problem is that when you step one reader pictures with 3 dimensions oo
filter takes almost 15 minutes to apply.
Really it does not apply in 3D images? Or am I doing something wrong?
Well, follows the code:
itk::GDCMImageIOFactory::RegisterOneFactory();
itk::MetaImageIOFactory::RegisterOneFactory();
itk::VTKImageIOFactory::RegisterOneFactory();
typedef signed short PixelType;
const unsigned int Dimension = 3;
typedef itk::Image< PixelType, Dimension > ImageType;
typedef itk::ImageSeriesReader< ImageType > ReaderType;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(clXUteis::ConverterStringParaChar("panoramica.mhd"));
reader->Update();
typedef itk::AdaptiveHistogramEqualizationImageFilter< ImageType >
AdaptiveHistogramEqualizationImageFilterType;
AdaptiveHistogramEqualizationImageFilterType::Pointer
adaptiveHistogramEqualizationImageFilter =
AdaptiveHistogramEqualizationImageFilterType::New();
adaptiveHistogramEqualizationImageFilter->SetInput(reader->GetOutput());
adaptiveHistogramEqualizationImageFilter->SetBeta(1);
adaptiveHistogramEqualizationImageFilter->SetAlpha(1);
adaptiveHistogramEqualizationImageFilter->SetRadius(1);
adaptiveHistogramEqualizationImageFilter->Update(); //delay is 13~45
minutes
typedef itk::ImageFileWriter< ImageType > WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName("d://output.mhd");
writer->SetUseCompression(1);
writer->SetInput(adaptiveHistogramEqualizationImageFilter->GetOutput());
writer->Update();
--
View this message in context: http://itk-users.7.n7.nabble.com/AdaptiveHistogramEqualizationImageFilter-3D-tp36339.html
Sent from the ITK - Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list