cornerstonejs / react-cornerstone-viewport

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

Cine Tool Implementation #149

Open siyamkumar opened 1 year ago

siyamkumar commented 1 year ago

Im trying use this plugin inside my react application, where the user uploads Dicom file. Even though the DCM is multi frame, viewport renders only the first frame. Any idea on this?

pooch-tonic commented 1 year ago

Up, having the same issue here. I know it's been a while since the original post, but if you have found a solution please let me know.

Got my sample dcm file from here : https://www.rubomedical.com/dicom_files/dicom_viewer_0002.zip

JetJacobs commented 1 year ago

Not sure if this is what you need, but https://react.cornerstonejs.org/grid. This shows at least the play portion.

As far as going in reverse, or frame by frame on click you would probably have to configure the image loader to cache the images as a stack and manually update the imageIdIndex backwards on an interval.

Perhaps this could be added as a prop to the viewport as playInReverse or something.