annotate imagej2_make_binary.xml @ 0:66d9e595dff2 draft

planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
author iuc
date Tue, 04 Aug 2015 13:20:29 -0400
parents
children d26f11339f08
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
1 <?xml version='1.0' encoding='UTF-8'?>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
2 <tool id="imagej2_make_binary" name="Convert to binary" version="1.0.0">
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
3 <description>(black and white) with ImageJ2</description>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
4 <macros>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
5 <import>imagej2_macros.xml</import>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
6 </macros>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
7 <expand macro="fiji_20141125_requirements" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
8 <command>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
9 <![CDATA[
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
10 python $__tool_directory__/imagej2_make_binary.py
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
11 --input "$input"
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
12 --input_datatype $input.ext
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
13 @make_binary_args@
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
14 @max_heap_size_args@
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
15 --jython_script $__tool_directory__/jython_script.py
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
16 --output_datatype $output_datatype
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
17 --output "$output"
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
18 ]]>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
19 </command>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
20 <inputs>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
21 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
22 <expand macro="make_binary_params" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
23 <param name="output_datatype" type="select" label="Save as format">
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
24 <expand macro="image_datatypes" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
25 </param>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
26 <expand macro="max_heap_size_type_conditional" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
27 </inputs>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
28 <outputs>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
29 <data name="output" format_source="input" label="${tool.name} on ${on_string}">
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
30 <actions>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
31 <action type="format">
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
32 <option type="from_param" name="output_datatype" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
33 </action>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
34 </actions>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
35 </data>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
36 </outputs>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
37 <tests>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
38 <test>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
39 <param name="input" value="clown.jpg" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
40 <param name="input_datatype" value="jpg" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
41 <param name="iterations" value="1" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
42 <param name="count" value="1" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
43 <param name="black_background" value="no" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
44 <param name="pad_edges_when_eroding" value="no" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
45 <param name="output_datatype" value="jpg" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
46 <output name="output" file="clown_binary.jpg" compare="sim_size" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
47 </test>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
48 </tests>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
49 <help>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
50 **What it does**
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
51
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
52 <![CDATA[
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
53 Converts an image into a binary (black and white) image by analyzing the histogram of
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
54 the entire image and setting an automatic threshold level to create the binary image.
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
55
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
56 - **Iterations** - Specifies the number of times erosion, dilation, opening, and closing are performed.
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
57 - **Count** - Specifies the number of adjacent background pixels necessary before a pixel is removed from the edge of an object during erosion and the number of adjacent foreground pixels necessary before a pixel is added to the edge of an object during dilation.
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
58 - **Black background** - If **Yes**, binary images will be created without using an inverted LUT and an assumption that the input image contains white objects on a black background will be made.
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
59 - **Pad edges when eroding** - If **Yes**, eroding does not erode from the edges of the image.
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
60
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
61 ]]>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
62
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
63 </help>
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
64 <expand macro="fiji_headless_citations" />
66d9e595dff2 planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
65 </tool>