[Insight-users] watershed progress command

Joshua Cates cates at sci . utah . edu
Wed, 27 Aug 2003 11:05:10 -0600 (MDT)


Hello Jasmine,

The WatershedMiniPipelineProgressCommand (WMPPC) object simply accumulates
progress from the distributed workload in the "mini" pipeline within the
GenerateData() method of itk::WatershedImageFilter and then exposes this
accumulated progress as the total progress of the WatershedImageFilter.  
Progress is reported a filter using a call to UpdateProgress(float f),
where f is the percentage of the work done.

The WMPPC object is part of the command hierarchy in ITK.  An application
registers a command (think callback method) with a filter that is executed
in response to various events (ProgressEvent, IterationEvent, etc) that
are invoked by the filter.

I would suggest using the itk::ProgressAccumulator (which I believe does
the same thing) instead for any new implementations.  WMPPC was written
long before the more generic itk::ProgressAccumulator came along and
should probably be replaced.

Josh.
______________________________
 Josh Cates			
 Scientific Computing and Imaging Institute
 University of Utah
 Email: cates at sci . utah . edu
 Phone: (801) 587-7697
 URL:   http://www . sci . utah . edu/~cates


On Wed, 27 Aug 2003 Jasmine . Hellings at csiro . au wrote:

> Hi,
> 
> I'm trying to develop a version of the watershed algorithm, based upon the
> existing ITK watershed algorithm, but using a different region merging
> strategy (plus a few other changes).  I'm sticking as closely as I can to
> the existing code structure (segmenter -> segment table -> tree generator ->
> segment tree -> relabeler).  However, I'm not really sure how to use the
> MiniPipelineProgressCommand.  What functions does this require in the
> WatershedImageFilter (and other filter classes) to set up input/output?  For
> the filters which WatershedImageFilter calls (segmenter, tree generator,
> relabeler), I assume that the data flow is just set up in the constructor of
> the WatershedImageFilter class.  Is this correct, or is there something else
> I need to do here?
> 
> thanks,
> Jasmine
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>