Sadly, I am trying to update some old code and I am new to dcmtk. So, it is the old code that doesn't appear to work.
Also, the pixel data is compressed using JPEG2000, and we have our own toolset we wish to use to decompress it.
here is the code that is currently being used to extract the image data:
Code: Select all
DcmStack stack; E_Condition ret = m_dataset->search(DCM_PixelData, stack, ESM_fromHere, OFFalse); DcmOtherByteOtherWord *pixdata = (DcmOtherByteOtherWord*)stack.top(); Uint16 *pixels2; pixdata->getUint16Array( pixels2);
The problem is the last line of code, getUint16Array, returns a NULL pointer. I could use help on figuring out why this doesn't return any data.