The MLBackgroundTasks library offers asynchronous background tasks to ML modules. A
BackgroundTask is executed using the BackgroundTasksManager and runs in another thread.
Important core classes are:
Convenience classes for ML modules are:
For detailed examples, have a look at the MeVisLab/Standard/Sources/Examples/ML/MLBackgroundTasksExamples. This includes:
- AsyncProcessAllPagesExample - An example on how to run a ProcessAllPages handler from a background task.
- AsyncTypedProcessAllPagesExample - An example on how to run a typed ProcessAllPages handler from a background task.
- AsynTileProcessingExample - An example on how to process an input image tile-by-tile.
- AdvancedBackgroundTaskExample - An example that shows most features of the BackgroundTask.