annotate imagej2_skeletonize3d.xml @ 3:39e144c3952b draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 8ea6a4271431c05c82b09c0d3e629b13e6ea7936
author iuc
date Fri, 22 Jul 2016 23:10:42 -0400
parents 99f75b64cdf3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
1 <?xml version='1.0' encoding='UTF-8'?>
2
99f75b64cdf3 planemo upload commit 378c3ecfbaed0330faf197811d379431b0f9e92c-dirty
iuc
parents: 1
diff changeset
2 <tool id="imagej2_skeletonize3d" name="Skeletonize" version="@WRAPPER_VERSION@.0">
99f75b64cdf3 planemo upload commit 378c3ecfbaed0330faf197811d379431b0f9e92c-dirty
iuc
parents: 1
diff changeset
3 <description></description>
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
4 <macros>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
5 <import>imagej2_macros.xml</import>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
6 </macros>
1
269923244cc8 planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
iuc
parents: 0
diff changeset
7 <expand macro="fiji_requirements" />
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
8 <command>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
9 <![CDATA[
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
10 python $__tool_directory__/imagej2_skeletonize3d.py
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
11 --input "$input"
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
12 --input_datatype $input.ext
1
269923244cc8 planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
iuc
parents: 0
diff changeset
13 --black_background $black_background
3
39e144c3952b planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 8ea6a4271431c05c82b09c0d3e629b13e6ea7936
iuc
parents: 2
diff changeset
14 --jython_script $__tool_directory__/imagej2_skeletonize3d_jython_script.py
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
15 --output "$output"
1
269923244cc8 planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
iuc
parents: 0
diff changeset
16 --output_datatype $output.ext
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
17 ]]>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
18 </command>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
19 <inputs>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
20 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select grayscale image"/>
1
269923244cc8 planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
iuc
parents: 0
diff changeset
21 <expand macro="black_background_param" />
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
22 </inputs>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
23 <outputs>
1
269923244cc8 planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
iuc
parents: 0
diff changeset
24 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/>
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
25 </outputs>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
26 <tests>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
27 <test>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
28 <param name="input" value="blobs.gif" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
29 <param name="input_datatype" value="gif" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
30 <param name="output_datatype" value="gif" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
31 <output name="output" file="skeletonized_blobs.gif" compare="sim_size" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
32 </test>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
33 <test>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
34 <param name="input" value="clown.jpg" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
35 <param name="input_datatype" value="jpg" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
36 <param name="output_datatype" value="jpg" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
37 <output name="output" file="skeletonized_clown.jpg" compare="sim_size" />
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
38 </test>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
39 </tests>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
40 <help>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
41
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
42 .. class:: warningmark
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
43
1
269923244cc8 planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
iuc
parents: 0
diff changeset
44 @requires_binary_input@
0
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
45
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
46 **What it does**
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
47
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
48 <![CDATA[
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
49 Skeletonizes a 2D or 3D binary (8-bit) image. As Hanno Homman explains in his paper, binary thinning is
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
50 used for finding the centerlines (”skeleton”) of objects in the input image. The general idea is to erode
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
51 the object’s surface iteratively until only the skeleton remains. Erosion has to be performed symmetrically
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
52 in order to the guarantee medial position of the skeleton lines and such that the connectedness of the
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
53 object is preserved. Care has to be taken in order not to create holes or cavities in the object.
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
54
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
55 There are two major approaches to image thinning: a) kernel-based filters and b) decision trees. Kernel-based
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
56 filters apply a structuring element to the image and can generally be extended to dimensions higher than 3D,
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
57 to find computationally efficient solutions for 4D and higher dimensions is subject of ongoing research.
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
58 Methods based on decision trees are thus far limited to 2D and 3D, but are potentially faster than morphological
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
59 filters, if they are well designed and can find more deletable points at each iteration.
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
60
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
61 In 3D there are 67,108,864 possible binary combinations of object and background voxels in a 26-neighborhood,
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
62 which cannot be completely captured by kernel-based filters. Lee et al. have demonstrated in their work that
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
63 their solution, based on a decision tree, can handle all these cases correctly and find all deletable surface
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
64 points at each iteration. Thus their algorithm allows for a very fast iterative erosion process.
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
65 ]]>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
66 </help>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
67 <citations>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
68 <citation type="doi">10.1006/cgip.1994.1042</citation>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
69 <citation type="doi">10.1038/nmeth.2102</citation>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
70 </citations>
8b787f641b9c planemo upload commit 98c34e070343a117019ffd25a3af117808159bf5-dirty
iuc
parents:
diff changeset
71 </tool>