Commit c687b6cc authored by tsuji's avatar tsuji

pureverify引数を追加

parent 645464d6
......@@ -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");
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment