comparison concat_channels.py @ 1:d42501109c05 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/concat_channels/ commit b2acc1845a25828181597fe5b6982fe116a7796d
author imgteam
date Mon, 22 Jul 2019 05:02:26 -0400
parents 30517f733f7b
children 212627bfb759
comparison
equal deleted inserted replaced
0:30517f733f7b 1:d42501109c05
9 images = [] 9 images = []
10 for image_path in input_image_paths: 10 for image_path in input_image_paths:
11 raw_image = skimage.io.imread(image_path) 11 raw_image = skimage.io.imread(image_path)
12 if len(raw_image.shape) == 2: 12 if len(raw_image.shape) == 2:
13 if axis == 0: 13 if axis == 0:
14 raw_image = [raw_image] 14 raw_image = [raw_image]
15 else: 15 else:
16 raw_image = np.expand_dims(raw_image, 2) 16 raw_image = np.expand_dims(raw_image, 2)
17 images.append(raw_image) 17 images.append(raw_image)
18 res = np.concatenate(images, axis) 18 res = np.concatenate(images, axis)
19 with warnings.catch_warnings(): 19 with warnings.catch_warnings():