test #6 by 8e4fe9ca55aefc7f3a950b97f57874ac?s=40&d=mm Xavier Bost

toto.cpp
Raw
#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");