cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
540 stars 278 forks source link

[Bug] When I create labelmap segmentation, the image will automatically jump to the center #1451

Open IrvingLu opened 2 weeks ago

IrvingLu commented 2 weeks ago

Describe the Bug

When I create label segmentation, the image will automatically jump to the center,I think it's correct for the image to stay at the current layer。 Contour type segmentation does not have this situation

Steps to Reproduce

1、Image flipping 2、Create Labelmap Segmentation await volumeLoader.createAndCacheDerivedSegmentationVolume( primaryMprVolumeId, { volumeId: segmentationId, } ); segmentation.addSegmentations([ { segmentationId, representation: { type: csToolsEnums.SegmentationRepresentations.Labelmap, data: { volumeId: segmentationId, }, }, }, ]); const representationIds = await segmentation.addSegmentationRepresentations( mprToolGroupId, [ { segmentationId: segmentationId, type: csToolsEnums.SegmentationRepresentations.Labelmap, }, ] );

The current behavior

The image will automatically jump to the center。

The expected behavior

The image stays at the current layer

OS

windows10

Node version

1.61.5

Browser

Chrome

IrvingLu commented 2 weeks ago

20240903165211_rec_

sedghi commented 1 week ago

It is because it switch to volume viewport, we are working to fix it in cornerstone3D 2.0