Code: Select all
E: can't load data dictionary
Code: Select all
OFString imgPath_ ="/home/abc/Desktop/002.dcm" //path file
DicomImage *image=new DicomImage(imgPath_.c_str());//Can not read file
if (image != NULL)
{
if (image->getStatus() == EIS_Normal)
{
Uint16* volumeData_ = (Uint16 *)(image->getOutputData(16/* bits per sample */));
}
else
cerr << "Error: cannot load DICOM image (" << DicomImage::getString(image->getStatus()) << ")" << endl;
if(image != NULL) delete image;
}
return true;
}