2 #include <QtCore/QTime> 9 QObject::connect(
ui.pbGen, SIGNAL(clicked()),
this, SLOT(
GenHologram()));
10 QObject::connect(
ui.pbRecon, SIGNAL(clicked()),
this, SLOT(
ReconImage()));
12 ui.rbCPU->setChecked(
true);
24 LOG(
"Generate Hologram\n");
33 QMessageBox::warning(
this,
"Warning",
"Error: Wrong Format\n", QMessageBox::Ok, QMessageBox::Ok);
43 LOG(
"Time : %d \n", t.elapsed());
44 LOG(
"Time : %f \n", t.elapsed()*0.001/60);
56 QMessageBox::warning(
this,
"Warning",
"Error: Wrong Format\n", QMessageBox::Ok, QMessageBox::Ok);
59 LOG(
"Reconstruct Image\n");
void ReconstructImage()
It is a testing function used for the reconstruction.
HologramGenerator * hologram_
void GenerateHologram()
Generate a hologram, main funtion.
void initialize()
Initialize variables for CPU and GPU implementation.
HologramDepthmap(QWidget *parent=0)
bool readConfig()
Read parameters from a config file(config_openholo.txt).
Main class for generating a hologram using depth map data.
void setMode(bool isCPU)
Set the value of a variable isCPU_(true or false)
Ui::HologramDepthmapClass ui