Table of Contents

Class GaussianBlur

Namespace
H.Controls.Diagram.Presenters.OpenCV.NodeDatas.Filter
Assembly
H.Controls.Diagram.Presenters.OpenCV.dll
[Display(Name = "高斯滤波", GroupName = "对图像进行卷积,能够有效去除噪声并保留图像的整体结构", Order = 1)]
public class GaussianBlur : FilterOpenCVNodeDataBase, INotifyPropertyChanged, ICloneable, ITemplate, IPortDataCreator, IPortableNodeData, ILinkDataCreator, ITextNodeData, ITextable, IOpenCVNodeData, IFlowableNodeData, IFlowablePartData, IFlowable, IDisposable, IMessageable, IStopwatchable, IFilterOpenCVNodeData, INodeData, IPartData, IData, IDisplayBindable, IIconable, INameable, IOrderable, IGroupable, IDable, IDescriptionable
Inheritance
GaussianBlur
Implements
Inherited Members
Extension Methods

Properties

BorderType

[Display(Name = "边界处理", GroupName = "数据", Description = "由于滤波核在边界无法完全覆盖图像,需要指定如何填充边界外的像素")]
public BorderTypes BorderType { get; set; }

Property Value

BorderTypes

KSize

高斯核的大小,通常是一个奇数(如 3x3、5x5 等

[Display(Name = "核大小", GroupName = "数据", Description = "核的大小决定了滤波的范围。核越大,平滑效果越强,但计算量也会增加")]
public Size KSize { get; set; }

Property Value

Size

SigmaX

[Display(Name = "X方向标准差", GroupName = "数据", Description = "SigmaX 越大,高斯核在水平方向越平坦,平滑效果越强。SigmaX 越小,高斯核在水平方向越尖锐,平滑效果越弱。")]
public double SigmaX { get; set; }

Property Value

double

SigmaY

[Display(Name = "Y方向标准差", GroupName = "数据", Description = "SigmaY 越大,高斯核在垂直方向越平坦,平滑效果越强。SigmaY 越小,高斯核在垂直方向越尖锐,平滑效果越弱。")]
public double SigmaY { get; set; }

Property Value

double

Methods

Invoke(ISrcImageNodeData, IOpenCVNodeData, IFlowableDiagramData)

protected override FlowableResult<Mat> Invoke(ISrcImageNodeData srcImageNodeData, IOpenCVNodeData from, IFlowableDiagramData diagram)

Parameters

srcImageNodeData ISrcImageNodeData
from IOpenCVNodeData
diagram IFlowableDiagramData

Returns

FlowableResult<Mat>

LoadDefault()

加载默认值。

public override void LoadDefault()