• 大小: 20.06MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-02
  • 语言: 其他
  • 标签: 图像处理  

资源简介

计算机科学与技术专业选修课程“图像处理与分析”的结课大作业,要求运行上课所学知识,自行设计功能。

资源截图

代码片段和文件信息

#include “dialog_exp_transform.h“
#include “ui_dialog_exp_transform.h“

DialogExpTransform::DialogExpTransform(QWidget *parent) :
    QDialog(parent)
    ui(new Ui::DialogExpTransform)
{
    ui->setupUi(this);

    paintFunctionImage(ui->bDoubleSpinBox->value() ui->cDoubleSpinBox->value() ui->aDoubleSpinBox->value());
}

DialogExpTransform::~DialogExpTransform()
{
    delete ui;
}

void DialogExpTransform::on_buttonBox_accepted()
{
    emit sendData(ui->bDoubleSpinBox->value() ui->cDoubleSpinBox->value() ui->aDoubleSpinBox->value());
}

void DialogExpTransform::paintFunctionImage(double b double c double a)
{
    // generate some data:
    QVector x(1001) y(1001); // initialize with entries 0..100
    for (int i=0; i<1001; ++i)
    {
      x[i] = i/50.0 - 10;
      y[i] = qPow(b c*(x[i]-a));
    }
    // create graph and assign data to it:
    ui->customPlot->addGraph();
    ui->customPlot->graph(0)->setData(x y);
    // give the axes some labels:
    ui->customPlot->xAxis->setLabel(“x“);
    ui->customPlot->yAxis->setLabel(“y“);
    // set axes ranges so we see all data:
    ui->customPlot->xAxis->setRange(-10 10);
    ui->customPlot->yAxis->setRange(-10 10);
    ui->customPlot->replot();
}

void DialogExpTransform::on_bDoubleSpinBox_valueChanged(double arg1)
{
    paintFunctionImage(arg1 ui->cDoubleSpinBox->value() ui->aDoubleSpinBox->value());
}

void DialogExpTransform::on_cDoubleSpinBox_valueChanged(double arg1)
{
    paintFunctionImage(ui->bDoubleSpinBox->value() arg1 ui->aDoubleSpinBox->value());
}

void DialogExpTransform::on_aDoubleSpinBox_valueChanged(double arg1)
{
    paintFunctionImage(ui->bDoubleSpinBox->value() ui->cDoubleSpinBox->value() arg1);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-06 00:09  191152-05-杨贤\
     文件     2469196  2018-01-05 22:54  191152-05-杨贤\191152-05-杨贤.pdf
     目录           0  2018-01-05 23:29  191152-05-杨贤\ImageViewer可执行文件\
     文件     3733504  2017-10-02 17:49  191152-05-杨贤\ImageViewer可执行文件\D3Dcompiler_47.dll
     文件       30720  2016-06-10 15:18  191152-05-杨贤\ImageViewer可执行文件\Qt5Concurrent.dll
     文件     5384704  2018-01-05 23:31  191152-05-杨贤\ImageViewer可执行文件\Qt5Core.dll
     文件     5283840  2016-06-10 15:23  191152-05-杨贤\ImageViewer可执行文件\Qt5Gui.dll
     文件      363520  2016-06-10 15:31  191152-05-杨贤\ImageViewer可执行文件\Qt5PrintSupport.dll
     文件      348160  2016-06-11 01:51  191152-05-杨贤\ImageViewer可执行文件\Qt5Svg.dll
     文件     6358528  2016-06-10 15:29  191152-05-杨贤\ImageViewer可执行文件\Qt5Widgets.dll
     目录           0  2018-01-05 23:31  191152-05-杨贤\ImageViewer可执行文件\iconengines\
     文件       42496  2016-06-11 01:51  191152-05-杨贤\ImageViewer可执行文件\iconengines\qsvgicon.dll
     文件     1440256  2018-01-05 23:24  191152-05-杨贤\ImageViewer可执行文件\imViewer.exe
     目录           0  2018-01-05 23:31  191152-05-杨贤\ImageViewer可执行文件\imageformats\
     文件       58880  2016-06-11 02:15  191152-05-杨贤\ImageViewer可执行文件\imageformats\qdds.dll
     文件       33792  2016-06-10 15:32  191152-05-杨贤\ImageViewer可执行文件\imageformats\qgif.dll
     文件       46592  2016-06-11 02:15  191152-05-杨贤\ImageViewer可执行文件\imageformats\qicns.dll
     文件       36352  2016-06-10 15:33  191152-05-杨贤\ImageViewer可执行文件\imageformats\qico.dll
     文件      258560  2016-06-10 15:32  191152-05-杨贤\ImageViewer可执行文件\imageformats\qjpeg.dll
     文件       28672  2016-06-11 01:51  191152-05-杨贤\ImageViewer可执行文件\imageformats\qsvg.dll
     文件       28672  2016-06-11 02:15  191152-05-杨贤\ImageViewer可执行文件\imageformats\qtga.dll
     文件      495616  2016-06-11 02:15  191152-05-杨贤\ImageViewer可执行文件\imageformats\qtiff.dll
     文件       27648  2016-06-11 02:15  191152-05-杨贤\ImageViewer可执行文件\imageformats\qwbmp.dll
     文件      416768  2016-06-11 02:16  191152-05-杨贤\ImageViewer可执行文件\imageformats\qwebp.dll
     文件       22016  2016-06-10 15:16  191152-05-杨贤\ImageViewer可执行文件\libEGL.dll
     文件     2801664  2016-06-10 15:16  191152-05-杨贤\ImageViewer可执行文件\libGLESV2.dll
     文件      120334  2015-12-29 06:25  191152-05-杨贤\ImageViewer可执行文件\libgcc_s_dw2-1.dll
     文件     1540622  2015-12-29 06:25  191152-05-杨贤\ImageViewer可执行文件\libstdc++-6.dll
     文件       79360  2015-12-29 06:25  191152-05-杨贤\ImageViewer可执行文件\libwinpthread-1.dll
     文件    15220736  2014-09-23 18:36  191152-05-杨贤\ImageViewer可执行文件\opengl32sw.dll
     目录           0  2018-01-05 23:31  191152-05-杨贤\ImageViewer可执行文件\platforms\
............此处省略85个文件信息

评论

共有 条评论