Skip to content

Unable to load brush toolstate data back to image #1567

@syedkibrahim

Description

@syedkibrahim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions