Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend ROI plotter #69

Open
ericdill opened this issue Jul 24, 2015 · 2 comments
Open

Extend ROI plotter #69

ericdill opened this issue Jul 24, 2015 · 2 comments

Comments

@ericdill
Copy link
Contributor

Extend the ROI plotter (https://github.com/Nikea/xray-vision/blob/master/xray_vision/mpl_plotting/roi.py#L5) so that it can plot the image with the ROIs overlayed on top

[edit] can't spell

@ericdill
Copy link
Contributor Author

In theory, one could do something like

fig, ax = plt.subplots()
ax.imshow(masked_sum_img, cmap='CMRmap_r')
mpl_plot.show_label_array(ax, rings_mask, cmap='gray', alpha=.1)

but, in practice that doesn't really work that well. To do this correctly, some more thought is needed

index

@tacaswell
Copy link
Member

I would suggest using the label array as a binary mask and plotting the image with the non-labeled pixels set to np.nan, plotting the image in grayscale and the over-plotting the regions with partial alpha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants