mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Merge pull request #7204 from radarhere/kernel
This commit is contained in:
		
						commit
						1fc8d825fa
					
				|  | @ -35,7 +35,7 @@ class BuiltinFilter(MultibandFilter): | ||||||
| 
 | 
 | ||||||
| class Kernel(BuiltinFilter): | class Kernel(BuiltinFilter): | ||||||
|     """ |     """ | ||||||
|     Create a convolution kernel.  The current version only |     Create a convolution kernel. The current version only | ||||||
|     supports 3x3 and 5x5 integer and floating point kernels. |     supports 3x3 and 5x5 integer and floating point kernels. | ||||||
| 
 | 
 | ||||||
|     In the current version, kernels can only be applied to |     In the current version, kernels can only be applied to | ||||||
|  | @ -43,9 +43,10 @@ class Kernel(BuiltinFilter): | ||||||
| 
 | 
 | ||||||
|     :param size: Kernel size, given as (width, height). In the current |     :param size: Kernel size, given as (width, height). In the current | ||||||
|                     version, this must be (3,3) or (5,5). |                     version, this must be (3,3) or (5,5). | ||||||
|     :param kernel: A sequence containing kernel weights. |     :param kernel: A sequence containing kernel weights. The kernel will | ||||||
|  |                    be flipped vertically before being applied to the image. | ||||||
|     :param scale: Scale factor. If given, the result for each pixel is |     :param scale: Scale factor. If given, the result for each pixel is | ||||||
|                     divided by this value.  The default is the sum of the |                     divided by this value. The default is the sum of the | ||||||
|                     kernel weights. |                     kernel weights. | ||||||
|     :param offset: Offset. If given, this value is added to the result, |     :param offset: Offset. If given, this value is added to the result, | ||||||
|                     after it has been divided by the scale factor. |                     after it has been divided by the scale factor. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user