annotate tools/median.xml @ 3:952a37c4ffc8 default tip

contact added
author tomasz-bednarz
date Tue, 26 Nov 2013 13:17:03 +1100
parents a44112280169
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_median" name="Filter - Median" version="1.0.2">
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
2
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Apply a median filter of the given size.</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 median $size jpeg
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
8 #else:
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
9 pil_filter.py $input $output median $size ${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 <param name="size" size="3" type="integer" value="3" label="Median size" help="Median size in pixels." />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
16 </inputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
17
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
18 <outputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
19 <data format="input" name="output" metadata_source="input" label="Median ${size.value} on ${input.display_name}"/>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
20 </outputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
21
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
22 <help>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
23 Create a median filter of the given size. For each pixel in the input image, this filter copies the median pixel value from a (size, size) environment to the output image.
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
24 </help>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
25
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
26 <tests>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
27 <test>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
28 <param name="input" value="images/sydney.jpg" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
29 <param name="size" value="3" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
30 <output name="output" file="images/sydney-median.jpg" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
31 </test>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
32 </tests>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
33
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
34 </tool>