using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using HalconDotNet;
namespace HalconTool
{
public class HalconTool
{
///
/// 流程名
///
internal string jobName = string.Empty;
///
/// 曝光时间
///
internal Int32 exposure = 30;
///
/// 图像的获取方式
///
//internal ImageSourceMode imageSourceMode = ImageSourceMode.FormDevice;
///
/// 是否处于实时采集模式
///
internal bool realTimeMode = false;
///
/// 相机句柄
///
internal Int64 cameraHandle = -1;
///
/// 设备信息字符串,包括了相机SN、品牌等信息
///
internal string deviceInfoStr = string.Empty;
///
/// 实时采集线程
///
internal static Thread th_acq; //Thread类不能序列化,所以申明为静态的
///
/// 读取文件夹图像模式时每次运行是否自动切换图像
///
internal bool autoSwitch = true;
///
/// 是否将彩色图像转化成灰度图像
///
internal bool RGBToGray = true;
///
/// 工作模式为读取文件夹图像时,当前图像的名称
///
internal string currentImageName = "";
///
/// 工作模式为读取文件夹图像时,当前显示的图片的索引
///
internal int currentImageIndex = 0;
///
/// 文件夹中的图像文件集合
///
internal List L_imageFile = new List();
///
/// 单张图像的文件路径
///
internal string imagePath = string.Empty;
///
/// 图像文件夹路径
///
internal string imageDirectoryPath = string.Empty;
///
/// 输出图像
///
internal HObject outputImage;
///
/// 读取单张图像或批量读取文件夹图像工作模式
///
//internal WorkMode workMode = WorkMode.ReadMultImage;
}
}