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. |
| Method | settings |
Return the UI for the background detect settings. |
| Class Variable | display |
Undocumented |
| Property | ready |
Whether the background detector is ready. |
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.
@lt.endpoint( 'get', 'settings_ui', responses=UI_ELEMENT_RESPONSE)
def settings_ui(self) -> UIElementList:
(source)
¶
overridden in
openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUVReturn the UI for the background detect settings.
overridden in
openflexure_microscope_server.things.background_detect.ChannelDeviationLUV, openflexure_microscope_server.things.background_detect.ColourChannelDetectLUVWhether the background detector is ready.