ct_Cells_GTK Module

class ct_Cells_GTK.Cell_GTK(parent)
change_select(widget=None, data=None, state=None)

Function that switches between two states of the cell : selected and not selected The selected flag will be used when performing batch processing of the cell.

Note

This function is called when the select button is clicked, and the ‘widget’ and ‘data’ parameters are not required to run the function.

Note

For the moment, the selected flag has no effect.

export_cell(folder, warning=True, index=None, obj=None)

This function saves the cell in a specified folder. It performs the extraction of the cell from the image, and its rotation to save it in a specified format.

Parameters:folder (str) – The path to the folder where the images will be saved. This folder must exist and be empty.

Warning

This function contains a lot of warnings.

Warning

The code of this function is stil under development, it may not work properly.

Warning

The givent ‘folder’ must exist, else errors will be raised. Furthermore, this folder should be empty since the saving of the images will replace any file that has the same name as a saved image. Be careful.

Warning

This function locks the control panel since it requires to use the playback.

Warning

The ct_Cells.Cell instancemust contain a reference to an instance of the cv module.

new_frame(gtk)

Creates and returns a panel containing all the controls for the management of the cell object It also initializes all the required mouse/button bindings.

Parameters:gtk (gtk) – A gtk instance
Returns:A frame object that can be attached to a window.
Return type:gtk.Frame
update_panel()

Function that updates the Cell Panel with the last data coming from the OpenCv player.

Note

For the moment, only the phase label is updated based on the _get_phase() function

Previous topic

ct_Cells Module

Next topic

ct_GTK Module

This Page