[Insight-developers] interrupting filter execution
Paul Koshevoy
koshevoy at sci.utah.edu
Tue Jul 18 13:15:41 EDT 2006
Hi,
I am working on a UI with an ITK 2.4.1 backend. The UI is multi threaded
-- image processing in the secondary thread, UI in the first thread.
Some of the ITK operations I have to carry out take a significant amount
of time -- an itk::ImageFileReader stage on a 411MB file can take a
while, and itk::DiscreteGaussianImageFilter may take a while as well. In
the UI I present the user with a dialog where the ITK process can be
canceled. I call AbortGenerateDataOn() to interrupt the ITK processes.
I've noticed (by means of itk::SimpleFilterWatcher) that
AbortGenerateDataOn() has no effect on the itk::ImageFileReader or
itk::DiscreteGaussianImageFilter.
Am I using the correct API for aborting the filters? What is the correct
way to stop a filter?
Thank you,
Paul.
More information about the Insight-developers
mailing list