MainWindow¶
- class tat.main_window.MainWindow¶
- __init__(self, parent: Optional[PySide6.QtWidgets.QWidget] = None, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags)) None¶
Initialize self. See help(type(self)) for accurate signature.
- clear_generated() None¶
Clear the generated cluster area.
- clear_image_entries() None¶
Remove all the image entries in the source area. Clear _source_image_entries.
- generate_handler() None¶
When the generate button is clicked, starts the clustering in background and shows the progress bar.
- image_preview() PySide6.QtWidgets.QLabel¶
Override this method to return the image preview QLabel.
- Return type
QLabel
- load_input_directory() None¶
Open a popup to select the directory where is located source images.
- load_output_directory() None¶
Open a popup to select the directory where to generate the clusters and layers.
- merge_layers(layers_indices: List[int]) None¶
Merge all the specified layers
- Parameters
layers_indices (list of int) – A range of the layers to merge
- open_cluster_editor(calling_image_entry: tat.cluster_image_entry.ClusterImageEntry) None¶
Open a cluster editor with the given ClusteringImageEntry.
- Parameters
calling_image_entry (ClusterImageEntry) – The cluster image entry which contains all layers information.
- source_layout() PySide6.QtWidgets.QLayout¶
Override this method to return the source area container layout.
- Return type
QLayout