python - How do the PIL ImageFilter enhancement filters work? -


Which algorithms do PIL image filter functions, where can I find this information? What does the shore edge work? I am looking to apply the difference of Gaussians filter, but if PIL has a filter which works like this then I will use it.

Image filter methods use the kernel with an image to produce filter effects. There is a good primer on the kernel rebound if you load the image filter module, then you

  & gt; & Gt; & Gt; You can understand the kernel used for each type of operation. For example, for EDGE_ENHANCE_MORE help  

filterargs = ((3, 3), 1, 0, (-1, -) with the help of (imageFilter)

1, -1, -1, 9, -1, -1, -1, -1))

This means that EDGE_ENHANCE_MORE kernel size 3x3, scale factor 1, offset 0, and center value plus -1 are the values, which is 9. From what I've read, it seems like you can create a custom filter (with the difference of the Gaussian kernel) by providing the appropriate logic for the kernel object:

  kernel (size, kernel, scale = None, offset = 0)  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -