Exemplo n.º 1
0
        public void LaplaceGraphAnalysisTest()
        {
            string result;

            using (var stego = new Bitmap(TestingConstants.NormalJpgImage))
            {
                var analyser = new StegAnalyser(false, false, true);
                result = analyser.Run(stego);
            }
            Assert.IsFalse(string.IsNullOrEmpty(result));
        }
Exemplo n.º 2
0
 protected override void RunWithParameters()
 {
     if (Configured)
     {
         InitializeRun();
         string result;
         var    analyzer = new StegAnalyser(mRsAnalysis, mSamplePair, mLaplacianGraph);
         using (var bitmap = new Bitmap(mImagePath))
         {
             result = analyzer.Run(bitmap);
         }
         Console.WriteLine(result);
     }
 }
Exemplo n.º 3
0
 private void Analysis()
 {
     HandleJobController.Progress(() =>
     {
         var analyser = new StegAnalyser(ViewModel.RsAnalysis, ViewModel.SamplePairs, ViewModel.LaplaceGraph);
         var path     = SelectImage();
         if (!string.IsNullOrEmpty(path))
         {
             using (var bitmap = new Bitmap(path))
             {
                 ViewModel.Result = analyser.Run(bitmap);
             }
         }
     });
 }