class documentation
class BackgroundDetectAlgorithm: (source)
Known subclasses: openflexure_microscope_server.background_detect.ColourChannelDetectLUV
Constructor: BackgroundDetectAlgorithm()
The base class for defining background detect algorithms.
| Method | __init__ |
Initialise the algorithm settings. |
| Method | background |
Set the statistics for the background image. |
| Method | image |
Label the current image as either background or sample. |
| Method | set |
Use the input image to update the background data. |
| Method | settings |
Undocumented |
| Property | background |
The statistics of the background image. |
| Property | settings |
The statistics of the background image. |
| Property | status |
The status information needed for the GUI. Read only. |
| Instance Variable | _background |
Undocumented |
| Instance Variable | _settings |
Undocumented |
Set the statistics for the background image.
This should be None, of no data is available. It can be set from either a dictionary or a base model of the type specified in self.background_data_model.
Label 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}. |