cornerstonejs / cornerstoneTools

A framework for tools built on top of Cornerstone.
https://tools.cornerstonejs.org/
MIT License
574 stars 456 forks source link

Unable to load brush toolstate data back to image #1567

Open syedkibrahim opened 2 months ago

syedkibrahim commented 2 months ago

Prerequisites

Version - cornerstone-tools: "^6.0.8" cornerstone-core: "^2.6.1"

Description

We have a sample application with a DICOM Viewer where we have the Brush tool added. We want to store the brush toolstate data and apply it to another image. But we are unable to figure out the exact way to do so.

Steps

  1. We load the image to the viewer and draw over some area using the brush tool.

  2. Then try to save the tool state data like shown below : const { state } = cornerstoneTools.getModule('segmentation'); const series = state.series; -- save the data --

  3. Next, we want to load another image and apply the brush toolstate data to it.

Can anyone please provide more inputs on how to proceed. Any inputs will be appreciated, thank you.

sreeragdas commented 1 month ago

can i work on this ?