comparison 2d_split_binaryimage_by_watershed.py @ 1:f8f7987586b7 draft default tip

"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_split_binaryimage_by_watershed/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
author imgteam
date Wed, 18 Dec 2019 05:01:10 -0500
parents 5e21d7342593
children
comparison
equal deleted inserted replaced
0:5e21d7342593 1:f8f7987586b7
1 import argparse 1 import argparse
2 import sys 2 import sys
3 import skimage.io 3 import skimage.io
4 from skimage.morphology import watershed 4 from skimage.morphology import watershed
5 from skimage.feature import peak_local_max 5 from skimage.feature import peak_local_max
6 from scipy import ndimage as ndi 6 from scipy import ndimage as ndi
7 import skimage.util 7 import skimage.util
8 8
9 if __name__ == "__main__": 9 if __name__ == "__main__":
10 parser = argparse.ArgumentParser(description='Split binaryimage by watershed') 10 parser = argparse.ArgumentParser(description='Split binaryimage by watershed')
11 parser.add_argument('input_file', type=argparse.FileType('r'), default=sys.stdin, help='input file') 11 parser.add_argument('input_file', type=argparse.FileType('r'), default=sys.stdin, help='input file')