diff --git a/src/core/histogram.cpp b/src/core/histogram.cpp index 1287666..26e8ee6 100644 --- a/src/core/histogram.cpp +++ b/src/core/histogram.cpp @@ -24,6 +24,20 @@ Histogram::~Histogram() void Histogram::generate(QImage* image) { + + qDebug() << Q_FUNC_INFO << "Not implemented yet!"; + for(int i = 0 ; i < image->height(); i++){ + for(int j = 0 ; j < image->width() ; j++){ + QColor *clrCurrent = new QColor( image->pixel(i,j) ); + R->insert(clrCurrent->red(),R->value(clrCurrent->red())+1); + G->insert(clrCurrent->green(),R->value(clrCurrent->green())+1); + B->insert(clrCurrent->blue(),R->value(clrCurrent->blue())+1); + L->insert(clrCurrent->alpha(),R->value(clrCurrent->alpha())+1); + } + } + + + qDebug() << Q_FUNC_INFO << "Not implemented yet!"; }