Merge pull request #1003 from felixbuenemann/fix-convolution-posterization
Fix convolution vector path posterization
This commit is contained in:
commit
eac314b4a2
@ -909,7 +909,7 @@ vips_convi_intize( VipsConvi *convi, VipsImage *M )
|
|||||||
* later, so 1.0 (for example) would become 128, which is outside
|
* later, so 1.0 (for example) would become 128, which is outside
|
||||||
* signed 8 bit.
|
* signed 8 bit.
|
||||||
*/
|
*/
|
||||||
shift = ceil( log2( mx + 1 ) );
|
shift = ceil( log2( mx ) + 1 );
|
||||||
|
|
||||||
/* We need to sum n_points, so we have to shift right before adding a
|
/* We need to sum n_points, so we have to shift right before adding a
|
||||||
* new value to make sure we have enough range.
|
* new value to make sure we have enough range.
|
||||||
|
Loading…
Reference in New Issue
Block a user