Mercurial > repos > imgteam > detection_viz
comparison detection_viz.py @ 3:cb2d9de888a1 draft
"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/detection_viz/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
author | imgteam |
---|---|
date | Wed, 18 Dec 2019 05:02:11 -0500 |
parents | ec1ca4d62192 |
children | 99433164b593 |
comparison
equal
deleted
inserted
replaced
2:f46f64f9590d | 3:cb2d9de888a1 |
---|---|
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) |