comparison compare.xml @ 0:fd0e8bda0154 draft

planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit bc7f5022150a6a31030775c7aafc81293833d55a
author bgruening
date Sat, 23 Dec 2023 11:35:44 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:fd0e8bda0154
1 <tool id="graphicsmagick_image_compare" name="Compare two images" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
2 <description>with GraphicsMagick</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="aggressive">
8 <![CDATA[
9 ln -s '${input1}' input1.${input1.ext} &&
10 ln -s '${input2}' input2.${input2.ext} &&
11
12 gm compare
13 -file outfile.png
14 -highlight-style $highlight_style
15 -metric $metric
16 -highlight-color $color
17 'input1.${input1.ext}'
18 'input2.${input2.ext}'
19 ]]>
20 </command>
21 <inputs>
22 <param name="input1" format="jpg,png,bmp,gif,svg,eps,tiff,xcf" type="data" label="First image to compare" />
23 <param name="input2" format="jpg,png,bmp,gif,svg,eps,tiff,xcf" type="data" label="Second image to compare" />
24
25 <param argument="-highlight-style" type="select" label="Pixel highlight style">
26 <option value="assign">assign</option>
27 <option value="threshold">threshold</option>
28 <option value="tint">tint</option>
29 <option value="xor">xor</option>
30 </param>
31 <param argument="-metric" type="select" label="Comparison metric">
32 <option value="MAE">MAE</option>
33 <option value="MSE">MSE</option>
34 <option value="PAE">PAE</option>
35 <option value="PSNR">PSNR</option>
36 <option value="PMSE">PMSE</option>
37 </param>
38 <expand macro="color" />
39 </inputs>
40 <outputs>
41 <data name="output" format="png" from_work_dir="outfile.png">
42 </data>
43 </outputs>
44 <tests>
45 <test>
46 <param name="input1" value="donald.jpg" />
47 <param name="input2" value="donald-palette.jpg" />
48 <output name="output" file="result_image_compare01.png" compare="sim_size" delta="500" />
49 </test>
50 <test>
51 <param name="input1" value="donald.jpg" />
52 <param name="input2" value="donald-palette.jpg" />
53 <param name="highlight_style" value="tint" />
54 <param name="metric" value="MAE" />
55 <output name="output" file="result_image_compare02.png" compare="sim_size" delta="500" />
56 </test>
57 </tests>
58 <help>
59 <![CDATA[
60
61 **What it does**
62
63 This tool compares two images and provides a diff by pixels.
64 Here you can see how it behaves:
65
66 Input:
67
68 .. image:: $PATH_TO_IMAGES/donald.jpg
69 .. image:: $PATH_TO_IMAGES/donald-palette.jpg
70
71
72 Output:
73
74 .. image:: $PATH_TO_IMAGES/result_image_compare01.png
75
76 ]]>
77 </help>
78 <expand macro="citations" />
79 </tool>