react-cornerstone-example icon indicating copy to clipboard operation
react-cornerstone-example copied to clipboard

Help need.

Open Im-Goutham opened this issue 7 years ago • 7 comments

Hi I went to your repository for cornerstone with react. It is really nice. I have some doubt while reading a dicom file. Is dicom file a set of multiple images or single image ? I want to implement a scroll of images , do you have idea ?

Im-Goutham avatar Jun 30 '18 09:06 Im-Goutham

Hi,

Well, this just a demo showing how to use react with cornerstone. So, React.js itself won't put any limitation on the cornerstone library and you can use all of its features.

Is dicom file a set of multiple images or single image ? I want to implement a scroll of images , do you have idea ?

A dicom file is a single image, so if you want to show multiple images then you will show mutliple dicom files.

An imaging study which has a series of images will have this special file DICOMDIR which you can parse and get info about images and their sequence for the study. then you can create a scroll.

shalkam avatar Jun 30 '18 09:06 shalkam

Is DICOMDIR a extension type with set of .dcm images . Can explain briefly how we can parse this file? And after parsing do we get .dcm images ?

Im-Goutham avatar Jun 30 '18 09:06 Im-Goutham

I am using this library for parsing dicom files https://github.com/rii-mango/Daikon

You can check its documentation along with this file here: https://github.com/shalkam/react-cornerstone-example/blob/master/src/dicom-viewer/dicom-loader.js

To checkout out how I am using it along with cornerstone

shalkam avatar Jun 30 '18 09:06 shalkam

To implement scroll , just we have to loop around multiple .dcm files know based on scroll event ?

Im-Goutham avatar Jun 30 '18 09:06 Im-Goutham

yes

shalkam avatar Jun 30 '18 09:06 shalkam

dicom-image file in assets is which type of file. It is not like .dcm file.

Im-Goutham avatar Jun 30 '18 13:06 Im-Goutham

the file extension doesn't matter, the dicom parser will parse the file binaries and give the image data back

shalkam avatar Jun 30 '18 13:06 shalkam