Allor Documentation v.2 Help

Bokeh

Full Name

ImageEffectsLensBokeh

Description

Emulate a Bokeh effect to images.

Backend

PyTorch

Input Parameters
Images

RGB/A images

Blades Shape

The number of blades at the lens

Blades Radius

Size of blades

Blades Rotation

Blades rotation in angles

Blur Size

Blur strength

Blur Type
  • Bilateral — Blur is set up to preserve sharp and bright edges.

  • Stack — Blur with color correction.

  • None — Without a blur.

Method
  • Dilate — A good choice for initially bright images. Creates a strong bokeh effect, but spoils the details of the image. I can recommend it only for the background.

  • Filter — Very fast. A weak bokeh effect, I recommend it for dark images with bright rare details such as lamp lights or car headlights. Originally created under the impression of LensBlur in Adobe Photoshop and achieved about 80%~ compliance. I recommend setting blur_type as none since it blurs the image by itself.

Output Parameters
Images

RGB/A images

Last modified: 04 December 2023