0

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

我可以使用以下方法解析/读取“公共”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 标签吗?

4

1 回答 1

1

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

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

getString(int tag, VR vr)
于 2015-05-20T20:30:48.570 回答