Mercurial > repos > imgteam > 2d_histogram_equalization
diff histogram_equalization.py @ 1:77f7159d775a draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_histogram_equalization/ commit 2286a6c9da88596349ed9d967c51541409c0a7bf
author | imgteam |
---|---|
date | Mon, 13 Nov 2023 22:10:25 +0000 |
parents | 70316d792fc9 |
children | b1c2c210813c |
line wrap: on
line diff
--- a/histogram_equalization.py Tue Jul 23 14:07:07 2019 -0400 +++ b/histogram_equalization.py Mon Nov 13 22:10:25 2023 +0000 @@ -1,13 +1,13 @@ import argparse -import os import sys + +import skimage.exposure import skimage.io -import skimage.exposure import skimage.util hOptions = { - 'default' : lambda img_raw: skimage.exposure.equalize_hist(img_raw), - 'clahe' : lambda img_raw: skimage.exposure.equalize_adapthist(img_raw) + 'default': lambda img_raw: skimage.exposure.equalize_hist(img_raw), + 'clahe': lambda img_raw: skimage.exposure.equalize_adapthist(img_raw) } if __name__ == "__main__":