diff histogram_equalization.py @ 3:b1c2c210813c draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_histogram_equalization/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:11:54 +0000
parents 77f7159d775a
children
line wrap: on
line diff
--- a/histogram_equalization.py	Thu Apr 04 15:23:34 2024 +0000
+++ b/histogram_equalization.py	Wed Apr 24 08:11:54 2024 +0000
@@ -1,6 +1,7 @@
 import argparse
 import sys
 
+import giatools.io
 import skimage.exposure
 import skimage.io
 import skimage.util
@@ -17,7 +18,7 @@
     parser.add_argument('h_type', choices=hOptions.keys(), help='histogram equalization method')
     args = parser.parse_args()
 
-    img_in = skimage.io.imread(args.input_file.name)
+    img_in = giatools.io.imread(args.input_file.name)
     res = hOptions[args.h_type](img_in)
     res = skimage.util.img_as_uint(res)
     skimage.io.imsave(args.out_file.name, res, plugin="tifffile")