comparison imagej2_adjust_threshold_binary.xml @ 0:0729a4b20e67 draft default tip

Uploaded
author greg
date Wed, 24 Jul 2019 08:30:37 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0729a4b20e67
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 detect_errors="exit_code"><![CDATA[
9 python $__tool_directory__/imagej2_adjust_threshold_binary.py
10 --input "$input"
11 --input_datatype $input.ext
12 --threshold_min $threshold_min
13 --threshold_max $threshold_max
14 --method $method
15 --display $display
16 --black_background $black_background
17 --stack_histogram $stack_histogram
18 --jython_script $__tool_directory__/imagej2_adjust_threshold_binary_jython_script.py
19 --output_datatype $output.ext
20 --output "$output"
21 ]]></command>
22 <inputs>
23 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/>
24 <param name="threshold_min" type="float" value="0" min="0" max="255" label="Minimum threshold value" />
25 <param name="threshold_max" type="float" value="0" min="0" max="255" label="Maximum threshold value" />
26 <param name="method" type="select" label="Method" help="The Default method is the modified IsoData algorithm.">
27 <option value="Default" selected="True">Default</option>
28 <option value="Huang">Huang</option>
29 <option value="Intermodes">Intermodes</option>
30 <option value="IsoData">IsoData</option>
31 <option value="IJ_IsoData">IJ_IsoData</option>
32 <option value="Li">Li</option>
33 <option value="MaxEntropy">MaxEntropy</option>
34 <option value="Mean">Mean</option>
35 <option value="MinError">MinError</option>
36 <option value="Minimum">Minimum</option>
37 <option value="Moments">Moments</option>
38 <option value="Otsu">Otsu</option>
39 <option value="RenyiEntropy">RenyiEntropy</option>
40 <option value="Shanbhag">Shanbhag</option>
41 <option value="Triangle">Triangle</option>
42 <option value="Yen">Yen</option>
43 </param>
44 <param name="display" type="select" label="Display">
45 <option value="red" selected="True">Red</option>
46 <option value="bw">Black and White</option>
47 <option value="over_under">Over/Under</option>
48 </param>
49 <param name="black_background" type="select" label="Black background" help="Select yes if features are lighter than the background.">
50 <option value="no" selected="True">No</option>
51 <option value="yes">Yes</option>
52 </param>
53 <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.">
54 <option value="no" selected="True">No</option>
55 <option value="yes">Yes</option>
56 </param>
57 </inputs>
58 <outputs>
59 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/>
60 </outputs>
61 <tests>
62 <test>
63 <param name="input" value="blobs.gif" />
64 <param name="output_datatype" value="gif" />
65 <param name="threshold_min" value="0.0" />
66 <param name="threshold_max" value="129.0" />
67 <param name="method" value="Default" />
68 <param name="display" value="red" />
69 <param name="black_background" value="no" />
70 <param name="stack_histogram" value="no" />
71 <output name="output" file="blobs_threshold_default.gif" compare="sim_size" />
72 </test>
73 <test>
74 <param name="input" value="blobs.gif" />
75 <param name="output_datatype" value="gif" />
76 <param name="threshold_min" value="118.0" />
77 <param name="threshold_max" value="255.0" />
78 <param name="method" value="IJ_IsoData" />
79 <param name="display" value="over_under" />
80 <param name="black_background" value="no" />
81 <param name="stack_histogram" value="no" />
82 <output name="output" file="blobs_threshold_ijiso.gif" compare="sim_size" />
83 </test>
84 <test>
85 <param name="input" value="blobs.gif" />
86 <param name="output_datatype" value="gif" />
87 <param name="threshold_min" value="72.0" />
88 <param name="threshold_max" value="255.0" />
89 <param name="method" value="Huang" />
90 <param name="display" value="bw" />
91 <param name="black_background" value="yes" />
92 <param name="stack_histogram" value="no" />
93 <output name="output" file="blobs_threshold_huang_dark.gif" compare="sim_size" />
94 </test>
95 </tests>
96 <help>
97
98 @requires_binary_input@
99
100 **What it does**
101
102 <![CDATA[
103 Sets lower and upper threshold values, segmenting grayscale images into features of interest and background
104
105 - **Minimum threshold value** - Adjusts the minimum threshold value.
106 - **Maximum threshold value** - Adjusts the maximum threshold value.
107 - **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)."
108 - **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.
109 - **Black background** - Select **yes** when features are lighter than the background.
110 - **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.
111 ]]>
112
113 </help>
114 <expand macro="fiji_headless_citations" />
115 </tool>