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

Recommended way to save segmentation result labelmap2D as image file? #1321

Open
oggreo opened this issue Oct 9, 2020 · 3 comments
Open

Comments

@oggreo
Copy link

oggreo commented Oct 9, 2020

I am looking for a way to save the segmentation result of labelmap2d as an image file.

Is there any function that does that?

Since labelmap2d is uint16array would I need to manually convert to uin8clampedarray in order to put it on canvas?

Thanks for any help in advance.

@jpinxten
Copy link

jpinxten commented Dec 3, 2020

I think there already is a function that does this for you: https://github.com/cornerstonejs/cornerstoneTools/blob/master/src/util/SaveAs.js

@acegank
Copy link

acegank commented Dec 28, 2022

@jpinxten it save all canvas, but not segmentation result labelmap2D

@acegank
Copy link

acegank commented Dec 28, 2022

@oggreo are you solve it?

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

3 participants