45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace TBF.BenchControl.Cameras.IdcCamera.Command
|
|
{
|
|
public class Measure : IWorkerCmd
|
|
{
|
|
public string CmdName { get { return "Measure"; } }
|
|
public int RoiNr; /// 1 or 2
|
|
public bool Triggered;
|
|
public int WMeterType;
|
|
public int IRoiX;
|
|
public int IRoiY;
|
|
public int IRoiW;
|
|
public int IRoiH;
|
|
public float CX;
|
|
public float CY;
|
|
public float ORoiW;
|
|
public float ORoiH;
|
|
public int MinMvmt;
|
|
public int MaxMvmt;
|
|
public float Brightness; /// Overal brightness 0.0 .. 1.0 obtained as a product of the camera and the ROI brightness
|
|
|
|
public Measure(int roiNr, bool triggered, int wMeterType,
|
|
int iRoiX, int iRoiY, int iRoiW, int iRoiH,
|
|
float cx, float cy, float oRoiW, float oRoiH,
|
|
int minMvmt, int maxMvmt, float brightness)
|
|
{
|
|
this.RoiNr = roiNr;
|
|
this.Triggered = triggered;
|
|
this.WMeterType = wMeterType;
|
|
this.IRoiX = iRoiX;
|
|
this.IRoiY = iRoiY;
|
|
this.IRoiW = iRoiW;
|
|
this.IRoiH = iRoiH;
|
|
this.CX = cx;
|
|
this.CY = cy;
|
|
this.ORoiW = oRoiW;
|
|
this.ORoiH = oRoiH;
|
|
this.MinMvmt = minMvmt;
|
|
this.MaxMvmt = maxMvmt;
|
|
this.Brightness = brightness;
|
|
}
|
|
}
|
|
}
|