[TASK] Remove tabs.
This commit is contained in:
parent
2f426d4310
commit
5c1e651179
|
@ -212,11 +212,11 @@ void ImageViewer::analyzeImage() {
|
||||||
renewLogging();
|
renewLogging();
|
||||||
for(int x=0; x<image->width(); x++) {
|
for(int x=0; x<image->width(); x++) {
|
||||||
for(int y=0; y<image->height(); y++) {
|
for(int y=0; y<image->height(); y++) {
|
||||||
int r,g,b;
|
int r,g,b;
|
||||||
QColor color = QColor::fromRgb(image->pixel(x, y));
|
QColor color = QColor::fromRgb(image->pixel(x, y));
|
||||||
color.getRgb(&r,&g,&b);
|
color.getRgb(&r,&g,&b);
|
||||||
int intensity = calcIntensity(r, g, b);
|
int intensity = calcIntensity(r, g, b);
|
||||||
grayscale_absolute_histogramm[intensity] += 1;
|
grayscale_absolute_histogramm[intensity] += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -553,8 +553,8 @@ void ImageViewer::open() {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if(original_image!=NULL) {
|
if(original_image!=NULL) {
|
||||||
delete original_image;
|
delete original_image;
|
||||||
original_image = NULL;
|
original_image = NULL;
|
||||||
}
|
}
|
||||||
original_image = new QImage(fileName);
|
original_image = new QImage(fileName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue