OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.12k stars 3.29k forks source link

[Bug] MPR Mode, mpr-coronal data error #4261

Closed IT-Highmore closed 3 months ago

IT-Highmore commented 3 months ago

Describe the Bug

cornerstoneViewportService.getRenderingEngine().getViewport('mpr-coronal').getCurrentImageIdIndex() data incorrect which causes other data to be incorrect such as camera focalPoint data

Steps to Reproduce

  1. open link https://viewer-dev.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.7009.2403.334240657131972136850343327463
  2. select mpr mode
  3. window.services.cornerstoneViewportService.getRenderingEngine().getViewport('mpr-coronal').getCurrentImageIdIndex() in console

The current behavior

image current result is 63 incorrect

The expected behavior

It should be 64

OS

Windows 10

Node version

18.17.0

Browser

Chrome 126.0.6478.63

sedghi commented 3 months ago

use getSliceIndex or getViewReference

IT-Highmore commented 3 months ago

use getSliceIndex or getViewReference

I don't want to take this index,What I want to say is that mpr-coronal deault image index does not match the focalPoint