class documentation
class BackgroundDetectAlgorithm(lt.Thing): (source)
Known subclasses: openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUV
Constructor: BackgroundDetectAlgorithm(thing_server_interface)
The base class for defining background detect algorithms.
| Method | __init__ |
Initialise and create the lock. |
| Method | image |
Label the current image as either background or sample. |
| Method | set |
Use the input image to update the background data. |
| Class Variable | display |
Undocumented |
| Property | ready |
Whether the background detector is ready. |
| Property | settings |
A list of PropertyControl objects to create the settings in the UI. |
overridden in
openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUVLabel the current image as either background or sample.
| Returns | |
tuple[ | A tuple of the result (boolean), and explanation string. The explanation string is formatted so it can be added into a sentence such as An action was taken because the image is {message}. |
overridden in
openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUVUse the input image to update the background data.
Background data must be a Pydantic BaseModel.
overridden in
openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUVWhether the background detector is ready.
overridden in
openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUVA list of PropertyControl objects to create the settings in the UI.