[ITK] [ITK-users] itkConnectedThresholdImageFilter does not support Progress?

zagwin zagwin at gmail.com
Mon Jun 8 14:34:37 EDT 2015


Hello,

I made a minipipeline using MedianImageFilter,
ConnectedThresholdImageFilter, and BinaryDilateImageFilter. My progress bar
will increase from 0->0.5 slowly, and then stop 0.5 for a while, and jump to
0.75, and increase slowly to 1. So, I suppose the
ConnectedThresholdImageFilter does not support progress. Am I right? or I
made a mistake?

In the ::GenerateData()
{

typename ProgressAccumulator::Pointer progress = ProgressAccumulator::New();
progress->SetMiniPipelineFilter(this);
		//Get InputImage
const typename TInput::ConstPointer inputImage( this->GetInput() );

typedef itk::MedianImageFilter			   <InputImageType, InputImageType> 
MedianImageFilterType;
typedef itk::ConnectedThresholdImageFilter <InputImageType, OutputImageType> 
ConnectedThresholdFilterType;
typedef itk::BinaryBallStructuringElement  <OutputImagePixelType,
ImageDimension>  StructuringElementType;
typedef itk::BinaryDilateImageFilter       <OutputImageType,
OutputImageType, StructuringElementType> BinaryDilateFilterType;

MedianImageFilterType::Pointer         medianfilter  =
MedianImageFilterType::New();
ConnectedThresholdFilterType::Pointer  ccthreshold   =
ConnectedThresholdFilterType::New();
BinaryDilateFilterType::Pointer        bDilate       =
BinaryDilateFilterType::New();

progress->RegisterInternalFilter(medianfilter,.5f);
progress->RegisterInternalFilter(ccthreshold, .25f);
progress->RegisterInternalFilter(bDilate,     .25f);

.......
}



--
View this message in context: http://itk-users.7.n7.nabble.com/itkConnectedThresholdImageFilter-does-not-support-Progress-tp35782.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