qt5+qcustomplot+c+++opencv绘制曲线图与直方图

首先使用文件过滤器对文件夹内的格式为.jpg的图片。

然后利用清晰度函数计算得分值。

最后使用qcustomplot模块绘制曲线与直方图。

qt5+qcustomplot+c+++opencv绘制曲线图与直方图_第1张图片

qt5+qcustomplot+c+++opencv绘制曲线图与直方图_第2张图片 

 主要代码如下:

 ui->custplot->addGraph();
    ui->custplot->graph(0)->setData(x,y);
    ui->custplot->graph(0)->setName("MyFunctions");
    ui->custplot->graph(0)->setLineStyle((QCPGraph::LineStyle)1);


    QCPGraph *pGraph2 = ui->custplot->addGraph();
    pGraph2->setData(x,yten);
    pGraph2->setName("Tenengrad");
   

你可能感兴趣的:(c++,qt,opencv,qt,c++,opencv)