Mercurial > repos > imgteam > 2d_local_threshold
diff auto_local_threshold.py @ 2:d070576c6286 draft
"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_local_threshold/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
author | imgteam |
---|---|
date | Wed, 18 Dec 2019 09:55:10 +0000 |
parents | f03398bea281 |
children | 0bbcb6a31a20 |
line wrap: on
line diff
--- a/auto_local_threshold.py Tue Jul 23 05:08:18 2019 -0400 +++ b/auto_local_threshold.py Wed Dec 18 09:55:10 2019 +0000 @@ -24,7 +24,7 @@ img_in = np.reshape(img_in, [img_in.shape[0], img_in.shape[1]]) thresh = threshOptions[args.thresh_type](img_in, args.block_size) - if args.dark_background: + if args.dark_background: res = img_in > thresh else: res = img_in <= thresh