use float div for sigma calc in gaussblur
thanks aferrero2707
This commit is contained in:
parent
35cea5dbf8
commit
03ad54361a
@ -73,7 +73,7 @@ vips_gaussblur_build( VipsObject *object )
|
|||||||
/* Stop at 20% of max ... bit mean, but means mask radius is roughly
|
/* Stop at 20% of max ... bit mean, but means mask radius is roughly
|
||||||
* right.
|
* right.
|
||||||
*/
|
*/
|
||||||
if( vips_gaussmat( &t[0], gaussblur->radius / 2, 0.2,
|
if( vips_gaussmat( &t[0], gaussblur->radius / 2.0, 0.2,
|
||||||
"separable", TRUE,
|
"separable", TRUE,
|
||||||
"integer", gaussblur->precision != VIPS_PRECISION_FLOAT,
|
"integer", gaussblur->precision != VIPS_PRECISION_FLOAT,
|
||||||
NULL ) )
|
NULL ) )
|
||||||
@ -162,8 +162,8 @@ vips_gaussblur_init( VipsGaussblur *gaussblur )
|
|||||||
* This operator runs vips_gaussmat() and vips_convsep() for you on an image.
|
* This operator runs vips_gaussmat() and vips_convsep() for you on an image.
|
||||||
*
|
*
|
||||||
* @radius is not used directly. Instead the standard deviation of
|
* @radius is not used directly. Instead the standard deviation of
|
||||||
* vips_gaussmat() is set to @radius / 2 and the minimum amplitude set to 20%.
|
* vips_gaussmat() is set to @radius / 2.0 and the minimum amplitude set to
|
||||||
* This gives a mask radius of approximately @radius pixels.
|
* 20%. This gives a mask radius of approximately @radius pixels.
|
||||||
*
|
*
|
||||||
* See also: vips_gaussmat(), vips_conv().
|
* See also: vips_gaussmat(), vips_conv().
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user