Table of Contents

Struct MFPDeinterlaceBlend

Namespace
VisioForge.Core.Types.FastImageProcessing
Assembly
VisioForge.Core.dll

Deinterlace blend parameters.

public struct MFPDeinterlaceBlend

Inherited Members

Remarks

The MFPDeinterlaceBlend structure contains parameters for a blend-based deinterlacing algorithm. This algorithm works by analyzing the differences between adjacent scan lines and blending them based on detected motion and edge characteristics. It's particularly effective for video content with moderate motion and helps reduce interlacing artifacts like combing effects.

The algorithm uses two threshold values to determine when to apply blending: - BlendThresh1: Primary threshold for detecting interlacing artifacts - BlendThresh2: Secondary threshold for fine-tuning the detection

The blending strength is controlled by two constants that determine how aggressively the algorithm blends adjacent lines when interlacing is detected.

Fields

BlendConstants1

Constants 1 - Primary blending strength coefficient.

public double BlendConstants1

Field Value

double

Remarks

Controls the strength of the primary blending operation when interlacing is detected. Higher values result in stronger blending between adjacent scan lines, which can better eliminate interlacing artifacts but may also reduce image sharpness.

Default: 9.0, Range: [0, 255] - 0-5: Minimal blending, preserves detail - 5-15: Standard blending for most content - 15-30: Strong blending for severe interlacing - 30+: Very aggressive blending, may cause softness

BlendConstants2

Constants 2 - Secondary blending factor.

public double BlendConstants2

Field Value

double

Remarks

A fractional multiplier applied to the secondary blending pass. This provides fine-grained control over the final blending result, allowing for subtle adjustments to the deinterlacing effect without dramatically changing the primary blend.

Default: 0.3, Range: [0, 1] - 0.0-0.2: Minimal secondary blending - 0.2-0.4: Standard secondary blending (default range) - 0.4-0.7: Enhanced secondary blending - 0.7-1.0: Maximum secondary blending

Lower values preserve more original detail, while higher values provide smoother results at the cost of some sharpness.

BlendThresh1

Threshold 1 - Primary motion detection threshold.

public int BlendThresh1

Field Value

int

Remarks

Controls the sensitivity of interlacing artifact detection. Lower values make the algorithm more sensitive, applying deinterlacing to more areas of the image. Higher values reduce sensitivity, preserving more of the original image.

Typical values: - 5-10: Very sensitive, good for static/slow content - 10-20: Moderate sensitivity, general purpose - 20-40: Less sensitive, good for high-motion content - 40+: Minimal deinterlacing, preserves detail

BlendThresh2

Threshold 2.

public int BlendThresh2

Field Value

int

Remarks

Default 5 - range [0, 255].

Methods

CopyFrom(VideoEffectDeinterlaceBlend)

Copies settings from effect.

public void CopyFrom(VideoEffectDeinterlaceBlend src)

Parameters

src VideoEffectDeinterlaceBlend

Source VideoEffectDeinterlaceBlend object containing the settings to copy.

Remarks

This convenience method allows easy transfer of settings from the higher-level VideoEffectDeinterlaceBlend class to this low-level structure used by the fast image processing pipeline. All threshold and constant values are copied.