[ITK] [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.
_____________________________________
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://www.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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list