({{, (RefLink[ImageEffect, paclet:ref/ImageEffect])[image,"effect"] 
applies the specified image effect to image.}, {, (RefLink[ImageEffect, paclet:ref/ImageEffect])[image,{"effect",params}]
uses parameters params.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[ImageEffect, paclet:ref/ImageEffect]) can be used to simulate image effects such as artistic effects, motion blur, low-light noise, color blindness and more.

Color transforms:

Stylization effects:

Color vision deficiencies:

Framing effects:

By default, sides is assumed to be (RefLink[All, paclet:ref/All]). A list of (RefLink[Left, paclet:ref/Left]), (RefLink[Right, paclet:ref/Right]), (RefLink[Bottom, paclet:ref/Bottom]), (RefLink[Top, paclet:ref/Top]) can be given to modify only the specified sides.

The parameter depth corresponds to the frame depth starting from outside and can be given as the number of pixels or as (RefLink[Scaled, paclet:ref/Scaled])[s], where s×(RefLink[GeometricMean, paclet:ref/GeometricMean])[(RefLink[ImageDimensions, paclet:ref/ImageDimensions])[image]] pixels are affected.

In {"FadedFrame",depth,sides,method}, method can be any of the following: "Cosine", "Exp", "Linear", "Log", "Rounded", "SCurve".

Pseudo-random noise effects add noise to the image:

Use {"SaltPepperNoise",{(Subscript[f, s]),(Subscript[f, p])}} 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 (RefLink[PoissonDistribution, paclet:ref/PoissonDistribution])[p×σ]/σ.

Composition effect:

(RefLink[ImageEffect, paclet:ref/ImageEffect])[] can be used to retrieve a list of all available image effects.

(RefLink[ImageEffect, paclet:ref/ImageEffect]) returns a grayscale image for single-channel images. All other images are converted to RGB.

(RefLink[ImageEffect, paclet:ref/ImageEffect]) takes a (RefLink[RandomSeeding, paclet:ref/RandomSeeding]) option used to specify the seed for some methods. By default, (RefLink[RandomSeeding, paclet:ref/RandomSeeding])->(RefLink[Automatic, paclet:ref/Automatic]) is used, which automatically reseeds every time the function is called.

OpenersPrimaryExamplesSection(Spacer1)Examples  (31)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Create a charcoal sketch effect:

ImageEffect[,"Charcoal"]

Create a noisy image by adding Poisson noise:

ImageEffect[,"PoissonNoise"]

OpenersExampleSection1(Spacer1)Scope  (25)

OpenersExampleSubsection0(Spacer1)Color Transforms  (7)

Boost the color appearance by extending the contrast in the image lightness:

ImageEffect[,"ColorBoosting"]

Apply the chromaticity of a list of colors to increasing intensity values:

ImageEffect[,{"ColorTones",{Black,Blue,Red,Green}}]

Convert the image to grayscale while preserving the local contrast:

ImageEffect[i=,"Decolorization"]

Compare with the standard "Grayscale" conversion:

ColorConvert[i,"Grayscale"]

Enhance the level of detail in the image by specifying the spatial and color scale:

ImageEffect[,{"DetailEnhancing",3,.2}]

Create a posterization effect:

ImageEffect[,{"Posterization",3}]

Posterize a grayscale image:

ImageEffect[,{"Posterization",4}]

Create a sepia effect:

ImageEffect[,"Sepia"]

Apply a digital solarization effect to a color image:

ImageEffect[,"Solarization"]

Solarization effect with an explicit threshold:

ImageEffect[,{"Solarization",0.3}]

OpenersExampleSubsection1(Spacer1)Stylization Effects  (8)

Charcoal sketch effect:

ImageEffect[,"Charcoal"]

Transform the image as an old comic book picture:

ImageEffect[,{"Comics",{.2,.5}}]

Create an embossing effect:

ImageEffect[,"Embossing"]

Visualize the image with different densities of random dots:

ImageEffect[,{"Stippling",5}]

Jitter effect:

ImageEffect[,"Jitter"]

Specify a small jitter radius:

ImageEffect[,{"Jitter",2}]

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

ImageEffect[,{"MotionBlur",15}]

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

ImageEffect[,{"OilPainting",5}]

Stylize the image by smoothing it and highlighting its edges:

ImageEffect[,"EdgeStylization"]

OpenersExampleSubsection2(Spacer1)Vision Deficiencies  (1)

Simulate different types of color blindness:

ImageEffect[,#]&/@{"Deuteranopia","Tritanopia"}

OpenersExampleSubsection3(Spacer1)Framing Effects  (4)

Frame the image by fading its edges:

ImageEffect[,"FadedFrame"]

Fade only the bottom and right side starting at 1/3 from the image border:

ImageEffect[,{"FadedFrame",Scaled[1/5],{Bottom,Right}}]

Use a torn paper effect to frame the image:

ImageEffect[,{"TornFrame"}]

Use an arbitrary function to specify the frame:

ImageEffect[,{"Frame",Cos[#/10]&}]

Add a vignette to the image:

ImageEffect[,"Vignette"]

OpenersExampleSubsection4(Spacer1)Noise Effects  (4)

Add uniform noise to an image:

ImageEffect[,{"Noise",0.3}]

Add Gaussian noise to an image:

ImageEffect[,{"GaussianNoise",0.3}]

Add Poisson noise to an image:

ImageEffect[,{"PoissonNoise",0.8}]

Add salt-and-pepper noise to an image:

ImageEffect[,{"SaltPepperNoise",0.1}]

OpenersExampleSubsection5(Spacer1)Composition Effects  (1)

Nest a composition consisting of an image and scaled versions of it:

ImageEffect[,"NestedComposition"]

Compose 20 copies of the image, each scaled down by a factor of 0.9 and rotated by 5 degrees:

ImageEffect[,{"NestedComposition",20,.9,5Degree}]

OpenersExampleSection3(Spacer1)Applications  (1)

Simulate dog vision as a red-green color blindness and blurring (due to reduced angular resolution):

Blur[ImageEffect[,{"ColorBlindness","Deuteranopia"}],5]

OpenersExampleSection4(Spacer1)Properties & Relations  (1)

Create other effects by combining image processing functions:

i=;

((ColorQuantize[i,32,Dithering->False])^1.2)-EdgeDetect[i]

OpenersExampleSection5(Spacer1)Interactive Examples  (2)

Interactively change the parameters of the embossing effect:

Manipulate[ImageEffect[,{"Embossing",x,y}],{{x,5},0,10}, {{y,π/2},0,π}]

Interactive recursive repetitions of the image:

Manipulate[ImageEffect[,{"NestedComposition",4,.9,0,Scaled[pos],Scaled[pos]}],{{pos,{.7,.2}},{0,0},{1,1}}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ImageData, paclet:ref/ImageData])  ▪  (RefLink[RandomImage, paclet:ref/RandomImage])  ▪  (RefLink[ImageConvolve, paclet:ref/ImageConvolve])  ▪  (RefLink[ImageFilter, paclet:ref/ImageFilter])  ▪  (RefLink[ImageApply, paclet:ref/ImageApply])  ▪  (RefLink[ColorBalance, paclet:ref/ColorBalance])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Basic Image Manipulation, paclet:guide/BasicImageManipulation])}, {▪(RefLinkPlain[Image Processing & Analysis, paclet:guide/ImageProcessing])}, {▪(RefLinkPlain[Computational Photography, paclet:guide/ComputationalPhotography])}})}})