Mercurial > repos > imgteam > colocalization_viz
comparison colocalization_viz.py @ 3:0f8652663a03 draft default tip
"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/colocalization_viz/ commit 0500f513ee291ae0f6fad32a0b4fad05cd59cb71"
| author | imgteam |
|---|---|
| date | Sat, 26 Feb 2022 17:13:42 +0000 |
| parents | c73332d5c3bb |
| children |
comparison
equal
deleted
inserted
replaced
| 2:c73332d5c3bb | 3:0f8652663a03 |
|---|---|
| 1 import skimage.io | |
| 2 import skimage.color | |
| 3 from skimage import img_as_uint | |
| 4 from skimage.exposure import equalize_adapthist | |
| 5 import numpy as np | |
| 6 import argparse | 1 import argparse |
| 7 import sys | 2 import sys |
| 8 | 3 |
| 4 import numpy as np | |
| 5 import skimage.color | |
| 6 import skimage.io | |
| 7 from skimage import img_as_uint | |
| 8 from skimage.exposure import equalize_adapthist | |
| 9 | 9 |
| 10 # TODO make importable by python script | 10 |
| 11 # TODO make importable by python script | |
| 11 def readImg(path): | 12 def readImg(path): |
| 12 img = skimage.io.imread(path) | 13 img = skimage.io.imread(path) |
| 13 | 14 |
| 14 if len(img.shape) > 2: | 15 if len(img.shape) > 2: |
| 15 img = skimage.color.rgb2gray(img) | 16 img = skimage.color.rgb2gray(img) |
