motorTest/Model/Vision/V_CornerPoint.cs
2026-10-17 11:39:30 +08:00

107 lines
2.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Community;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.Vision
{
/// <summary>
/// 角点
/// </summary>
public class V_CornerPoint : NotificationObject
{
/// <summary>
/// 第一条线起点R
/// </summary>
public double hv_Row1 { get; set; }
/// <summary>
/// 第一条线起点C
/// </summary>
public double hv_Column1 { get; set; }
/// <summary>
/// 第一条线终点R
/// </summary>
public double hv_Row2 { get; set; }
/// <summary>
/// 第一条线终点C
/// </summary>
public double hv_Column2 { get; set; }
/// <summary>
/// 第二条线起点R
/// </summary>
public double hv_Row11 { get; set; }
/// <summary>
/// 第二条线起点C
/// </summary>
public double hv_Column11 { get; set; }
/// <summary>
/// 第二条线终点R
/// </summary>
public double hv_Row22 { get; set; }
/// <summary>
/// 第二条线终点C
/// </summary>
public double hv_Column22 { get; set; }
private int mode;
/// <summary>
/// 角点抓取模式 1:从白到黑 2:从黑到白
/// </summary>
public int Model
{
get { return mode; }
set { mode = value; RaisePropertyChanged("Model"); }
}
private int _ShortMode;
/// <summary>
/// 短边寻边方法 0 终点向右 1终点向左 2 起点向右 3起点向左
/// </summary>
public int ShortMode
{
get { return _ShortMode; }
set
{
_ShortMode = value;
this.RaisePropertyChanged("ShortMode");
}
}
private int _ShortLengh = 100;
/// <summary>
/// 短边长度
/// </summary>
public int ShortLengh
{
get { return _ShortLengh; }
set
{
_ShortLengh = value;
this.RaisePropertyChanged("ShortLengh");
}
}
private int _ShortDis;
public int ShortDis
{
get { return _ShortDis; }
set
{
_ShortDis = value;
this.RaisePropertyChanged("ShortDis");
}
}
public V_CornerPoint()
{
Model = 1;
}
}
}