public Form1() { InitializeComponent(); hNet = new HopfieldNet(netSize); activeImage = new bool[netSize * netSize]; inputImages = hNet.Images; }
private void Recalculate_Click(object sender, EventArgs e) { netSize = (int)ImageSizeBox.Value; hNet = new HopfieldNet(netSize); activeImage = new bool[netSize * netSize]; inputImages = hNet.Images; pictureBox1.Refresh(); }