Dear All,
I am trying to uncompress the dicom file in MAC environment.
My tech details
1) Dcmtk 3.5.4
2) Dev: Mac OS : 10.8.0 i386
3) Test: Mac OS : 10.8.0 i386
4) I have done the static linkage of dcmtk for the test app.
I have compiled and installed the dcmtk 3.5.4 in Dev mac m/c and this
test program (listed below) works fine.
But same does not work on the Test mac machine. It always gives the o/
p:
Conversion not possible.
>>> code
DJDecoderRegistration::registerCodecs(); // register JPEG codecs
DcmFileFormat fileformat;
if (fileformat.loadFile("test_jpeg.dcm").good())
{
DcmDataset *dataset = fileformat.getDataset();
// decompress data set if compressed
dataset->chooseRepresentation(EXS_LittleEndianExplicit, NULL);
// check if everything went well
if (dataset->canWriteXfer(EXS_LittleEndianExplicit))
{
fileformat.saveFile("test_decompressed.dcm",
EXS_LittleEndianExplicit);
}else
{
std::cout<<" Conversion not possible"<<std::endl;
}
}
DJDecoderRegistration::cleanup(); // deregister JPEG codecs
<<<
What Am I missing here? Is there any problem in deployment ? I copy
the a.out to test mac m/c .
Any help ?
Thanks and regards
Prakash.
Dcmtk 3.5.4 deployment on mac.
Moderator: Moderator Team
dicom.dic was missing on test mac machine. When I copied it to /usr/local/dicom/lib/dicom.dic it was working fine.
Thanks for all and especically this post : viewtopic.php?p=7558&sid=21de4bd84a4751 ... 39e5a7d5cb
Thanks and regards
pkotre.
Thanks for all and especically this post : viewtopic.php?p=7558&sid=21de4bd84a4751 ... 39e5a7d5cb
Thanks and regards
pkotre.
Who is online
Users browsing this forum: No registered users and 1 guest