Enum BackgroundReplacementMode
- Namespace
- VisioForge.Core.Types.X.AI
- Assembly
- VisioForge.Core.dll
How the background-removal block replaces the pixels the matting model marks as background (low foreground alpha).
public enum BackgroundReplacementModeFields
Blur = 0-
Replace the background with a blurred copy of the original frame (the "virtual background blur" effect used by video-conferencing apps). The blur strength is controlled by VisioForge.Core.Types.X.AI.BackgroundRemovalSettings.BlurRadius.
SolidColor = 1-
Fill the background with a solid color (VisioForge.Core.Types.X.AI.BackgroundRemovalSettings.ReplacementColor) — a virtual green-screen for downstream chroma keying or compositing.
Image = 2-
Replace the background with a static image loaded from VisioForge.Core.Types.X.AI.BackgroundRemovalSettings.BackgroundImagePath, scaled to the frame size.
Transparent = 3-
Keep the foreground and write the alpha mask into the frame's alpha channel, leaving the background transparent for compositing further down the pipeline. Requires an output that preserves the alpha channel (RGBA renderer or muxer).