cornerstoneTools icon indicating copy to clipboard operation
cornerstoneTools copied to clipboard

Recommended way to save segmentation result labelmap2D as image file?

Open oggreo opened this issue 5 years ago • 3 comments

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.

oggreo avatar Oct 09 '20 09:10 oggreo

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

jpinxten avatar Dec 03 '20 12:12 jpinxten

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

acegank avatar Dec 28 '22 07:12 acegank

@oggreo are you solve it?

acegank avatar Dec 28 '22 07:12 acegank