Mercurial > repos > imgteam > imagej2_find_maxima
comparison imagej2_find_maxima.xml @ 0:2395ccf9ccc1 draft default tip
"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 16:57:59 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2395ccf9ccc1 |
---|---|
1 <?xml version='1.0' encoding='UTF-8'?> | |
2 <tool id="imagej2_find_maxima" name="Find maxima" version="@WRAPPER_VERSION@.0"> | |
3 <description></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_find_maxima.py | |
11 --input "$input" | |
12 --input_datatype $input.ext | |
13 --scale_when_converting $scale_when_converting | |
14 --weighted_rgb_conversions $weighted_rgb_conversions | |
15 --noise_tolerance $noise_tolerance | |
16 --output_type $output_type | |
17 --exclude_edge_maxima $exclude_edge_maxima | |
18 --light_background $light_background | |
19 --jython_script $__tool_directory__/imagej2_find_maxima_jython_script.py | |
20 #if str( $output_type ) == "List" or str( $output_type ) == "Count": | |
21 --output "$results" | |
22 --output_datatype "tabular" | |
23 #else: | |
24 --output "$output" | |
25 --output_datatype $output.ext | |
26 #end if | |
27 ]]> | |
28 </command> | |
29 <inputs> | |
30 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/> | |
31 <param name="noise_tolerance" type="integer" value="10" min="0" label="Noise tolerance" help="Maxima are ignored if they do not stand out from the surroundings by more than this value."/> | |
32 <param name="output_type" type="select" label="Output type"> | |
33 <option value="Single_Points" selected="True">Single Points</option> | |
34 <option value="Maxima_Within_Tolerance">Maxima Within Tolerance</option> | |
35 <option value="Segmented_Particles">Segmented Particles</option> | |
36 <!-- | |
37 This version of Fiji does not produce the same resultsTable | |
38 as the previous version, so eliminating these options until | |
39 there is time to investigate | |
40 <option value="List">List</option> | |
41 <option value="Count">Count</option> | |
42 --> | |
43 </param> | |
44 <param name="exclude_edge_maxima" type="select" label="Exclude edge maxima?"> | |
45 <option value="no" selected="True">No</option> | |
46 <option value="yes">Yes</option> | |
47 </param> | |
48 <param name="light_background" type="select" label="Light background?"> | |
49 <option value="no" selected="True">No</option> | |
50 <option value="yes">Yes</option> | |
51 </param> | |
52 <param name="scale_when_converting" type="select" label="Scale when converting?" help="Applies only to 24-bit (RGB) images, ignored for other types."> | |
53 <option value="yes" selected="True">Yes</option> | |
54 <option value="no">No</option> | |
55 </param> | |
56 <param name="weighted_rgb_conversions" type="select" label="Weighted RGB conversions?" help="Applies only to 24-bit (RGB) images, ignored for other types."> | |
57 <option value="no" selected="True">No</option> | |
58 <option value="yes">Yes</option> | |
59 </param> | |
60 </inputs> | |
61 <outputs> | |
62 <data name="output" format_source="input" label="${tool.name} on ${on_string}: ${output_type}"> | |
63 <filter>output_type != "List" and output_type != "Count"</filter> | |
64 </data> | |
65 <data name="results" format="tabular" label="${tool.name} on ${on_string}: ${output_type}"> | |
66 <filter>output_type == "List" or output_type == "Count"</filter> | |
67 </data> | |
68 </outputs> | |
69 <tests> | |
70 <test> | |
71 <param name="input" value="blobs.gif" /> | |
72 <output name="output" file="blobs_single_points.gif" compare="sim_size" /> | |
73 </test> | |
74 <test> | |
75 <param name="input" value="blobs.gif" /> | |
76 <param name="noise_tolerance" value="13" /> | |
77 <param name="output_type" value="Maxima_Within_Tolerance" /> | |
78 <output name="output" file="blobs_tolerance.gif" compare="sim_size" /> | |
79 </test> | |
80 <test> | |
81 <param name="input" value="blobs.gif" /> | |
82 <param name="noise_tolerance" value="16" /> | |
83 <param name="output_type" value="Segmented_Particles" /> | |
84 <param name="exclude_edge_maxima" value="yes" /> | |
85 <output name="output" file="blobs_segmented.gif" compare="sim_size" /> | |
86 </test> | |
87 <!-- | |
88 This version of Fiji does not produce the same resultsTable | |
89 as the previous version, so eliminating these options until | |
90 there is time to investigate | |
91 <test> | |
92 <param name="input" value="blobs.gif" /> | |
93 <param name="output_type" value="List" /> | |
94 <output name="output" file="blobs_list.tabular" /> | |
95 </test> | |
96 <test> | |
97 <param name="input" value="blobs.gif" /> | |
98 <param name="output_type" value="Count" /> | |
99 <output name="output" file="blobs_count.tabular" /> | |
100 </test> | |
101 --> | |
102 </tests> | |
103 <help> | |
104 | |
105 **What it does** | |
106 | |
107 Determines the local maxima in an image and creates a binary (mask-like) image of the same size with the | |
108 maxima (or one segmented particle per maximum) marked. For RGB images, maxima of luminance are selected | |
109 with the luminance defined as the weighted or unweighted average of the colors depending on the **Scale | |
110 when converting** and **Weighted RGB conversions** settings. | |
111 | |
112 - **Scale when converting** (RGB images only) - If "yes", the tool will scale from min--max to 0--255 when converting from 16-bit or 32-bit to 8-bit or to scale from min--max to 0--65535 when converting from 32-bit to 16-bit. | |
113 | |
114 - **Weighted RGB conversions** (RGB images only) - If "yes", the formula gray = 0.299 × red + 0.587 × green + 0.114 × blue is used to convert RGB images to grayscale. If "no", the formula gray = (red + green + blue) ⁄ 3 is used. | |
115 | |
116 - **Noise Tolerance** - Maxima are ignored if they do not stand out from the surroundings by more than this value (calibrated units for calibrated images). In other words, a threshold is set at the maximum value minus noise tolerance and the contiguous area around the maximum above the threshold is analyzed. For accepting a maximum, this area must not contain any point with a value higher than the maximum. Only one maximum within this area is accepted. | |
117 | |
118 - **Output Type** can be: | |
119 | |
120 - **Single Points** - Produces an image with one single point per maximum. | |
121 | |
122 - **Maxima Within Tolerance** - Produces an image with all points within the "Noise Tolerance" for each maximum. | |
123 | |
124 - **Segmented Particles** - Assumes that each maximum belongs to a particle and segments the image by a watershed algorithm applied to the values of the image. | |
125 | |
126 - **List** - Produces the list x, y of maxima in the image. | |
127 | |
128 - **Count** - Produces the number of maxima in the image. | |
129 | |
130 - **Exclude Edge Maxima** - Excludes maxima if the area within the noise tolerance surrounding a maximum touches the edge of the image (edge of the selection does not matter). | |
131 | |
132 - **Light Background** - Select "yes" if the image background is brighter than the objects you want to find. | |
133 | |
134 </help> | |
135 <expand macro="fiji_headless_citations" /> | |
136 </tool> |