# HG changeset patch # User imgteam # Date 1713946406 0 # Node ID 0e7be7c35f1545e22cdb24d55516fbc3364f2f71 # Parent 7a2e2e3cf836f25db6a2a34a17a6344970fad666 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/split_labelmaps/ commit c86a1b93cb7732f7331a981d13465653cc1a2790 diff -r 7a2e2e3cf836 -r 0e7be7c35f15 split_labelmap.py --- a/split_labelmap.py Thu Apr 04 15:26:45 2024 +0000 +++ b/split_labelmap.py Wed Apr 24 08:13:26 2024 +0000 @@ -1,11 +1,11 @@ import argparse import warnings +import giatools.io import numpy as np import scipy import skimage.draw import skimage.io -from imageio import imread as io_imread from skimage.measure import regionprops # split_label_image takes a label image and outputs a similar file with the given name where the labeled @@ -15,7 +15,7 @@ def split_labelmap(labelmap, outputfile): # Information from the label map. - label_img = io_imread(labelmap) + label_img = giatools.io.imread(labelmap) xtot, ytot = label_img.shape props = regionprops(label_img) N = len(props) diff -r 7a2e2e3cf836 -r 0e7be7c35f15 split_labelmap.xml --- a/split_labelmap.xml Thu Apr 04 15:26:45 2024 +0000 +++ b/split_labelmap.xml Wed Apr 24 08:13:26 2024 +0000 @@ -1,4 +1,4 @@ - + creators.xml @@ -14,9 +14,10 @@ galaxy_image_analysis - scikit-image - numpy - tifffile + scikit-image + numpy + tifffile + giatools