Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2018-04-21, 06:39

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue, 2014-11-11, 21:20 

Joined: Sat, 2013-06-15, 05:52
Posts: 15
Hello. I'm having problems opening some Dicom Images.

This is my code:

      string nombre_archivo = *(larchivos.begin());
      FileFormat fileFormat;
      OFCondition status = fileFormat.loadFile(nombre_archivo.c_str());
      if (status.good()){   
         DicomImage img(nombre_archivo.c_str());

And im getting this error:

E: can't change to unencapsulated representation for pixel data
E: can't determine 'PhotometricInterpretation' of decompressed image
E: mandatory attribute 'PhotometricInterpretation' is missing or can't be determined

I know its something with the codecs registrations but i cannot figure out what is it.

I've tried with DJLSDecoderRegistration::registerCodecs() instead of DJDecoderRegistration::registerCodecs(). But i get this error:

djcodecd.cc:(.text+0x1323): undefined reference to `JpegLsDecode'
djcodecd.cc:(.text+0x2210): undefined reference to `JpegLsReadHeader'

Do i have to install something else?

Thank you!

PostPosted: Wed, 2014-11-12, 14:04 
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1928
Location: Oldenburg, Germany
First of all, you should check which transfer syntax is used for the particular DICOM image(s).

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group