[Insight-users] Trying to monitor progression of fast march operation
Dan Mueller
dan.muel at gmail.com
Tue Apr 14 07:16:27 EDT 2009
Hi Rick,
You may want to investigate FastMarchingUpwindGradientImageFilter:
http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilter.html
This is a subclass of the normal fast marching filter which allows you
to set the "target reached mode". By default all of the gradient
"stuff" is turned off, so you can treat the filter as you would the
parent class. For example, just add these lines:
filter->SetTargetReachedModeToAllTargets(); // Other options exist also
filter->SetTargetPoints( targetPoints ); // You need to create these
(An aside: it is a shame this functionality was added to the subclass,
not the parent filter.)
Hope this helps.
Cheers, Dan
2009/4/14 Rick Giuly <rgiuly at gmail.com>:
>
> Hello All,
>
> I'm trying to monitor progression of fast march operation so I can stop it
> when it has spread to a certain volume. I figured that AddObserver might be
> a way to do this... but it seems that the callback is not called. Is there
> some other way to monitor the fast march progression?
>
>
> Here is the test that I used (in python):
>
> fastMarching = FastMarchingFilterType.New()
>
> iterationCommand = itk.PyCommand.New()
> iterationCommand.SetCommandCallable(fastMarchIterationUpdate)
> fastMarching.AddObserver(itk.IterationEvent(),
> iterationCommand.GetPointer())
>
>
>
> -rick
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list