Gets an image from a DICOM object with gzip compression.
dicomFileName
The physical path of the DICOM file to extract the image from.
sopInstanceUID
The SOP Instance UID of the DICOM object.
frameNumber
A 1-based number of the frame you want to retrieve from the image. Pass 0 to get a representative frame and -1 to get the complete image with all frames.
imageWidth
The width, in pixels, of the image. The returned image can have a different width (to preserve scale ratio). Pass 0 to keep the original width.
imageHeight
The height, in pixels, of the image. The returned image can have a different height (to preserve scale ratio). Pass 0 to keep the original height.
A buffer containing the image file (gzip).