mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-08 10:32:28 +00:00
Fix compiler warning
This commit is contained in:
@@ -308,9 +308,9 @@ QImage gaussian_sharpen(const QImage &img, const float radius, const float sigma
|
||||
float sigmaPI2 = 2.0*M_PI*sigma*sigma;
|
||||
|
||||
int half = matrix_size/2;
|
||||
int x, y, i=0, j=half;
|
||||
int x, y, i=0;
|
||||
float normalize=0.0;
|
||||
for(y=(-half); y <= half; ++y, --j){
|
||||
for(y=(-half); y <= half; ++y){
|
||||
for(x=(-half); x <= half; ++x, ++i){
|
||||
alpha = std::exp(-((float)x*x+y*y)/sigma2);
|
||||
matrix[i] = alpha/sigmaPI2;
|
||||
|
||||
Reference in New Issue
Block a user