Accessing Compressed Data

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
procuris
Posts: 8
Joined: Thu, 2012-03-01, 12:19

Accessing Compressed Data

#1 Post by procuris »

I have problem to compile the example code for accessing compressed data:

http://support.dcmtk.org/wiki/dcmtk/how ... 1285158334

The compiler complains about:
Uint32 length = pixitem->getLength();

error C2027: use of undefined type 'DcmPixelItem'
error C2227: left of '->getLength' must point to class/struct/union/generic type
error C2027: use of undefined type 'DcmPixelItem'

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

#2 Post by omarelgazzar »

Are you sure that you have included the header files in the following order?

Code: Select all

#include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
#include "dcmtk/dcmdata/dctk.h"
#include "dcmtk/dcmdata/dcpxitem.h"

procuris
Posts: 8
Joined: Thu, 2012-03-01, 12:19

#3 Post by procuris »

Yes, they are included in that order.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests