Mercurial > repos > iuc > imagej2_create_image
comparison imagej2_create_image.xml @ 0:dfe318d97378 draft
planemo upload commit 4bf97847c35c4dcf9638008b9b4b6c4e10015f19
| author | iuc |
|---|---|
| date | Tue, 09 Jun 2015 12:22:03 -0400 |
| parents | |
| children | ea7a01d0f218 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:dfe318d97378 |
|---|---|
| 1 <?xml version='1.0' encoding='UTF-8'?> | |
| 2 <tool id="imagej2_create_image" name="Create new image" version="1.0.0"> | |
| 3 <description>with ImageJ2</description> | |
| 4 <macros> | |
| 5 <import>imagej2_macros.xml</import> | |
| 6 </macros> | |
| 7 <expand macro="fiji_headless_requirements" /> | |
| 8 <command> | |
| 9 <![CDATA[ | |
| 10 python $__tool_directory__/imagej2_create_image.py | |
| 11 --width $width | |
| 12 --height $height | |
| 13 --depth $depth | |
| 14 --image_type $image_type | |
| 15 --image_title "$image_title" | |
| 16 --max_heap_size_type $set_max_heap_size.max_heap_size_type | |
| 17 --max_heap_size $set_max_heap_size.max_heap_size | |
| 18 --jython_script $__tool_directory__/jython_script.py | |
| 19 --output_datatype $output_datatype | |
| 20 --out_fname "$output" | |
| 21 ]]> | |
| 22 </command> | |
| 23 <inputs> | |
| 24 <expand macro="image_type" /> | |
| 25 <param name="image_title" type="text" size="80" label="Image title" help="Leave blank for no title" /> | |
| 26 <param name="width" type="integer" value="512" min="1" label="Image width in pixels" /> | |
| 27 <param name="height" type="integer" value="512" min="1" label="Image height in pixels" /> | |
| 28 <param name="depth" type="integer" value="1" min="1" label="Image depth" help="Specifies the number of stack slices" /> | |
| 29 <param name="output_datatype" type="select" label="Save as format"> | |
| 30 <expand macro="image_datatypes" /> | |
| 31 </param> | |
| 32 <expand macro="max_heap_size_type_conditional" /> | |
| 33 </inputs> | |
| 34 <outputs> | |
| 35 <data name="output" format="jpg"> | |
| 36 <actions> | |
| 37 <action type="format"> | |
| 38 <option type="from_param" name="output_datatype" /> | |
| 39 </action> | |
| 40 </actions> | |
| 41 </data> | |
| 42 </outputs> | |
| 43 <tests> | |
| 44 <test> | |
| 45 <param name="image_type" value="8-bit_ramp" /> | |
| 46 <param name="image_title" value="MyTitle" /> | |
| 47 <param name="width" value="256" /> | |
| 48 <param name="height" value="256" /> | |
| 49 <param name="depth" value="1" /> | |
| 50 <param name="output_datatype" value="jpg" /> | |
| 51 <output name="output" file="create_image1.jpg" ftype="jpg" /> | |
| 52 </test> | |
| 53 </tests> | |
| 54 <help> | |
| 55 **What it does** | |
| 56 | |
| 57 <![CDATA[ | |
| 58 Creates a new image based on the following entries. | |
| 59 | |
| 60 - **Type** specifies the image type "8-bit", "16-bit", "32-bit" or "RGB" with options | |
| 61 - **Title** is associated with the image, but not displayed in the image | |
| 62 - **Width** specifies the width of the image in pixels | |
| 63 - **Height** specifies the height of the image in pixels | |
| 64 - **Depth** specifies the number of stack slices | |
| 65 - **Format** specifies the image format "jpg", "png", etc | |
| 66 ]]> | |
| 67 | |
| 68 </help> | |
| 69 <expand macro="fiji_headless_citations" /> | |
| 70 </tool> |
