Mercurial > repos > imgteam > detection_viz
comparison detection_viz.py @ 3:7d8e9a107789 draft default tip
"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/detection_viz/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
author | imgteam |
---|---|
date | Wed, 18 Dec 2019 09:57:48 +0000 |
parents | 065118c24f2d |
children |
comparison
equal
deleted
inserted
replaced
2:94c60eb4ba3b | 3:7d8e9a107789 |
---|---|
19 | 19 |
20 def detection_viz(input_file, output_file, tp=None, fn=None, fp=None, stroke_size=3, circle_radius=50): | 20 def detection_viz(input_file, output_file, tp=None, fn=None, fp=None, stroke_size=3, circle_radius=50): |
21 img = skimage.io.imread(input_file) | 21 img = skimage.io.imread(input_file) |
22 | 22 |
23 fig = plt.figure(figsize=(40, 40)) | 23 fig = plt.figure(figsize=(40, 40)) |
24 ax = fig.add_axes([0, 0, 1, 1]) | 24 ax = fig.add_axes([0, 0, 1, 1]) |
25 ax.axis('off') | 25 ax.axis('off') |
26 | 26 |
27 plt.imshow(img) | 27 plt.imshow(img) |
28 if tp is not None: | 28 if tp is not None: |
29 plot_circles(tp, ax, '#00FF00', stroke_size, circle_radius) | 29 plot_circles(tp, ax, '#00FF00', stroke_size, circle_radius) |