ImageEffect

ImageEffect[image,"effect"]

applies the specified image effect to image.

ImageEffect[image,{"effect",params}]

uses parameters params.

Details

  • Artistic image effects:
  • {"Charcoal",x}charcoal sketch effect
    {"Comics",{t1,t2}}comics effect with thresholds t1 and t2
    {"Embossing",x,α}embossing by an amount x at an angle α
    {"MotionBlur",d,α}motion blur of size d and angle α, given in radians
    {"OilPainting",x}artistic oil painting effect
    {"Posterization",n}posterization effect using n levels in each channel
    {"Solarization",t}solarization or Sabatier effect
    "Decolorization"contrast-preserving decolorization
    "ColorBoosting"constrast-boosting effect
    {"DetailEnhancing",σ,μ}detail enhancing using spatial spread σ and pixel value spread μ
    "EdgeStylization"a stylized version of the image
  • Color vision deficiencies:
  • "Deuteranopia"insensitivity to green, confusing green and red
    "Protanopia"insensitivity to red, confusing green and red
    "Tritanopia"insensitivity to blue, confusing blue and yellow
  • Pseudo-random noise effects:
  • {"Noise",a}adds zero-mean uniform noise of amplitude a
    {"GaussianNoise",σ}adds zero-mean Gaussian noise with standard deviation σ
    {"PoissonNoise",a}adds an amount a of Poisson noise
    {"SaltPepperNoise",f}adds salt-and-pepper noise to a fraction f of the image
  • Use {"SaltPepperNoise",{fs,fp}} to specify different salt and pepper fractions.
  • In each case, "effect" can be used instead of {"effect",}, and uses default values for parameters.
  • When using {"PoissonNoise",a}, the noise scale σ is defined as 100×(1-a)/a 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.

Examples

open allclose all

Basic Examples  (2)

Create a charcoal sketch effect:

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

Create a noisy image by adding Poisson noise:

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

Scope  (15)

Applications  (1)

Properties & Relations  (1)

Interactive Examples  (1)

See Also

ImageData  RandomImage  ImageConvolve  ImageFilter  ImageApply  ColorBalance

Introduced in 2008
(7.0)
| Updated in 2017
(11.1)