# HG changeset patch # User thomaswollmann # Date 1547670929 18000 # Node ID 3536648d0a93b5072d7834a62ccd65112ae83e4f # Parent 66f7e94db2e63115161697e2a63489a07f3c04a2 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/\mergeneighboursinlabelimage commit d93e1dd276027cfc3fb518236110395a23d96f66 diff -r 66f7e94db2e6 -r 3536648d0a93 mergeneighboursinlabelimage.py --- a/mergeneighboursinlabelimage.py Tue Jan 08 08:54:16 2019 -0500 +++ b/mergeneighboursinlabelimage.py Wed Jan 16 15:35:29 2019 -0500 @@ -1,5 +1,3 @@ -#!/usr/bin/python - import argparse import sys import skimage.io @@ -46,6 +44,5 @@ label_image = merge_n(label_image, args.cluster_merge) with warnings.catch_warnings(): warnings.simplefilter("ignore") - res = skimage.util.img_as_uint(res) - skimage.io.imsave("tmp.tiff", res) - os.rename("tmp.tiff", args.output_file.name) + res = skimage.util.img_as_uint(label_image) + skimage.io.imsave(args.out_file.name, res, plugin="tifffile") diff -r 66f7e94db2e6 -r 3536648d0a93 mergeneighboursinlabelimage.xml --- a/mergeneighboursinlabelimage.xml Tue Jan 08 08:54:16 2019 -0500 +++ b/mergeneighboursinlabelimage.xml Wed Jan 16 15:35:29 2019 -0500 @@ -1,13 +1,13 @@ - + Merge Neighbours in Label Image - scikit-image - numpy - scipy + scikit-image + numpy @@ -16,8 +16,16 @@ - This tools merges nearby objects in a label image using the minimum pixel distance. + + + + + + + + + This tools merges nearby objects in a label image using the minimum pixel distance. - 10.7717/peerj.453 + 10.1016/j.jbiotec.2017.07.019 diff -r 66f7e94db2e6 -r 3536648d0a93 test-data/galaxyIcon_noText.tif Binary file test-data/galaxyIcon_noText.tif has changed diff -r 66f7e94db2e6 -r 3536648d0a93 test-data/out.tiff Binary file test-data/out.tiff has changed