Permalink
Browse files

Merge pull request #9 from mich181189/master

VS2010 project file and a couple of other small improvements
  • Loading branch information...
2 parents 5eac010 + 4c2f08c commit 95c7d64adc8dc6827dbb15ccc6ebd5b9367966b7 @Y-Vladimir committed Oct 28, 2012
View
@@ -112,7 +112,7 @@ QImage *ImageUtils::buildKernelImage(const GaussianBlur* gaussianBlur) {
for (int y=0; y<size; y++) {
for (int x=0; x<size; x++) {
- int value = 255*(pow(M_E, -(pow(x-size/2,2)+pow(y-size/2,2))/(2*pow(gaussianBlur->radius,2))));
+ int value = 255*(pow((double)M_E, -(pow((double)x-size/2,2)+pow((double)y-size/2,2))/(2*pow((double)gaussianBlur->radius,2))));
kernelImage->setPixel(x,y,qRgb(value,value,value));
}
}
View
@@ -290,7 +290,7 @@ void MainWindow::openFile(QString fileName) {
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
QMessageBox::information(this, tr("Smart Deblur"),
- tr("Image was resized to %1 * %2 because of performance reason")
+ tr("Image was resized to %1 * %2 for performance reasons")
.arg(width).arg(height));
}
Oops, something went wrong.

0 comments on commit 95c7d64

Please sign in to comment.