2 #include "ui_segmentationwidget.h" 20 ui->BetaSpinBox->setValue( tool->
getBeta( ) );
21 ui->AlphaSpinBox->setValue( tool->
getAlpha( ) );
26 ui->eraserButton->setChecked(
true );
30 ui->drawButton->setChecked(
true );
39 void SegmentationWidget::on_SegmentationButton_clicked( ) {
40 double alpha = ui->AlphaSpinBox->value( );
41 double beta = ui->BetaSpinBox->value( );
45 catch( std::runtime_error err ) {
46 QMessageBox::warning(
this,
"ERROR", err.what( ) );
50 void SegmentationWidget::on_eraserButton_clicked( ) {
55 void SegmentationWidget::on_drawButton_clicked( ) {
60 void SegmentationWidget::on_ClearButton_clicked( ) {
64 void SegmentationWidget::on_AlphaSpinBox_valueChanged(
double arg1 ) {
68 void SegmentationWidget::on_BetaSpinBox_valueChanged(
double arg1 ) {
72 void SegmentationWidget::on_pushButtonShowSeeds_clicked(
bool checked ) {
76 void SegmentationWidget::on_pushButtonShowMask_clicked(
bool checked ) {
80 void SegmentationWidget::on_thickDoubleSpinBox_valueChanged(
double arg1 ) {