From c687b6cc7a63e11f189c900aad1c8956bac90693 Mon Sep 17 00:00:00 2001 From: tsuji Date: Fri, 4 Feb 2022 15:46:16 +0900 Subject: [PATCH] =?UTF-8?q?pureverify=E5=BC=95=E6=95=B0=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/CSRender/CSRender/CompareTIFF.cs | 9 ++++++++- Code/CSRender/CSRender/MainWindow.xaml.cs | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Code/CSRender/CSRender/CompareTIFF.cs b/Code/CSRender/CSRender/CompareTIFF.cs index f425008..644dc47 100644 --- a/Code/CSRender/CSRender/CompareTIFF.cs +++ b/Code/CSRender/CSRender/CompareTIFF.cs @@ -22,7 +22,8 @@ namespace CSRender class CompareTIFF { public static string runPureVerify(string targetDir, string referenceDir, string workPath, - string shiftPixel, string colorMargin, string removePoint, string shadingOff, bool reportFlag, string reportName) + string shiftPixel, string colorMargin, string removePoint, string shadingOff, + bool reportFlag, string reportName, string inDiffPath) { //実行用コンソールの呼び出し ProcessStartInfo processStartInfo = new ProcessStartInfo(); @@ -82,6 +83,12 @@ namespace CSRender processStartInfo.Arguments += reportName; processStartInfo.Arguments += "\" "; } + + //差異画像の出力 + processStartInfo.Arguments += "/topPageInfo "; + processStartInfo.Arguments += inDiffPath; + processStartInfo.Arguments += " "; + //レポート記述内容の参照先 processStartInfo.Arguments += "/topPageInfo "; string textPath = System.IO.Path.Combine("PureVerify.Data", "RipVerify", "work", "OUT_INFO", "CSReportInf.txt"); diff --git a/Code/CSRender/CSRender/MainWindow.xaml.cs b/Code/CSRender/CSRender/MainWindow.xaml.cs index 32652b2..8745951 100644 --- a/Code/CSRender/CSRender/MainWindow.xaml.cs +++ b/Code/CSRender/CSRender/MainWindow.xaml.cs @@ -144,6 +144,11 @@ namespace CSRender return; } string workLogPath = System.IO.Path.Combine(workBox.Text, "report"); + string outDiffPath = System.IO.Path.Combine(workBox.Text, "OUT_DIFF");//DIFF画像の出力先パス + if (!Directory.Exists(outDiffPath)) + { + Directory.CreateDirectory(outDiffPath);//DIFF画像の出力先パスが無ければ作成 + } bool reportFlag = false; try @@ -275,7 +280,7 @@ namespace CSRender { //PureVerifyの実行 workDir = CompareTIFF.runPureVerify(targetTIFFPath, referenceTIFFPath, workBox.Text - , shiftPixel, colorMargin, removePoint, shadingOff, reportFlag, reportBox.Text); + , shiftPixel, colorMargin, removePoint, shadingOff, reportFlag, reportBox.Text, outDiffPath); } catch (Exception ex) { -- 2.22.0