cornerstone icon indicating copy to clipboard operation
cornerstone copied to clipboard

Using pixel array data instead of dcm image file? [question]

Open AvaHayako opened this issue 2 years ago • 2 comments

Hi, I am modifying a web application that displays .dcm images using Cornerstone. Without changing too much of the implementation, I am exploring the idea of using an hdf5 file to store and access image pixel data, as opposed to using local files of .dcm images.

I'm able to render images from the pixel data without the use of cornerstone, but this isn't ideal as the web app uses cornerstone for displaying image slices and interacting with them (via cornerstone tools).

Does cornerstone have a feature that allows you to input pixel array data instead of an image/image path?

Thanks!

AvaHayako avatar Aug 22 '21 20:08 AvaHayako

Yes, just write an image loader that grabs the pixel data from the HDF5 file: https://docs.cornerstonejs.org/concepts/image-loaders.html

swederik avatar Aug 23 '21 06:08 swederik

Will this approach also work for a jpeg2000 file?

withHam avatar Nov 23 '21 23:11 withHam