cornerstonejs / react-cornerstone-viewport

Cornerstone medical image viewport component for React
https://react.cornerstonejs.org/
MIT License
96 stars 74 forks source link

Question: Can we get presentation state data from the cornerstone viewport object? #89

Open getnsv opened 4 years ago

getnsv commented 4 years ago

Hi there ,

Am looking to get hold of DICOM presentation state data any and display/enable on the dicom image after the element has been enabled.

I tested the overlaytest.dcm image in the my code and it was getting rendered, but was not able to get the presentation layer data with the canvas object. Maybe am missing something. Then realized that somebody in that issue has commented that cornerstone cannot access the presentation layer data if any.

Went through all these github links and not sure whether the feature of reading presentation state data is available in cornerstonetools now.

Also would be very obliged if you could please give the steps briefly of accessing the same using the react-cornerstone viewport

https://github.com/cornerstonejs/cornerstoneTools/issues/780 https://gist.github.com/jdnarvaez/3368ac3e4f7f4eb14bc5f453f8a1ed1b https://github.com/cornerstonejs/cornerstoneWADOImageLoader/pull/239 https://github.com/OHIF/Viewers/pull/954 https://github.com/cornerstonejs/cornerstoneTools/issues/210 https://github.com/cornerstonejs/cornerstoneTools/blob/master/src/tools/annotation/LengthTool.js#L126-L129

Thanks very much in advance, Sreevani

shanebenlolo commented 3 years ago

Hello, did you ever get this issue worked out?