• 大小: 763KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: C/C++
  • 标签: 欧拉放大  

资源简介

包含2012年MIT关于欧拉放大算法的C++实现代码。

资源截图

代码片段和文件信息

// Yet anther C++ implementation of EVM based on OpenCV and Qt. 
// Copyright (C) 2014  Joseph Pan 
// 
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License or (at your option) any later version.
// 
// This library is distributed in the hope that it will be useful but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not write to the Free Software
// Foundation Inc. 51 Franklin Street Fifth Floor Boston MA
// 02110-1301 USA
// 

#include “MagnifyDialog.h“
#include 
#include “ui_MagnifyDialog.h“

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

    this->processor = processor;

    alphaStr = ui->alphaLabel->text();
    lambdaStr = ui->lambdaLabel->text();
    flStr = ui->flLabel->text();
    fhStr = ui->fhLabel->text();
    chromStr = ui->chromLabel->text();

    std::stringstream ss;
    ss << alphaStr.toStdString() << processor->alpha;
    ui->alphaLabel->setText(QString::fromStdString(ss.str()));

    ss.str(““);
    ss << lambdaStr.toStdString() << processor->lambda_c;
    ui->lambdaLabel->setText(QString::fromStdString(ss.str()));
    ss.str(““);
    ss << flStr.toStdString() << processor->fl;
    ui->flLabel->setText(QString::fromStdString(ss.str()));
    ss.str(““);
    ss << fhStr.toStdString() << processor->fh;
    ui->fhLabel->setText(QString::fromStdString(ss.str()));
    ss.str(““);
    ss << chromStr.toStdString() << processor->chromAttenuation;
    ui->chromLabel->setText(QString::fromStdString(ss.str()));
}

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

void MagnifyDialog::on_alphaSlider_valueChanged(int value)
{
    processor->alpha = value;
    std::stringstream ss;
    ss << alphaStr.toStdString() << processor->alpha;
    ui->alphaLabel->setText(QString::fromStdString(ss.str()));
}

void MagnifyDialog::on_lambdaSlider_valueChanged(int value)
{
    processor->lambda_c = value;
    std::stringstream ss;
    ss << lambdaStr.toStdString() << processor->lambda_c;
    ui->lambdaLabel->setText(QString::fromStdString(ss.str()));
}

void MagnifyDialog::on_flSlider_valueChanged(int value)
{
    processor->fl = value / 100.0;
    std::stringstream ss;
    ss << flStr.toStdString() << processor->fl;
    ui->flLabel->setText(QString::fromStdString(ss.str()));
}

void MagnifyDialog::on_fhSlider_valueChanged(int value)
{
    processor->fh = value / 100.0;
    std::stringstream ss;
    ss << fhStr.toStdString() << processor->fh;
    ui->fhLabel->setText(QString::fromStdString(ss.str()));
}

void

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件          25  2016-04-19 17:07  QtEVM-master\.gitignore
     目录           0  2018-10-09 09:28  QtEVM-master\actions\
     文件         448  2016-04-19 17:07  QtEVM-master\actions\add.png
     文件        1370  2016-04-19 17:07  QtEVM-master\actions\address-book-new.png
     文件         928  2016-04-19 17:07  QtEVM-master\actions\application-exit.png
     文件        1404  2016-04-19 17:07  QtEVM-master\actions\appointment.png
     文件        1404  2016-04-19 17:07  QtEVM-master\actions\appointment-new.png
     文件         828  2016-04-19 17:07  QtEVM-master\actions\back.png
     文件        1086  2016-04-19 17:07  QtEVM-master\actions\bookmark_add.png
     文件        1086  2016-04-19 17:07  QtEVM-master\actions\bookmark-new.png
     文件        1086  2016-04-19 17:07  QtEVM-master\actions\bookmarks_list_add.png
     文件         766  2016-04-19 17:07  QtEVM-master\actions\bottom.png
     文件         976  2016-04-19 17:07  QtEVM-master\actions\call-start.png
     文件         764  2016-04-19 17:07  QtEVM-master\actions\call-stop.png
     文件         548  2016-04-19 17:07  QtEVM-master\actions\centrejust.png
     文件         997  2016-04-19 17:07  QtEVM-master\actions\contact-new.png
     文件        1038  2016-04-19 17:07  QtEVM-master\actions\document-new.png
     文件         854  2016-04-19 17:07  QtEVM-master\actions\document-open.png
     文件        1481  2016-04-19 17:07  QtEVM-master\actions\document-open-recent.png
     文件        1209  2016-04-19 17:07  QtEVM-master\actions\document-page-setup.png
     文件         937  2016-04-19 17:07  QtEVM-master\actions\document-print.png
     文件        1188  2016-04-19 17:07  QtEVM-master\actions\document-print-preview.png
     文件        1145  2016-04-19 17:07  QtEVM-master\actions\document-properties.png
     文件        1226  2016-04-19 17:07  QtEVM-master\actions\document-revert.png
     文件        1172  2016-04-19 17:07  QtEVM-master\actions\document-save.png
     文件        1182  2016-04-19 17:07  QtEVM-master\actions\document-save-as.png
     文件         758  2016-04-19 17:07  QtEVM-master\actions\document-send.png
     文件         775  2016-04-19 17:07  QtEVM-master\actions\down.png
     文件        1028  2016-04-19 17:07  QtEVM-master\actions\editclear.png
     文件        1028  2016-04-19 17:07  QtEVM-master\actions\edit-clear.png
     文件         512  2016-04-19 17:07  QtEVM-master\actions\editcopy.png
............此处省略333个文件信息

评论

共有 条评论

相关资源