cornerstoneTools icon indicating copy to clipboard operation
cornerstoneTools copied to clipboard

Unable to load brush toolstate data back to image

Open syedkibrahim opened this issue 3 months ago • 1 comments

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.

syedkibrahim avatar Apr 09 '24 09:04 syedkibrahim