void ALEXHistogramsWidget::drawPlots() { if(ad->isEmptyBurst()) return; qDebug("ALEXHistogramsWidget::drawPlots"); // density plot plotDensity(); // pr histogram plotHistogramPR(); // S histogram plotHistogramS(); switch(ui->comboBoxPlot->currentIndex()) { case 0: plotContour(); break; case 1: plotTgTr(); break; default: AlexEvalLog::warning("Error: Plot not implemented"); break; } }
Output& Output::operator<<(const Calc::Output& out) { if (_write_file) { writeToFile(out); } for (size_t i = 0; i < _plot_type.size(); ++i) { cv::Mat composite; const bool transparent = _plot_type[i] & ORIGINAL; if (transparent) { composite = out.original; } else { composite = cv::Mat::zeros(out.original.size(), CV_8UC3); } if (_plot_type[i] & DENSITY) { plotDensity(composite, out.density, transparent); } if (_plot_type[i] & (VELOCITY | USE_MASK)) { plotVelocity(composite, out.velocity, out.mask); } else if (_plot_type[i] & VELOCITY) { plotVelocity(composite, out.velocity); } _video_writer[i] << composite; } ++_frame; return *this; }
void ALEXHistogramsWidget::on_comboBoxPalette_currentIndexChanged() { if(ui->comboBoxPlot->currentIndex()==0) plotContour(); plotDensity(); }