Table of Contents

Class VideoEffectGreen

Namespace
VisioForge.Core.Types.VideoEffects
Assembly
VisioForge.Core.dll

Represents a color isolation effect that displays only the green channel while zeroing out red and blue channels.

public class VideoEffectGreen : VideoEffect, IVideoEffectGreen, IVideoEffect

Inheritance

Implements

Inherited Members

Remarks

SDK Availability: Video Capture SDK .NET, Video Edit SDK .NET, Media Player SDK .NET

Platforms: Windows only (DirectShow-based)

Rendering Backend: DirectShow filter

This effect isolates the green color channel by setting the green component to its original value while forcing both red and blue components to zero. The result is a monochromatic green-tinted image that shows only the green information present in the original video, with brightness variations representing different green intensity levels.

The green channel is particularly important in digital imaging because human vision is most sensitive to green wavelengths, and most image sensors dedicate more pixels to green (Bayer pattern) for better luminance information capture.

The green channel isolation effect is commonly used for:

  • Color Analysis: Visualizing green channel data for debugging or scientific analysis
  • Night Vision Simulation: Creating night vision goggle aesthetic with green monochrome
  • Matrix-Style Effects: Green-tinted "digital rain" or computer terminal visuals
  • Medical/Scientific Imaging: Isolating green fluorescence or green-marked specimens
  • Luminance Analysis: Examining green channel which carries most luminance information
  • Chroma Key Preparation: Analyzing green screen footage for keying workflows

This is a CPU-based color transformation effect implemented as a DirectShow filter. The effect performs simple per-pixel channel manipulation by preserving green values (G) and setting red (R) and blue (B) to 0.

Performance: Lightweight CPU-based operation suitable for real-time processing. Minimal performance impact due to simple channel zeroing logic. Efficient for SD and HD resolutions.

Technical Details: For each pixel, the transformation is: RGB(R,G,B) → RGB(0,G,0). The green channel retains its full 8-bit range (0-255), while red and blue are always zero, resulting in shades from black (0,0,0) to pure green (0,255,0).

Related Effects: See also VisioForge.Core.Types.VideoEffects.VideoEffectRed for red channel isolation, and the filter variants VisioForge.Core.Types.VideoEffects.VideoEffectFilterRed, VisioForge.Core.Types.VideoEffects.VideoEffectFilterGreen, VisioForge.Core.Types.VideoEffects.VideoEffectFilterBlue for threshold-based color filtering.

Constructors

VideoEffectGreen(bool, string, TimeSpan, TimeSpan)

Initializes a new instance of the VisioForge.Core.Types.VideoEffects.VideoEffectGreen class.

public VideoEffectGreen(bool enabled, string name = "Green", TimeSpan startTime = default, TimeSpan stopTime = default)

Parameters

enabled bool

If set to true, the effect is enabled and will be applied during playback/processing. If false, the effect is bypassed.

name string

The unique name identifier for this effect instance. Used to retrieve the effect interface for runtime control. Defaults to "Green".

startTime TimeSpan

The timecode when this effect should begin being applied. Use Zero to apply the effect from the start.

stopTime TimeSpan

The timecode when this effect should stop being applied. Use Zero to apply the effect until the end.

Remarks

The green channel isolation effect has no configurable parameters beyond timing and enable state. The effect always sets red and blue to zero while preserving the green channel values, which typically represent the most significant luminance information in digital images.

Methods

GetEffectType()

Gets type.

public VideoEffectType GetEffectType()

Returns

VideoEffectType

The VisioForge.Core.Types.VideoEffects.VideoEffectType.