Mercurial > repos > iuc > imagej2_make_binary
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:66d9e595dff2 |
|---|---|
| 1 <?xml version='1.0' encoding='UTF-8'?> | |
| 2 <tool id="imagej2_make_binary" name="Convert to binary" version="1.0.0"> | |
| 3 <description>(black and white) with ImageJ2</description> | |
| 4 <macros> | |
| 5 <import>imagej2_macros.xml</import> | |
| 6 </macros> | |
| 7 <expand macro="fiji_20141125_requirements" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
| 10 python $__tool_directory__/imagej2_make_binary.py | |
| 11 --input "$input" | |
| 12 --input_datatype $input.ext | |
| 13 @make_binary_args@ | |
| 14 @max_heap_size_args@ | |
| 15 --jython_script $__tool_directory__/jython_script.py | |
| 16 --output_datatype $output_datatype | |
| 17 --output "$output" | |
| 18 ]]> | |
| 19 </command> | |
| 20 <inputs> | |
| 21 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/> | |
| 22 <expand macro="make_binary_params" /> | |
| 23 <param name="output_datatype" type="select" label="Save as format"> | |
| 24 <expand macro="image_datatypes" /> | |
| 25 </param> | |
| 26 <expand macro="max_heap_size_type_conditional" /> | |
| 27 </inputs> | |
| 28 <outputs> | |
| 29 <data name="output" format_source="input" label="${tool.name} on ${on_string}"> | |
| 30 <actions> | |
| 31 <action type="format"> | |
| 32 <option type="from_param" name="output_datatype" /> | |
| 33 </action> | |
| 34 </actions> | |
| 35 </data> | |
| 36 </outputs> | |
| 37 <tests> | |
| 38 <test> | |
| 39 <param name="input" value="clown.jpg" /> | |
| 40 <param name="input_datatype" value="jpg" /> | |
| 41 <param name="iterations" value="1" /> | |
| 42 <param name="count" value="1" /> | |
| 43 <param name="black_background" value="no" /> | |
| 44 <param name="pad_edges_when_eroding" value="no" /> | |
| 45 <param name="output_datatype" value="jpg" /> | |
| 46 <output name="output" file="clown_binary.jpg" compare="sim_size" /> | |
| 47 </test> | |
| 48 </tests> | |
| 49 <help> | |
| 50 **What it does** | |
| 51 | |
| 52 <![CDATA[ | |
| 53 Converts an image into a binary (black and white) image by analyzing the histogram of | |
| 54 the entire image and setting an automatic threshold level to create the binary image. | |
| 55 | |
| 56 - **Iterations** - Specifies the number of times erosion, dilation, opening, and closing are performed. | |
| 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. | |
| 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. | |
| 59 - **Pad edges when eroding** - If **Yes**, eroding does not erode from the edges of the image. | |
| 60 | |
| 61 ]]> | |
| 62 | |
| 63 </help> | |
| 64 <expand macro="fiji_headless_citations" /> | |
| 65 </tool> |
