반응형
    DJDecoderRegistration::registerCodecs(); // register JPEG codecs
    //DcmFileFormat fileformat;
    if (fileformat.loadFile(filePath.c_str()).good())
    {
        DcmDataset* dataset = fileformat.getDataset();

        // decompress data set if compressed
        if (dataset->chooseRepresentation(EXS_LittleEndianExplicit, NULL).good() &&
            dataset->canWriteXfer(EXS_LittleEndianExplicit))
        {
            fileformat.saveFile("test_decompressed.dcm", EXS_LittleEndianExplicit);
        }
    }
    DJDecoderRegistration::cleanup(); // deregister JPEG codecs
반응형

'[====== Development ======] > DICOM' 카테고리의 다른 글

[DCMTK] Send DICOM  (0) 2021.07.29
[DCMTK] Simple StoreSCP  (0) 2021.07.29
[DCMTK] Echo SCU  (0) 2021.07.27
Open Source DICOM Web Viewer  (0) 2021.07.07
VR Patient Name (PN) 정리  (0) 2021.07.07

+ Recent posts