Form1.cs 825 字节
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;

namespace CountImage_Test
{
    public partial class Form1 : Form
    {
        private Asa.CountImage ci;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string path1 = @"D:\X-ray\png";
            string path2 = @"D:\X-ray\out\";
            string path3 = @"D:\X-ray\area.txt";
          
            ci = new Asa.CountImage();
            ci.SetDirectory(path1, path2, path3);
            ci.GetCount(45, out int count);
            MessageBox.Show(count.ToString());
        }
    }
}