mirror of
https://gitlab.univ-nantes.fr/E164955Z/ptrans.git
synced 2026-08-29 15:50:28 +08:00
fix color picking segmentation + compilation error
This commit is contained in:
@@ -692,8 +692,14 @@ void ColorimetricSegmenter::filterRgbWithSegmentation()
|
||||
return;
|
||||
}
|
||||
|
||||
// Retrieve parameters from dialog
|
||||
if (m_app->pickingHub()) {
|
||||
m_pickingHub = m_app->pickingHub();
|
||||
}
|
||||
|
||||
// Retrieve parameters from dialog
|
||||
rgbDlg = new RgbDialog(m_pickingHub, (QWidget*)m_app->getMainWindow());
|
||||
rgbDlg = new RgbDialog(m_pickingHub, (QWidget*)m_app->getMainWindow());
|
||||
rgbDlg->show();
|
||||
|
||||
auto start = std::chrono::high_resolution_clock::now();
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
#include "QuantiDialog.h"
|
||||
|
||||
|
||||
#include<cmath>
|
||||
#include <QVariant>
|
||||
QuantiDialog::QuantiDialog(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
@@ -21,5 +21,5 @@ QuantiDialog::QuantiDialog(QWidget* parent)
|
||||
*/
|
||||
void QuantiDialog::updateLabelValues()
|
||||
{
|
||||
nb_color_label->setText(QString::fromStdString(std::to_string(static_cast<int>(pow(area_quanti->value(), 3)))));
|
||||
nb_color_label->setText(QString::fromStdString(std::to_string(static_cast<int>(pow(area_quanti->value(), 3)))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user