本文整理汇总了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!");
}
}
示例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;
}
示例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;
}
示例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);
}
}
示例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 ;
}