view imagej2_create_image.xml @ 0:dc3935a0165a draft

"planemo upload for repository commit b08f0e6d1546caaf627b21f8c94044285d5d5b9c-dirty"
author imgteam
date Tue, 17 Sep 2019 16:57:52 -0400
children 1a7c29d5fc11
line wrap: on
line source

<?xml version='1.0' encoding='UTF-8'?>
<tool id="imagej2_create_image" name="Create new image" version="@WRAPPER_VERSION@.0">
    <expand macro="fiji_requirements" />
    python $__tool_directory__/
    --width $width
    --height $height
    --depth $depth
    --image_type $image_type
    --image_title "$image_title"
    --jython_script $__tool_directory__/
    --output_datatype $output_datatype
    --out_fname "$output"
        <expand macro="image_type" />
        <param name="image_title" type="text" label="Image title" help="Leave blank for no title" />
        <param name="width" type="integer" value="512" min="1" label="Image width in pixels" />
        <param name="height" type="integer" value="512" min="1" label="Image height in pixels" />
        <param name="depth" type="integer" value="1" min="1" label="Image depth" help="Specifies the number of stack slices" />
        <param name="output_datatype" type="select" label="Save as format">
            <expand macro="image_datatypes" />
        <data name="output" format="jpg">
                <action type="format">
                    <option type="from_param" name="output_datatype" />
            <param name="image_type" value="8-bit_ramp" />
            <param name="image_title" value="MyTitle" />
            <param name="width" value="256" />
            <param name="height" value="256" />
            <param name="depth" value="1" />
            <param name="output_datatype" value="jpg" />
            <output name="output" file="create_image1.jpg" ftype="jpg" />
**What it does**

Creates a new image based on the following entries.

- **Type** specifies the image type "8-bit", "16-bit", "32-bit" or "RGB" with options
- **Title** is associated with the image, but not displayed in the image
- **Width** specifies the width of the image in pixels
- **Height** specifies the height of the image in pixels
- **Depth** specifies the number of stack slices
- **Format** specifies the image format "jpg", "png", etc

    <expand macro="fiji_headless_citations" />