eda_plugin.analysers.image.ImageAnalyser
- class eda_plugin.analysers.image.ImageAnalyser(*args: Any, **kwargs: Any)
Bases:
QObjectBasic image analyser.
Receives and gathers the needed amount of images as set in settings.json. Once all are received it tries to start a worker in a threadpool to analyse the image. The worker itself will pass the value it calculated on to any expecting interpreters.
- __init__(event_bus: EventBus)
Get settings from settings.json, set up the threadpool and connect signals.
Methods
__init__(event_bus)Get settings from settings.json, set up the threadpool and connect signals.
connect_incoming_events(event_bus)Connect the events here, so subclasses can choose to not do so.
connect_worker_signals(worker)Connect worker signals in extra method, so that this can be overwritten independently.
gather_images(py_image)Gather the amount of images needed.
new_mda_settings(new_settings)- connect_incoming_events(event_bus: EventBus) None
Connect the events here, so subclasses can choose to not do so.
- connect_worker_signals(worker: qtpy.QtCore.QRunnable)
Connect worker signals in extra method, so that this can be overwritten independently.
- gather_images(py_image: pymm_eventserver.data_structures.PyImage) bool
Gather the amount of images needed. Channels can be swapped by subclasses. So don’t rely on them coming in in the correct order.
- start_analysis(evt: pymm_eventserver.data_structures.PyImage)
Image arrived, see if all images were gathered and if so, start analysis.