Pillow/docs/reference/ImageFilter.rst

69 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2013-10-13 03:49:32 +04:00
.. py:module:: PIL.ImageFilter
.. py:currentmodule:: PIL.ImageFilter
:py:mod:`~PIL.ImageFilter` Module
=================================
2013-10-13 03:49:32 +04:00
The :py:mod:`~PIL.ImageFilter` module contains definitions for a pre-defined set of
2013-10-13 04:14:12 +04:00
filters, which can be be used with the :py:meth:`Image.filter()
<PIL.Image.Image.filter>` method.
2013-10-13 03:49:32 +04:00
2013-10-13 04:14:12 +04:00
Example: Filter an image
------------------------
2013-10-13 03:49:32 +04:00
.. code-block:: python
2013-10-13 04:14:12 +04:00
from PIL import ImageFilter
2013-10-13 03:49:32 +04:00
im1 = im.filter(ImageFilter.BLUR)
im2 = im.filter(ImageFilter.MinFilter(3))
im3 = im.filter(ImageFilter.MinFilter) # same as MinFilter(3)
Filters
-------
The current version of the library provides the following set of predefined
image enhancement filters:
* **BLUR**
* **CONTOUR**
* **DETAIL**
* **EDGE_ENHANCE**
* **EDGE_ENHANCE_MORE**
* **EMBOSS**
* **FIND_EDGES**
* **SHARPEN**
2013-10-13 03:49:32 +04:00
* **SMOOTH**
* **SMOOTH_MORE**
2018-04-11 13:36:48 +03:00
.. autoclass:: PIL.ImageFilter.Color3DLUT
2019-04-21 16:28:08 +03:00
:members:
2017-09-14 01:59:25 +03:00
.. autoclass:: PIL.ImageFilter.BoxBlur
2019-04-21 16:28:08 +03:00
:members:
2018-04-11 13:36:48 +03:00
.. autoclass:: PIL.ImageFilter.GaussianBlur
2019-04-21 16:28:08 +03:00
:members:
.. autoclass:: PIL.ImageFilter.UnsharpMask
2019-04-21 16:28:08 +03:00
:members:
2013-10-13 03:49:32 +04:00
.. autoclass:: PIL.ImageFilter.Kernel
2019-04-21 16:28:08 +03:00
:members:
.. autoclass:: PIL.ImageFilter.RankFilter
2019-04-21 16:28:08 +03:00
:members:
2013-10-13 03:49:32 +04:00
.. autoclass:: PIL.ImageFilter.MedianFilter
2019-04-21 16:28:08 +03:00
:members:
2013-10-13 03:49:32 +04:00
.. autoclass:: PIL.ImageFilter.MinFilter
2019-04-21 16:28:08 +03:00
:members:
2013-10-13 03:49:32 +04:00
.. autoclass:: PIL.ImageFilter.MaxFilter
2019-04-21 16:28:08 +03:00
:members:
2013-10-13 03:49:32 +04:00
.. autoclass:: PIL.ImageFilter.ModeFilter
2019-04-21 16:28:08 +03:00
:members: