[TASK] Prepare drawing a histogramm.
This commit is contained in:
parent
1d09fcdcc7
commit
2d7b437758
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue