iVS3D v2.0.0
Loading...
Searching...
No Matches
SettingsWidget Class Reference

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>

Inheritance diagram for SettingsWidget:

Public Slots

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 .
 

Signals

void sig_selectedONNXIndexChanged (int idx)
 [signal] sig_selectedONNXIndexChanged is emitted if a different model is chosen.
 
void sig_selectedClassesChanged (QBoolList classes)
 [signal] sig_selectedClassesChanged is emitted if a class is selected / deselected.
 
void sig_blendAlphaChanged (float alpha)
 [signal] sig_blendAlphaChanged is emitted on blend alpha value changed.
 

Public Member Functions

 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.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ 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
parentThe parent for the QWidget
ONNXmodelListThe model names to display
blendAlphaThe default alpha value for blending

Member Function Documentation

◆ sig_blendAlphaChanged

void SettingsWidget::sig_blendAlphaChanged ( float  alpha)
signal

[signal] sig_blendAlphaChanged is emitted on blend alpha value changed.

Parameters
alphaThe new alpha value

◆ sig_selectedClassesChanged

void SettingsWidget::sig_selectedClassesChanged ( QBoolList  classes)
signal

[signal] sig_selectedClassesChanged is emitted if a class is selected / deselected.

Parameters
classesA 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
idxThe 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
classesThe class names
colorsThe color for each class
selectedClassesbools 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
processorThe processor used (cpu or gpu)
taskThe task currently performed by the processor

The documentation for this class was generated from the following files: