annotate tools/contour.xml @ 2:a44112280169

Uploaded
author tomasz-bednarz
date Mon, 25 Nov 2013 21:12:30 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
1 <tool id="filter_contour" name="Filter - Contour" version="1.0.2">
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
2
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Apply a contour filter on image.</description>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
4
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
5 <command interpreter="python" >
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
6 #if (str($input.ext) == 'jpg'):
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
7 pil_filter.py $input $output contour jpeg
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
8 #else:
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
9 pil_filter.py $input $output contour ${input.ext}
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
10 #end if
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
11 </command>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
12
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
13 <inputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
14 <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
15 </inputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
16
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
17 <outputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
18 <data format="input" name="output" metadata_source="input" label="Contour on ${input.display_name}"/>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
19 </outputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
20
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
21 <help>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
22 Apply a sharpen filter on the image.
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
23 </help>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
24
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
25 <tests>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
26 <test>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
27 <param name="input" value="images/sydney.jpg" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
28 <output name="output" file="images/sydney-contour.jpg" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
29 </test>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
30 </tests>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
31
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
32 </tool>