comparison imagej2_adjust_threshold_binary.xml @ 0:f1ba33cd9edf draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit b08f0e6d1546caaf627b21f8c94044285d5d5b9c-dirty"
author imgteam
date Tue, 17 Sep 2019 17:09:25 -0400
parents
children 29a4d422f32a
comparison
equal deleted inserted replaced
-1:000000000000 0:f1ba33cd9edf
1 <?xml version='1.0' encoding='UTF-8'?>
2 <tool id="imagej2_adjust_threshold_binary" name="Adjust threshold" version="@WRAPPER_VERSION@.0">
3 <description>of binary image</description>
4 <macros>
5 <import>imagej2_macros.xml</import>
6 </macros>
7 <expand macro="fiji_requirements" />
8 <command>
9 <![CDATA[
10 python $__tool_directory__/imagej2_adjust_threshold_binary.py
11 --input "$input"
12 --input_datatype $input.ext
13 --threshold_min $threshold_min
14 --threshold_max $threshold_max
15 --method $method
16 --display $display
17 --black_background $black_background
18 --stack_histogram $stack_histogram
19 --jython_script $__tool_directory__/imagej2_adjust_threshold_binary_jython_script.py
20 --output_datatype $output.ext
21 --output "$output"
22 ]]>
23 </command>
24 <inputs>
25 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/>
26 <param name="threshold_min" type="float" value="0" min="0" max="255" label="Minimum threshold value" />
27 <param name="threshold_max" type="float" value="0" min="0" max="255" label="Maximum threshold value" />
28 <param name="method" type="select" label="Method" help="The Default method is the modified IsoData algorithm.">
29 <option value="Default" selected="True">Default</option>
30 <option value="Huang">Huang</option>
31 <option value="Intermodes">Intermodes</option>
32 <option value="IsoData">IsoData</option>
33 <option value="IJ_IsoData">IJ_IsoData</option>
34 <option value="Li">Li</option>
35 <option value="MaxEntropy">MaxEntropy</option>
36 <option value="Mean">Mean</option>
37 <option value="MinError">MinError</option>
38 <option value="Minimum">Minimum</option>
39 <option value="Moments">Moments</option>
40 <option value="Otsu">Otsu</option>
41 <option value="RenyiEntropy">RenyiEntropy</option>
42 <option value="Shanbhag">Shanbhag</option>
43 <option value="Triangle">Triangle</option>
44 <option value="Yen">Yen</option>
45 </param>
46 <param name="display" type="select" label="Display">
47 <option value="red" selected="True">Red</option>
48 <option value="bw">Black and White</option>
49 <option value="over_under">Over/Under</option>
50 </param>
51 <param name="black_background" type="select" label="Black background" help="Select yes if features are lighter than the background.">
52 <option value="no" selected="True">No</option>
53 <option value="yes">Yes</option>
54 </param>
55 <param name="stack_histogram" type="select" label="Stack histogram" help="Select yes to first compute the histogram of the whole stack (or hyperstack) and then compute the threshold based on that histogram.">
56 <option value="no" selected="True">No</option>
57 <option value="yes">Yes</option>
58 </param>
59 </inputs>
60 <outputs>
61 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/>
62 </outputs>
63 <tests>
64 <test>
65 <param name="input" value="blobs.gif" />
66 <param name="output_datatype" value="gif" />
67 <param name="threshold_min" value="0.0" />
68 <param name="threshold_max" value="129.0" />
69 <param name="method" value="Default" />
70 <param name="display" value="red" />
71 <param name="black_background" value="no" />
72 <param name="stack_histogram" value="no" />
73 <output name="output" file="blobs_threshold_default.gif" compare="sim_size" />
74 </test>
75 <test>
76 <param name="input" value="blobs.gif" />
77 <param name="output_datatype" value="gif" />
78 <param name="threshold_min" value="118.0" />
79 <param name="threshold_max" value="255.0" />
80 <param name="method" value="IJ_IsoData" />
81 <param name="display" value="over_under" />
82 <param name="black_background" value="no" />
83 <param name="stack_histogram" value="no" />
84 <output name="output" file="blobs_threshold_ijiso.gif" compare="sim_size" />
85 </test>
86 <test>
87 <param name="input" value="blobs.gif" />
88 <param name="output_datatype" value="gif" />
89 <param name="threshold_min" value="72.0" />
90 <param name="threshold_max" value="255.0" />
91 <param name="method" value="Huang" />
92 <param name="display" value="bw" />
93 <param name="black_background" value="yes" />
94 <param name="stack_histogram" value="no" />
95 <output name="output" file="blobs_threshold_huang_dark.gif" compare="sim_size" />
96 </test>
97 </tests>
98 <help>
99
100 @requires_binary_input@
101
102 **What it does**
103
104 <![CDATA[
105 Sets lower and upper threshold values, segmenting grayscale images into features of interest and background
106
107 - **Minimum threshold value** - Adjusts the minimum threshold value.
108 - **Maximum threshold value** - Adjusts the maximum threshold value.
109 - **Method** - Allows any of the 16 different automatic thresholding methods to be selected. These are global thresholding methods that typically cannot deal with unevenly illuminated images (such as in brightfield microscopy)."
110 - **Display** - Selects one of three display mode: **Red** displays the thresholded values in red, **Black and White** features are displayed in black and background in white, **Over/Under** displays pixels below the lower threshold value in blue, thresholded pixels in grayscale, and pixels above the upper threshold value in green.
111 - **Black background** - Select **yes** when features are lighter than the background.
112 - **Stack histogram**  Select **yes** to first compute the histogram of the whole stack (or hyperstack) and then compute the threshold based on that histogram. As such, all slices are binarized using the single computed value. If unchecked, the threshold of each slice is computed separately.
113 ]]>
114
115 </help>
116 <expand macro="fiji_headless_citations" />
117 </tool>