This is my code:
Code: Select all
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;
Code: Select all
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've tried with DJLSDecoderRegistration::registerCodecs() instead of DJDecoderRegistration::registerCodecs(). But i get this error:
Code: Select all
djcodecd.cc:(.text+0x1323): undefined reference to `JpegLsDecode'
djcodecd.cc:(.text+0x2210): undefined reference to `JpegLsReadHeader'
Thank you!