Starting with the 2.5 release, the Video SDK includes a new ChromaKey implementation. Technically, its work is similar to the original Chroma Key but its quality and performance were significantly improved.
The SDK includes both interfaces for now, so the existing projects won't be affected by updates to the newest SDK versions. The method names are the same so the transition from the old version to the new one should be smooth.
The main difference is in the adjusting parameters. Compared to the old one, the new implementation is much simpler -- there are only 6 parameters.
NOTE: the new implementation works only with the gpu_pipeline enabled.
eCK2_Adjust specifies adjustment parameters of the Chroma Key
Member | Description |
---|---|
eCK2A_Power_H | Power of H of colors (HSV colorspace) |
eCK2A_Power_S | Power of S of colors (HSV colorspace) |
eCK2A_Power_V | Power of V of colors (HSV colorspace) |
eCK2A_Similarity | Similarity parameter -- a general metric for colors |
eCK2A_Colors_Alpha | Colors transparency for background |
eCK2A_Colors_Saturation | Colors saturation for the object |