How to access the raw dicom data being displayed on the screen?

I am trying to extend the OHIF viewer to do AI classification on the current scan (specifically for CT scans) being displayed. How can I access this data? Is it part of the Cornerstone.js? Where can I locate this in the repo? Thanks!

Looking through the cornerstonejs Github, I found that there is a function called getPixelData and there’s also stuff like metadata. Is there a way I can call a function to access this? I want to be able to do this for all the images of the scan, not just the current slice being displayed. Thanks!