og package¶
Submodules¶
og.app module¶
og.gui module¶
-
class
og.gui.OG_ScriptWindow[source]¶ Bases:
tkinter.Tk
-
class
og.gui.OG_FileSelectWindow(WRAPPER, file='/home/docs/checkouts/readthedocs.org/user_builds/isimple/checkouts/master/og/gui.py')[source]¶ Bases:
og.app.HistoryApp- Select video & overlay files
- Edit script parameters (dt, …)
-
config= {}¶
-
class
og.gui.OG_ReshapeSelection(window, transform, initial_coordinates=None)[source]¶ Bases:
objectReshape-able rectangle ROI selection for tkinter canvases
-
class
og.gui.OG_Corner(selection, co, name='')[source]¶ Bases:
objectDraggable corner for ROI selection rectangle
-
alpha= 0.05¶
-
handle= None¶
-
-
class
og.gui.OG_ImageDisplay(window: og.gui.OG_ScriptWindow, order=(0, 1, 2, 3), initial_coordinates=None)[source]¶ Bases:
objectOpenCV image display in tkinter canvas with link to ROI selection and coordinate transform.
-
class
og.gui.OG_TransformImage(canvas, image, overlay_img, co, callback, ratio, initial_order=(0, 1, 2, 3), frame_number=0)[source]¶ Bases:
objectOpenCV perspective transform overlay alpha blending and display with tkinter
-
alpha= 0.1¶
-
-
class
og.gui.OG_ColorPicker(window, WRAPPER)[source]¶ Bases:
objectSelect colours by clicking image pixels.
-
class
og.gui.OG_OverlayAlignWindow(WRAPPER)[source]¶ Bases:
og.gui.OG_ScriptWindow
-
class
og.gui.OG_MaskFilterWindow(WRAPPER)[source]¶ Bases:
og.gui.OG_ScriptWindow
-
class
og.gui.OG_ProgressWindow(WRAPPER)[source]¶ Bases:
og.gui.OG_ScriptWindow
-
og.gui.load_file_dialog(title: str = None, patterns: List[str] = None, patterns_str: str = None)[source]¶
-
og.gui.save_file_dialog(title: str = None, patterns: List[str] = None, patterns_str: str = None)[source]¶
-
class
og.gui.EntryPopup(parent, iid, index, item, callback, **kw)[source]¶ Bases:
tkinter.ttk.EntryPop-up widget to allow value editing in TreeDict
-
class
og.gui.TreeDict(tk: Union[tkinter.Tk, tkinter.Misc], data: dict, callback: Callable[[dict], dict])[source]¶ Bases:
objectAn editable representation of a dictionary in a ttk.Treeview
-
class
og.gui.guiPane[source]¶ Bases:
og.gui.guiElementAbstract class for a GUI pane
-
class
og.gui.guiWindow[source]¶ Bases:
og.gui.guiElementAbstract class for a GUI window
-
class
og.gui.SetupWindow[source]¶ Bases:
og.gui.guiWindow
-
class
og.gui.TransformWindow[source]¶ Bases:
og.gui.guiWindowAllows the user to set up a transform interactively * Callbacks:
- Get the raw and transformed frame at a certain frame number (scrollable)
- Estimate the transform for a set of coordinates
-
class
og.gui.FilterWindow[source]¶ Bases:
og.gui.guiWindowAllows the user to set up a filter interactively * Interaction:
- Scroll through the video to find the liquid of interest, click on it and set the filter according to the selected pixel
- todo: extra GUI elements for more control over filter parameters
- todo: would be great to change the filter type dynamically; in that
- case the gui Manager would have to be involved in order to update the FilterWindow’s callbacks… Otherwise: filter implementations wrapped by Filter, not inheriting from Filter
- Callbacks:
- Get the masked / masked & filtered frame at a certain frame number (scrollable)
- Set the filter
-
class
og.gui.ProgressWindow[source]¶ Bases:
og.gui.guiWindowShows the progress of an analysis. * No callbacks; not interactive, so the backend pushes to the GUI instead