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

why is the Synchronizer synchronizing the left and right images,I don't want that, I want to just sync the stackIndex #1523

Open
zhengdechang1 opened this issue Dec 28, 2022 · 0 comments

Comments

@zhengdechang1
Copy link

zhengdechang1 commented Dec 28, 2022

why is the Synchronizer synchronizing the left and right images,I don't want that, I want to just sync the stackIndex,and wwwcSynchronizer also。

You can see that the left side is replaced by the right side. Why is that

my Code

`cornerState.WWWCSynchronizer = new cornerstoneTools.Synchronizer(
'cornerstoneimagerendered',
cornerstoneTools.wwwcSynchronizer
)

cornerState.scrollSynchronizer = new cornerstoneTools.Synchronizer(
  'cornerstonetoolsstackscroll',
  cornerstoneTools.stackImageIndexSynchronizer
)

//loading image
const loadImage = (element, stack) => {
return cornerstone.loadAndCacheImage(stack.imageIds[0]).then((image) => {
cornerstone.displayImage(element, image)
cornerState.WWWCSynchronizer.add(element)
cornerState.scrollSynchronizer.add(element)
cornerstoneTools.addStackStateManager(element, ['stack', 'Wwwc'])
cornerstoneTools.addToolState(element, 'stack', stack)
})
}
`

Is there any way to solve it?

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

1 participant