using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HalconDotNet;
using System.Threading;
namespace come
{
public partial class Form1 : Form
{
// Local iconic variables
HObject ho_Image1 = null, ho_Image = null, ho_EdgeAmplitude = null;
HObject ho_Regions = null, ho_RegionClosing = null, ho_ConnectedRegions = null;
HObject ho_SelectedRegions = null, ho_RegionTrans = null, ho_ImageReduced = null;
// Local con