view histogram_equalization.xml @ 3:b1c2c210813c draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_histogram_equalization/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:11:54 +0000
parents 3f3783846dc0
children
line wrap: on
line source

<tool id="ip_histogram_equalization" name="Perform histogram equalization" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
    <description>with scikit-image</description>
    <macros>
        <import>creators.xml</import>
        <import>tests.xml</import>
        <token name="@TOOL_VERSION@">0.18.1</token>
        <token name="@VERSION_SUFFIX@">0</token>
    </macros>
    <creator>
        <expand macro="creators/bmcv" />
    </creator>
    <edam_operations>
        <edam_operation>operation_3443</edam_operation>
    </edam_operations>
    <xrefs>
        <xref type="bio.tools">scikit-image</xref>
        <xref type="biii">scikit-image</xref>
    </xrefs>
    <requirements> 
        <requirement type="package" version="@TOOL_VERSION@">scikit-image</requirement>
        <requirement type="package" version="1.23.3">numpy</requirement>
        <requirement type="package" version="2020.10.1">tifffile</requirement>
        <requirement type="package" version="0.1">giatools</requirement>
    </requirements>
    <command detect_errors="aggressive">
    <![CDATA[
    python '$__tool_directory__/histogram_equalization.py' '$input' '$output' $h_type
    ]]>
    </command>
    <inputs>
        <param name="input" type="data" format="tiff" label="Input image" />
        <param name="h_type" type="select" label="Histogram equalization algorithm">
          <option value="default">Stretching</option>
          <option value="clahe" selected="True">CLAHE</option>
        </param>
    </inputs>
    <outputs>
       <data format="tiff" name="output" />
    </outputs>
    <tests>
        <test>
            <param name="input" value="sample.tif"/>
            <param name="h_type" value="default"/>
            <expand macro="tests/intensity_image_diff" name="output" value="out.tif" ftype="tiff"/>
        </test>
    </tests>
    <help>

        **Applies histogram equalization to an image.**

    </help>
    <citations>
        <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
    </citations>
</tool>