ImageRestyle

ImageRestyle[image,sample]

attempts to restyle image so as to follow the graphical style of sample.

ImageRestyle[image,wsample]

uses restyle weighting w.

ImageRestyle[image,{sample1,}]

attempts to restyle image using a blend of the graphical styles of the samplei.

ImageRestyle[image,{w1sample1,}]

uses weightings wi for the samplei.

Details and Options

  • The restyle weights w must be numbers between 0 and 1. Larger weights imply larger modifications to the appearance of image.
  • The following options are supported:
  • PerformanceGoal"Speed"what aspect of performance to optimize
    PreserveColorFalsewhether to preserve colors of the original image
    RandomSeeding1234seeding of the pseudorandom generator
    TargetDevice"CPU"the target device on which to compute
  • Possible settings for PerformanceGoal include:
  • "Quality"maximize restyling quality
    "Speed"maximize restyling speed
  • PerformanceGoal->"Speed" uses a feedforward stylization method, while PerformanceGoal->"Quality" selects an optimization-based method.
  • ImageRestyle uses machine learning, and its training set and methods may change in different versions of the Wolfram Language, yielding different results.

Examples

open allclose all

Basic Examples  (2)

Restyle an image:

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

Lower the emphasis on the style:

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

Scope  (3)

Options  (4)

Properties & Relations  (1)

Possible Issues  (1)

Neat Examples  (1)

See Also

ImageEffect  Inpaint  HistogramTransform  BilateralFilter  NetModel

Introduced in 2017
(11.2)