StyleTransfer
class StyleTransfer extends SourceBasedEffectAction
Applies a complex deep learning neural network algorithm that extracts artistic styles from a source image and applies them to the content of a target photograph.
Learn more: Neural Artwork Style Transfer
Methods
__construct(String|Media $source, int $strength = null, bool $preserveColor = null)
StyleTransfer constructor.
preserveColor(bool $preserveColor = true)
Determines whether the original colors of the target photo are kept.
strength(int $strength)
Sets the strength of the style transfer.
Details
__construct(String|Media $source, int $strength = null, bool $preserveColor = null)
StyleTransfer constructor.
StyleTransfer
preserveColor(bool $preserveColor = true)
Determines whether the original colors of the target photo are kept.
StyleTransfer
strength(int $strength)
Sets the strength of the style transfer.