public SelectSingleContourFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourSingleSelect; EnumPropertys["DrawOn"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["BoundingRect"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["SelectMode"] = new EnumProperty(typeof(FilterSelectMode)); IntPropertys["X"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 100 }; IntPropertys["Y"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 100 }; EnumPropertys["FillMode"] = new EnumProperty(typeof(FillDrawModeEnum)); IntPropertys["Red"] = new NumProperty <int>() { MaxVal = 255, MinVal = 0, Value = 0 }; IntPropertys["Green"] = new NumProperty <int>() { MaxVal = 255, MinVal = 0, Value = 0 }; IntPropertys["Blue"] = new NumProperty <int>() { MaxVal = 255, MinVal = 0, Value = 0 }; }
public GradientFilter(GraphFilter graph = null, string name = null) : base(graph, name) { Type = FilterType.Gradient; SourceType = new DataType() { channels = 3, depth = Emgu.CV.CvEnum.DepthType.Cv8U }; DestinationType = new DataType() { channels = 3, depth = Emgu.CV.CvEnum.DepthType.Cv8U }; EnumPropertys["Type"] = new EnumProperty(typeof(GradientEnum)); EnumPropertys["Type"].Set("Sobel"); IntPropertys["Kern"] = new NumProperty <int>() { Value = 1, MaxVal = 7, MinVal = 1 }; IntPropertys["Low"] = new NumProperty <int>() { Value = 0, MaxVal = 255, MinVal = 0 }; IntPropertys["Hight"] = new NumProperty <int>() { Value = 255, MaxVal = 255, MinVal = 0 }; }
public ContourSortFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourSort; EnumPropertys["DrawOn"] = new EnumProperty(typeof(FilterDrawMode)); IntPropertys["Thickness"] = new NumProperty <int>() { MaxVal = 10, MinVal = 0, Value = 3 }; EnumPropertys["BoundingRect"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["CenterDrawMode"] = new EnumProperty(typeof(CenterDrawMode)); EnumPropertys["FillMode"] = new EnumProperty(typeof(FillDrawModeEnum)); EnumPropertys["Histogram"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["Histogram"].Set("Hide"); FloatPropertys["MinArea"] = new NumProperty <double>() { MinVal = 0, MaxVal = 50000, Value = 0 }; FloatPropertys["MaxArea"] = new NumProperty <double>() { MinVal = 0, MaxVal = 50000, Value = 50000 }; FloatPropertys["MinPerimeter"] = new NumProperty <double>() { MinVal = 0, MaxVal = 50000, Value = 0 }; FloatPropertys["MaxPerimeter"] = new NumProperty <double>() { MinVal = 0, MaxVal = 50000, Value = 50000 }; IntPropertys["MinHeight"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 0 }; IntPropertys["MaxHeight"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 4096 }; IntPropertys["MinWidth"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 0 }; IntPropertys["MaxWidth"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 4096 }; }
public ContourShiftFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourShift; EnumPropertys["DrawOn"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["BoundingRect"] = new EnumProperty(typeof(FilterDrawMode)); IntPropertys["ShiftX"] = new NumProperty <int>() { MinVal = -2048, MaxVal = 2048, Value = 0 }; IntPropertys["ShiftY"] = new NumProperty <int>() { MinVal = -2048, MaxVal = 2048, Value = 0 }; }
public ContourSearchFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourSearch; EnumPropertys["DrawOn"] = new EnumProperty(typeof(FilterDrawMode)); IntPropertys["Thickness"] = new NumProperty <int>() { MaxVal = 10, MinVal = 0, Value = 3 }; EnumPropertys["BoundingRect"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["CenterDrawMode"] = new EnumProperty(typeof(CenterDrawMode)); EnumPropertys["FillMode"] = new EnumProperty(typeof(FillDrawModeEnum)); EnumPropertys["Histogram"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["Histogram"].Set("Hide"); EnumPropertys["SourceMode"] = new EnumProperty(typeof(SourceDrawModeEnum)); if (graph != null) { EnumPropertys["DrawSource"] = new EnumProperty(graph.GetAddedNames()); } }
public ContourAreaSelectFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourAreaSelect; EnumPropertys["DrawOn"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["BoundingRect"] = new EnumProperty(typeof(FilterDrawMode)); IntPropertys["X"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 100 }; IntPropertys["Y"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 100 }; IntPropertys["SizeX"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 100 }; IntPropertys["SizeY"] = new NumProperty <int>() { MinVal = 0, MaxVal = 4096, Value = 100 }; }
public ToAraundContourFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourAraund; EnumPropertys["DrawOn"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["BoundingRect"] = new EnumProperty(typeof(FilterDrawMode)); EnumPropertys["FillMode"] = new EnumProperty(typeof(FillDrawModeEnum)); EnumPropertys["CenterMode"] = new EnumProperty(typeof(CenterDrawMode)); IntPropertys["HScale"] = new NumProperty <int>() { MinVal = 1, MaxVal = 50, Value = 1 }; FloatPropertys["RScale"] = new NumProperty <double>() { MinVal = 0, MaxVal = 2, Value = 1 }; EnumPropertys["MovingType"] = new EnumProperty(typeof(MovingPredictType)); IntPropertys["MovingRange"] = new NumProperty <int>() { MinVal = 1, MaxVal = 10, Value = 1 }; }
public MergeWithMaskContourFilter(GraphFilter graph, string name = null) : base(graph, name) { Type = FilterType.ContourMaskMerge; EnumPropertys["DrawSource"] = new EnumProperty(graph.GetAddedNames()); EnumPropertys["Exchange"] = new EnumProperty(typeof(FilterLogicMode)); }