MeVisLab Toolbox Reference
MLBackgroundTasks Overview

Introduction

The MLBackgroundTasks library offers asynchronous background tasks for ML modules. A BackgroundTask is executed using the BackgroundTasksManager and runs in a thread different from the GUI 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 of how to run a ProcessAllPages handler from a background task.
  • AsyncTypedProcessAllPagesExample - An example of how to run a typed ProcessAllPages handler from a background task.
  • AsynTileProcessingExample - An example of how to process an input image tile-by-tile.
  • AdvancedBackgroundTaskExample - An example that shows most features of the BackgroundTask.