MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #29011 All Revisions ] Back to Issue ]
Summary 0029011: Draw Harness - simplify diffimage command syntax
Revision 2017-08-17 18:20 by kgv
Description Current syntax of diffimage command forces several parameters being mandatory (toleranceOfColor, blackWhite, borderFilter), while they are actually not used in practice:
diffimage imageFile1 imageFile2 toleranceOfColor(0..1) blackWhite(1|0) borderFilter(1|0) [diffImageFile]


It is desired to refactor command syntax to make theses parameters optional.

diffimage can be also extended with an option for displaying compared images and difference in 3D viewer.
In this case, Draw Harness can be used for image comparison as usual difftool (e.g. for git):
call "c:\occt\env.bat"
cmd /c "echo wm withdraw .; pload VISUALIZATION; diffimage %1 %2 -display D/Diff/%~n2 i1 i2 id -exitOnClose 
| DRAWEXE.exe"


In addition, command vinit uses uncommon syntax for passing arguments in form argument=value confusing user input (considering syntax of other commands within ViewerTest).
Revision 2017-08-17 18:05 by kgv
Description Current syntax of diffimage command forces several parameters being mandatory (toleranceOfColor, blackWhite, borderFilter), while they are actually not used in practice:
diffimage imageFile1 imageFile2 toleranceOfColor(0..1) blackWhite(1|0) borderFilter(1|0) [diffImageFile]


It is desired to refactor command syntax to make theses parameters optional.

diffimage can be also extended with an option for displaying compared images and difference in 3D viewer.
In this case, Draw Harness can be used for image comparison as usual difftool (e.g. for git):
call "c:\occt\env.bat"
cmd /c "echo wm withdraw .; pload VISUALIZATION; diffimage %1 %2 -display DiffViewer/Diff i1 i2 
id -exitOnClose | DRAWEXE.exe"


In addition, command vinit uses uncommon syntax for passing arguments in form argument=value confusing user input (considering syntax of other commands within ViewerTest).


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker