view projective_transformation.xml @ 2:1ffdb07020ee draft

"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/projective_transformation/ commit 40b2eeecc9e15be0b710f5e5195ac6f3b3b83c39"
author imgteam
date Fri, 14 Jan 2022 03:07:08 +0000
parents 974cf4357707
children be9a815e2240
line wrap: on
line source

<tool id="ip_projective_transformation" name="Projective Transformation" version="0.1.0" profile="20.05"> 
    <description>2D Projective Transformation</description>
    <requirements>
        <requirement type="package" version="0.18.1">scikit-image</requirement>
        <requirement type="package" version="1.2.4">pandas</requirement>
        <requirement type="package" version="1.20.2">numpy</requirement>
        <requirement type="package" version="1.6.2">scipy</requirement>
        <requirement type="package" version="2020.10.1">tifffile</requirement>
    </requirements>
    <command detect_errors="aggressive">
    <![CDATA[
         python '$__tool_directory__/projective_transformation.py'
         '$fixed_image'
         '$moving_image'
         '$warp_matrix'
         ./out
    ]]>
    </command>
    <inputs>
        <param name="moving_image" type="data" format="tiff,png,jpg" label="Moving image (to be transformed)" />
        <param name="fixed_image" type="data" format="tiff,png,jpg" label="Fixed image (the reference)" />
        <param name="warp_matrix" type="data" format="tabular" label="Transformation matrix" />
    </inputs>
    <outputs>
        <data format_source="moving_image" name="warped_image" from_work_dir="out" />
    </outputs>
    <tests>
      <test>
        <param name="fixed_image" value="sample1.png"/>
        <param name="moving_image" value="sample2.png"/>
        <param name="warp_matrix" value="warp_matrix.tsv"/>
        <output name="warped_image" value="yam.png" ftype="png" compare="sim_size"/>
      </test>
    </tests>
    <help>
    **What it does**

    This tool performs a projective transformation of the moving image so that it fits the fixed image. 
    Multi-channel and RGB images are supported.
    </help>
    <citations>
        <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
    </citations>
</tool>