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

Unable to load brush toolstate data back to image #1567

Open
syedkibrahim opened this issue Apr 9, 2024 · 1 comment
Open

Unable to load brush toolstate data back to image #1567

syedkibrahim opened this issue Apr 9, 2024 · 1 comment

Comments

@syedkibrahim
Copy link

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
Copy link

can i work on this ?

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