Using the "DicomImage" class to handle DICOM images I get the following error message when accesing the pixel data:
ERROR: cannot change to unencapsulated representation for pixel data
It seems that the image is compressed. If it uses a JPEG compression scheme you need to register the JPEG decompressor code:
- add '#include "djdecode.h"' to your source file
- call 'DJDecoderRegistration::registerCodecs();' at program init
- call 'DJDecoderRegistration::cleanup();' before program exit
That should be all you need to do. See Doxygen documentation for details.