mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9436cb0315
commit
69938d20df
@ -255,7 +255,7 @@ int default_convolve_matrix_size(const float radius, const float sigma, const bo
|
||||
for(i=(-matrix_size/2); i <= (matrix_size/2); ++i)
|
||||
normalize += exp(-((float) i*i)/sigma2) / sigmaSQ2PI;
|
||||
i = matrix_size/2;
|
||||
value = exp(-((float) i*i)/sigma2) / sigmaSQ2PI / normalize;
|
||||
value = std::exp(-((float) i*i)/sigma2) / sigmaSQ2PI / normalize;
|
||||
matrix_size += 2;
|
||||
} while((int)(max*value) > 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user