test #6 by Xavier Bost
toto.cpp
#include <QGroupBox>
#include <QRadioButton>
#include <QDialogButtonBox>
#include <QGridLayout>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "CompareImageDialog.h"
using namespace cv;
CompareImageDialog::CompareImageDialog(const QString &title, int V, int H, int S, int defValue1, int defValue2, const QString &thresh1Text, const QString &thresh2Text, QWidget *parent)
: QDialog(parent),
m_histoType(2),
m_metrics(CV_COMP_CORREL)
{
setWindowTitle(title);
QGroupBox *histoSrcBox = new QGroupBox("Histogram source:");
QRadioButton *lRB = new QRadioButton("Luminance");
QRadioButton *hsRB = new QRadioButton("Hue/Saturation");