FilterEffectOptions

Filter effect options.

Properties

path
The local absolute path to the 3D LUT (Lookup Table) file used to implement custom filter effects. The referenced .cube file must strictly follow the Cube LUT specification; otherwise, the filter effect will not work. Below is an example of a .cube file:
LUT_3D_SIZE 32
0.0039215689 0 0.0039215682
0.0086021447 0.0037950677 0
...
0.0728652592 0.0039215689 0
Note:
  • The first line of the LUT file must contain the identifier LUT_3D_SIZE, which indicates the size of the 3D lookup table. Currently, only a LUT size of 32 is supported.
  • The SDK provides a built-in built_in_whiten_filter.cube file. Passing the absolute path of this file applies a whitening filter effect.
strength
The strength of the filter effect, ranging from [0.0, 1.0], where 0.0 means no filter effect. The default value is 0.5. A higher value results in a stronger filter effect.