private void button1_Click(object sender, EventArgs e) { Matrix hM = ImgConverter.BmpToHMatr(bitmap); pictureBox1.Image = ImgConverter.MatrixToBitmap(hM); }