The SettingsWidget class provides user access to the parameters of SemanticSegmentation. The available .onnx models are listed and one can be seleted for calculating the score in SemanticSegmentation::transform. The classes of the selected model are displayed with their associated color and can be ckecked to be included in the output masks. The overlay alpha for the semantic map can be adjusted.
More...
#include <settingswidget.h>
|
| void | slot_classesAndColorsChanged (QStringList classes, QColorList colors, QBoolList selectedClasses) |
| | [slot] slot_classesAndColorsChanged updates the class list for the chosen model.
|
| |
| void | slot_showTask (QString processor, QString task, bool active) |
| | [slot] slot_showTask displays the given task message and the processor used .
|
| |
|
| | SettingsWidget (QWidget *parent=nullptr, QStringList ONNXmodelList=QStringList(""), float blendAlpha=0.5f, const QString &modelPath="") |
| | SettingsWidget creates a new Instance with the given model names to select from and a default alpha value.
|
| |
The SettingsWidget class provides user access to the parameters of SemanticSegmentation. The available .onnx models are listed and one can be seleted for calculating the score in SemanticSegmentation::transform. The classes of the selected model are displayed with their associated color and can be ckecked to be included in the output masks. The overlay alpha for the semantic map can be adjusted.
- Date
- 2021/03/31
- Author
- Dominik Wüst
◆ SettingsWidget()
| SettingsWidget::SettingsWidget |
( |
QWidget * |
parent = nullptr, |
|
|
QStringList |
ONNXmodelList = QStringList(""), |
|
|
float |
blendAlpha = 0.5f, |
|
|
const QString & |
modelPath = "" |
|
) |
| |
|
explicit |
SettingsWidget creates a new Instance with the given model names to select from and a default alpha value.
- Parameters
-
| parent | The parent for the QWidget |
| ONNXmodelList | The model names to display |
| blendAlpha | The default alpha value for blending |
◆ sig_blendAlphaChanged
| void SettingsWidget::sig_blendAlphaChanged |
( |
float |
alpha | ) |
|
|
signal |
[signal] sig_blendAlphaChanged is emitted on blend alpha value changed.
- Parameters
-
◆ sig_selectedClassesChanged
| void SettingsWidget::sig_selectedClassesChanged |
( |
QBoolList |
classes | ) |
|
|
signal |
[signal] sig_selectedClassesChanged is emitted if a class is selected / deselected.
- Parameters
-
| classes | A List of bools for each class, is true if class is selected |
◆ sig_selectedONNXIndexChanged
| void SettingsWidget::sig_selectedONNXIndexChanged |
( |
int |
idx | ) |
|
|
signal |
[signal] sig_selectedONNXIndexChanged is emitted if a different model is chosen.
- Parameters
-
| idx | The index of the chosen model |
◆ slot_classesAndColorsChanged
| void SettingsWidget::slot_classesAndColorsChanged |
( |
QStringList |
classes, |
|
|
QColorList |
colors, |
|
|
QBoolList |
selectedClasses |
|
) |
| |
|
slot |
[slot] slot_classesAndColorsChanged updates the class list for the chosen model.
- Parameters
-
| classes | The class names |
| colors | The color for each class |
| selectedClasses | bools for the currently selected classes |
◆ slot_showTask
| void SettingsWidget::slot_showTask |
( |
QString |
processor, |
|
|
QString |
task, |
|
|
bool |
active |
|
) |
| |
|
slot |
[slot] slot_showTask displays the given task message and the processor used .
- Parameters
-
| processor | The processor used (cpu or gpu) |
| task | The task currently performed by the processor |
The documentation for this class was generated from the following files:
- iVS3D/src/iVS3D-semanticSegmentationPlugin/settingswidget.h
- iVS3D/src/iVS3D-semanticSegmentationPlugin/settingswidget.cpp