[TASK] Prepare drawing a histogramm.

This commit is contained in:
Jan Philipp Timme 2015-10-30 13:58:51 +01:00
parent 1d09fcdcc7
commit 2d7b437758
2 changed files with 16 additions and 1 deletions

View File

@ -46,6 +46,7 @@
*/
ImageViewer::ImageViewer() {
image=NULL;
histogramm=NULL;
startLogging();
generateMainGui();
renewLogging();
@ -215,6 +216,20 @@ int ImageViewer::getIntensityVariance() {
return (int) (sumDifference/(image->width()*image->height()));
}
/**
* Builds up the image for the histogramm.
* @brief ImageViewer::updateHistogramm
*/
void updateHistogramm() {
histogramm = new QImage(256, 100);
histogramm.fill(QColor::fromRgb(255,255,255));
for(int i=0; i<256; i++) {
}
logFile << "Histogramm done." << std::endl;
renewLogging();
}
/****************************************************************************************
*
* GUI elements related to the tasks are set up here.

View File

@ -87,7 +87,7 @@ class ImageViewer : public QMainWindow {
// "My" space for storing data/results
int grayscale_absolute_histogramm[256];
double grayscale_relative_histogramm[256];
QImage* histogramm;
private slots:
// Custom slots