使用dcm4che2工具包读取私有dicom标记的内容

时间:2015-05-20 14:12:43

标签: dicom dcm4che

我的问题很简单:如何使用dcm4che2工具包读取私有dicom TAG(例如0019,105A)?

我能够解析/阅读" public" dicom标签使用:

try {
            DicomObject dcmObj5;
            DicomInputStream din5 = null;
            din5 = new DicomInputStream(file);
            dcmObj5 = din5.readDicomObject();
            tmpSeriesId = dcmObj5.getString(Tag.SeriesInstanceUID);
            din5.close(); 
    }
        catch (IOException e) {
                e.printStackTrace();
    }

我能以某种方式使用getString()来读取私有dicom标签吗?

1 个答案:

答案 0 :(得分:1)

正确的做法是将私有属性添加到您的库中(请参阅http://www.dcm4che.org/confluence/display/d2/Adding+private+tags+to+the+dictionary)。

尝试的另一个选择是指定VR(假设您知道它)并使用

getString(int tag, VR vr)
相关问题