private void ProcessBtn_Click(object sender, EventArgs e) { double mse = metrics.MSE(img1, img2); label1.Text = "Size video 1: " + videoController.GetVideoInfo(1, file1, img1).ToString(); label2.Text = "Size video 2: " + videoController.GetVideoInfo(1, file2, img2).ToString(); label3.Text = "MSE: " + mse.ToString(); label4.Text = "PSNR: " + metrics.PSNR(mse).ToString(); //label5.Text = "SSIM: " + metrics.SSIM(imgArr1, imgArr2).ToString(); label5.Text = "SSIM: " + metrics.SSIM(img1, img2).ToString(); videoController.ClearResource(); Console.WriteLine(metrics.PSNR(17.6998)); }
private void ExtractBtn_Click(object sender, EventArgs e) { double time = Environment.TickCount; progressBar.Maximum = 1; progressBar.Value = 0; string text = null; text = frameProcessing.decode(stegoFrame); SecretTextBox.Text = text; videoController.ClearResource(); progressBar.Value++; status.Text = "Extract " + ((double)(Environment.TickCount - time) / 1000).ToString() + " sec."; }