ImageEffect

ImageEffect[image,"effect"]
applies the specified image effect to image.

ImageEffect[image,{"effect",params}]
uses parameters params.

DetailsDetails

  • Available artistic image effects include:
  • {"Charcoal",x}charcoal sketch effect
    {"Embossing",x,α}embossing by an amount x at an angle α
    {"OilPainting",x}artistic oil painting effect
    {"Posterization",n}posterization effect using n levels in each channel
    {"Solarization",t}solarization or Sabatier effect
    {"MotionBlur",d,α}motion blur of size d and angle α, given in radians
  • Pseudo-random noise effects:
  • {"Noise",a}adds zero-mean uniform noise of amplitude a/2
    {"GaussianNoise",σ}adds zero-mean Gaussian noise with standard deviation σ
    {"SaltPepperNoise",f}adds salt-and-pepper noise to a fraction f of the image
    {"PoissonNoise",a}adds an amount a of Poisson noise
  • In each case, can be used instead of , and uses default values for parameters.
  • When using , the noise scale σ is defined as and each pixel value p is replaced with PoissonDistribution[p×σ]/σ.
  • ImageEffect[] can be used to retrieve a list of all available image effects.
  • ImageEffect returns a grayscale image for single-channel images. All other images are converted to RGB.

ExamplesExamplesopen allclose all

Basic Examples  (9)Basic Examples  (9)

Charcoal sketch effect:

In[1]:=
Click for copyable input
Out[1]=

Render a color image in the style of an oil painting:

In[1]:=
Click for copyable input
Out[1]=

Create a posterization effect:

In[1]:=
Click for copyable input
Out[1]=

Posterize a grayscale image:

In[1]:=
Click for copyable input
Out[1]=

Add salt-and-pepper noise to an image:

In[1]:=
Click for copyable input
Out[1]=

Add Poisson noise to an image:

In[1]:=
Click for copyable input
Out[1]=

Apply a digital solarization effect to a color image:

In[1]:=
Click for copyable input
Out[1]=

Solarization effect with an explicit threshold:

In[1]:=
Click for copyable input
Out[1]=

Apply motion blur to an image, using the default angle of 45 degrees:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2008
(7.0)
| Updated in 2010
(8.0)