visiannot.visiannot.components.AnnotImageWidget

Summary

Module defining AnnotImageWidget

API

Class AnnotImageWidget

class visiannot.visiannot.components.AnnotImageWidget.AnnotImageWidget(visi, widget_position, label_list, annot_dir, nb_table=5, flag_horizontal=True)[source]

Bases: object

Widget for image extraction

Parameters
  • visi – associated instance of ViSiAnnoT

  • widget_position (list or tuple) – position of the widget in the layout of the associated instance of ViSiAnnoT

  • nb_table (int) – maximum number of radio buttons in radio_button_group on a row

  • flag_horizontal (bool) – specify if radio buttons are placed horizontally, otherwise vertically

Methods:

call_push_button(visi)

Callback method for saving the image at current frame in ViSiAnnoT

Attributes:

annot_dir

(str) Directory where the images are saved, a sub-directory is automatically created for each label

label_list

(list) Labels

radio_button_group

(QtWidgets.QButtonGroup) Set of radio buttons for selecting a label

push_button

(pyqt_overlayer.PushButton) Push button for saving image extraction

call_push_button(visi)[source]

Callback method for saving the image at current frame in ViSiAnnoT

Connected to the signal clicked of push_button.

Parameters

visi – associated instance of ViSiAnnoT

annot_dir

(str) Directory where the images are saved, a sub-directory is automatically created for each label

label_list

(list) Labels

push_button

(pyqt_overlayer.PushButton) Push button for saving image extraction

radio_button_group

(QtWidgets.QButtonGroup) Set of radio buttons for selecting a label