Mercurial > repos > imgteam > colorize_labels
changeset 3:2d1de6e7b113 draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/colorize_labels commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:12:15 +0000 |
parents | 3aa2d054848a |
children | 5907be5a8d7c |
files | colorize_labels.py colorize_labels.xml |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/colorize_labels.py Thu Apr 04 15:25:22 2024 +0000 +++ b/colorize_labels.py Wed Apr 24 08:12:15 2024 +0000 @@ -1,5 +1,6 @@ import argparse +import giatools.io import matplotlib.colors as mpl import networkx as nx import numpy as np @@ -55,7 +56,7 @@ args = parser.parse_args() # Load image and normalize - im = skimage.io.imread(args.input) + im = giatools.io.imread(args.input) im = np.squeeze(im) assert im.ndim == 2
--- a/colorize_labels.xml Thu Apr 04 15:25:22 2024 +0000 +++ b/colorize_labels.xml Wed Apr 24 08:12:15 2024 +0000 @@ -4,7 +4,7 @@ <import>creators.xml</import> <import>tests.xml</import> <token name="@TOOL_VERSION@">3.2.1</token> - <token name="@VERSION_SUFFIX@">1</token> + <token name="@VERSION_SUFFIX@">2</token> </macros> <creator> <expand macro="creators/bmcv" /> @@ -16,6 +16,7 @@ <requirement type="package" version="@TOOL_VERSION@">networkx</requirement> <requirement type="package" version="1.22">numpy</requirement> <requirement type="package" version="0.18.1">scikit-image</requirement> + <requirement type="package" version="0.1">giatools</requirement> </requirements> <command><![CDATA[