using SmartCoalApplication.Base.CommTool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SmartCoalApplication.Base.AuxiliaryCalcModel
{
public class XiGaoHModel
{
///
/// 轮廓点集合
///
public OpenCvSharp.Point[] points;
///
/// 轮廓高度
///
public int height;
///
/// 最顶端的点
///
public OpenCvSharp.Point topPoint;
///
/// 最低的点的Y值
///
public int lowY;
///
/// 裁剪后最高点的Y值
///
public int highY;
///
/// 裁剪后最高点的X值
///
public int highX;
///
/// 中心点
///
public int centerX;
///
/// 第二个最高点的Y
///
public int centerOffSetHighY;
///
/// 第二个最高点的X
///
public int centerOffSetHighX;
public void SetPoints(OpenCvSharp.Point[] points)
{
this.points = points;
this.height = Tools.GetContoursHeight(points, out this.topPoint);
}
}
}