当前位置: 首页>>代码示例>>Java>>正文


Java DicomObject.get方法代码示例

本文整理汇总了Java中org.dcm4che2.data.DicomObject.get方法的典型用法代码示例。如果您正苦于以下问题:Java DicomObject.get方法的具体用法?Java DicomObject.get怎么用?Java DicomObject.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.dcm4che2.data.DicomObject的用法示例。


在下文中一共展示了DicomObject.get方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: promptStgCmt

import org.dcm4che2.data.DicomObject; //导入方法依赖的package包/类
private static void promptStgCmt(DicomObject cmtrslt, float seconds) {
    
    DicomElement refSOPSq = cmtrslt.get(Tag.ReferencedSOPSequence);
    System.out.print(refSOPSq.countItems());
    System.out.println(" successful");
    DicomElement failedSOPSq = cmtrslt.get(Tag.FailedSOPSequence);
    if (failedSOPSq != null) {
        System.out.print(failedSOPSq.countItems());
        System.out.println(" FAILED!");
    }
}
 
开发者ID:NCIP,项目名称:national-biomedical-image-archive,代码行数:12,代码来源:DcmSnd.java

示例2: isPatientRoot

import org.dcm4che2.data.DicomObject; //导入方法依赖的package包/类
public static boolean isPatientRoot(DicomObject rsp)
{
    DicomElement elem = rsp.get(Integer.parseInt("00000002", 16));
    String affectedSOP = new String(elem.getBytes());

    if (affectedSOP.equals("1.2.840.10008.5.1.4.1.2.2.1"))
    {
        return true;
    }
    return false;
}
 
开发者ID:NCIP,项目名称:national-biomedical-image-archive,代码行数:12,代码来源:CFindBuilder.java

示例3: isStudyRoot

import org.dcm4che2.data.DicomObject; //导入方法依赖的package包/类
public static boolean isStudyRoot(DicomObject rsp)
{
    DicomElement elem = rsp.get(Integer.parseInt("00000002", 16));
    String affectedSOP = new String(elem.getBytes());
    if (affectedSOP.equals("1.2.840.10008.5.1.4.1.2.1.1"))
    {
        return true;
    }
    return false;
}
 
开发者ID:NCIP,项目名称:national-biomedical-image-archive,代码行数:11,代码来源:CFindBuilder.java

示例4: testDicomSetGetField

import org.dcm4che2.data.DicomObject; //导入方法依赖的package包/类
protected void testDicomSetGetField(DicomObject dicom, int tagNr, VR vr, String value) throws IOException
{
    dicom.putString(tagNr, vr, value);
    DicomElement el = dicom.get(tagNr);

    // use DicomWrapper
    String tagWrapValue = DicomWrapper.element2String(el, null);
    // use DicomElement
    String tagDirectValue = dicom.getString(tagNr);

    String tagFieldStr = ("#" + tagNr + "'" + DicomUtil.getTagName(tagNr) + "',VR=" + vr);
    Assert.assertEquals("Field value (DicomWrapper) doesn't match:" + tagFieldStr, value, tagWrapValue);
    Assert.assertEquals("Field value (DicomElement) doesn't match:" + tagFieldStr, value, tagDirectValue);

    // Check VR Type against database:
    VR configType = DicomTags.getDefault().getVRofTag(tagNr);

    // Config meta type 'OX' can match against 'OB' and 'OW'. Dicom Tags themself never have 'OX'.
    if (configType == VRType.OX.vr())
    {
        if ((vr == VRType.OB.vr()) || (vr == VRType.OW.vr()))
        {
            ; // ok
        }
        else
        {
            Assert.assertEquals("VR type 'OX' (from tag:" + tagFieldStr + ") configuration doesn't either 'OB' or 'OW'.", vr,
                    configType);
        }
    }
    else
    {
        Assert.assertEquals("VR type (from tag:" + tagFieldStr + ") configuration doesn't match used type.", vr, configType);
    }
}
 
开发者ID:NLeSC,项目名称:escxnat,代码行数:36,代码来源:Test_DicomProcessor.java

示例5: setRoot

import org.dcm4che2.data.DicomObject; //导入方法依赖的package包/类
private synchronized  boolean setRoot(DicomObject rsp)
{
    /**
     * Verify if it is inside of:
     * Affected SOP Class UID (0000,0002)
     * Checked in C-FIND RQ in DICOM
     * It is one of three ([P|S|PS] Root )
     */

    DicomElement elem = rsp.get(Integer.parseInt("00000002", 16));
    String affectedSOP = new String(elem.getBytes());



    //DebugManager.getInstance().debug(">" + affectedSOP);
    //DebugManager.getInstance().debug(">> "+ServerSettings.getInstance().getSOPClass());
    


    boolean found = false;

    for (String i : ServerSettings.getInstance().getSOPClass().split("\\|"))
    {
        //DebugManager.getInstance().debug("It have in settings:>: " + i);

        if (affectedSOP.equals(i))
        {
            /**
            1.2.840.10008.5.1.4.1.2.1.1 (Patient)
            1.2.840.10008.5.1.4.1.2.2.1 (Study)
             */
            //DebugManager.getInstance().debug(">>> Affected SOPs in ");
            if (affectedSOP.equals("1.2.840.10008.5.1.4.1.2.1.1"))
            {
                this.patientRoot = true ;
                found = true ;
            }
            else if (affectedSOP.equals("1.2.840.10008.5.1.4.1.2.2.1"))
            {
                this.studyRoot = true ;
                found = true  ;
            }
            break ;
        }
    }

    return found ;

}
 
开发者ID:NCIP,项目名称:national-biomedical-image-archive,代码行数:50,代码来源:CFindBuilder.java


注:本文中的org.dcm4che2.data.DicomObject.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。