DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Tue, 2017-06-27, 16:32

All times are UTC + 1 hour




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

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

This is my code:

Code:
   DJDecoderRegistration::registerCodecs();
   if(!larchivos.empty()){
      string nombre_archivo = *(larchivos.begin());
      FileFormat fileFormat;
      OFCondition status = fileFormat.loadFile(nombre_archivo.c_str());
      if (status.good()){   
         DicomImage img(nombre_archivo.c_str());
         this->width=img.getWidth();
         this->height=img.getHeight();
      }
   }
   DJDecoderRegistration::cleanup();
   return;


And im getting this error:

Code:
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:

Code:
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!


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

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


Top
 Profile  
 
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: Bing [Bot], Yahoo [Bot] 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