本文整理了Java中org.dcm4che3.data.Attributes.getNestedDataset()
方法的一些代码示例,展示了Attributes.getNestedDataset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.getNestedDataset()
方法的具体详情如下:
包路径:org.dcm4che3.data.Attributes
类名称:Attributes
方法名:getNestedDataset
暂无
代码示例来源:origin: dcm4che/dcm4che
private Attributes selectFctGroup(Attributes imgAttrs,
Attributes sharedFctGroups,
Attributes frameFctGroups,
int tag) {
if (frameFctGroups == null) {
return imgAttrs;
}
Attributes group = frameFctGroups.getNestedDataset(tag);
if (group == null && sharedFctGroups != null) {
group = sharedFctGroups.getNestedDataset(tag);
}
return group != null ? group : imgAttrs;
}
代码示例来源:origin: dcm4che/dcm4che
public Attributes getNestedDataset(int sequenceTag) {
return getNestedDataset(null, sequenceTag, 0);
}
代码示例来源:origin: dcm4che/dcm4che
public Attributes getNestedDataset(String privateCreator, int sequenceTag) {
return getNestedDataset(privateCreator, sequenceTag, 0);
}
代码示例来源:origin: dcm4che/dcm4che
public Attributes getNestedDataset(ItemPointer... itemPointers) {
return getNestedDataset(Arrays.asList(itemPointers));
}
代码示例来源:origin: dcm4che/dcm4che
private static String identifierTypeCodeOf(Attributes attrs) {
Attributes qualifiers = attrs.getNestedDataset(Tag.IssuerOfPatientIDQualifiersSequence);
return qualifiers != null
? qualifiers.getString(Tag.IdentifierTypeCode)
: null;
}
代码示例来源:origin: dcm4che/dcm4che
protected Attributes item(Attributes attrs) {
for (int sqtag : itemPath) {
if (sqtag == -1)
attrs = (sqtag == -1)
? attrs.getParent()
: attrs.getNestedDataset(sqtag);
}
return attrs;
}
}
代码示例来源:origin: nroduit/Weasis
private void writeSharedFunctionalGroupsSequence(Attributes header) {
if (header != null) {
DicomMediaUtils.writeFunctionalGroupsSequence(this,
header.getNestedDataset(Tag.SharedFunctionalGroupsSequence));
}
}
代码示例来源:origin: dcm4che/dcm4che
public String selectStringValue(Attributes attrs, int valueIndex, String defVal) {
Attributes item = attrs.getNestedDataset(itemPointers);
return item != null ? item.getString(privateCreator, tag, valueIndex, defVal) : defVal;
}
代码示例来源:origin: nroduit/Weasis
public Code getNestedCode(int tag) {
Attributes item = dcmItems.getNestedDataset(tag);
return item != null ? new Code(item) : null;
}
代码示例来源:origin: nroduit/Weasis
public Code getReasonForRequestedProcedureCode() {
Attributes item = dcmItems.getNestedDataset(Tag.ReasonForRequestedProcedureCodeSequence);
return item != null ? new Code(item) : null;
}
代码示例来源:origin: nroduit/Weasis
protected String getLabelWithoutPrefix() {
Attributes dicom = ((DicomMediaIO) mediaIO).getDicomObject();
Attributes item = dicom.getNestedDataset(Tag.ContentSequence);
if (item != null) {
return item.getString(Tag.TextValue);
}
return null;
}
代码示例来源:origin: dcm4che/dcm4che
public void setModalityLUT(Attributes attrs) {
rescaleIntercept = attrs.getFloat(Tag.RescaleIntercept, 0);
rescaleSlope = attrs.getFloat(Tag.RescaleSlope, 1);
modalityLUT = createLUT(storedValue,
attrs.getNestedDataset(Tag.ModalityLUTSequence));
}
代码示例来源:origin: dcm4che/dcm4che
public static IDWithIssuer valueOf(Attributes attrs, int idTag,
int issuerSeqTag) {
String id = attrs.getString(idTag);
if (id == null)
return null;
return new IDWithIssuer(id,
Issuer.valueOf(attrs.getNestedDataset(issuerSeqTag)));
}
代码示例来源:origin: dcm4che/dcm4che
private void addFunctionGroups(Attributes dest, Attributes fgs) {
dest.addSelected(fgs, Tag.ReferencedImageSequence);
Attributes fg;
for (int sqTag : fgs.tags())
if (sqTag != Tag.ReferencedImageSequence
&& (fg = fgs.getNestedDataset(sqTag)) != null)
dest.addAll(fg);
}
代码示例来源:origin: org.dcm4che/dcm4che-image
public void setModalityLUT(Attributes attrs) {
rescaleIntercept = attrs.getFloat(Tag.RescaleIntercept, 0);
rescaleSlope = attrs.getFloat(Tag.RescaleSlope, 1);
modalityLUT = createLUT(storedValue,
attrs.getNestedDataset(Tag.ModalityLUTSequence));
}
代码示例来源:origin: nroduit/Weasis
public String getDocumentTitle() {
Attributes dcmItems = getMediaReader().getDicomObject();
if (dcmItems != null) {
Attributes item = dcmItems.getNestedDataset(Tag.ConceptNameCodeSequence);
if (item != null) {
return item.getString(Tag.CodeMeaning, null);
}
}
return null;
}
代码示例来源:origin: org.dcm4che/dcm4che-emf
private void addFunctionGroups(Attributes dest, Attributes fgs) {
dest.addSelected(fgs, Tag.ReferencedImageSequence);
Attributes fg;
for (int sqTag : fgs.tags())
if (sqTag != Tag.ReferencedImageSequence
&& (fg = fgs.getNestedDataset(sqTag)) != null)
dest.addAll(fg);
}
代码示例来源:origin: nroduit/Weasis
private static SRImageReference getReferencedImage(Map<String, SRImageReference> map, String level,
Attributes attributes) {
Attributes item = attributes.getNestedDataset(Tag.ReferencedSOPSequence);
if (item == null) {
return null;
}
SRImageReference imgRef = map.computeIfAbsent(level, k -> new SRImageReference(level));
if (imgRef.getSopInstanceReference() == null) {
imgRef.setSopInstanceReference(new SOPInstanceReference(item));
}
return imgRef;
}
代码示例来源:origin: nroduit/Weasis
public static void readPRLUTsModule(Attributes dcmItems, Tagable tagable) {
if (dcmItems != null && tagable != null) {
// Modality LUT Module
applyModalityLutModule(dcmItems, tagable, null);
// VOI LUT Module
applyVoiLutModule(dcmItems.getNestedDataset(Tag.SoftcopyVOILUTSequence), dcmItems, tagable,
Tag.SoftcopyVOILUTSequence);
// Presentation LUT Module
applyPrLutModule(dcmItems, tagable);
}
}
代码示例来源:origin: dcm4che/dcm4che
public static Issuer fromIssuerOfPatientID(Attributes attrs) {
String issuerOfPatientID = attrs.getString(Tag.IssuerOfPatientID);
Attributes qualifiers = attrs.getNestedDataset(Tag.IssuerOfPatientIDQualifiersSequence);
if (qualifiers != null) {
String universalEntityID = qualifiers.getString(Tag.UniversalEntityID);
String universalEntityIDType = qualifiers.getString(Tag.UniversalEntityIDType);
if (universalEntityID != null && universalEntityIDType != null)
return new Issuer(issuerOfPatientID, universalEntityID, universalEntityIDType);
}
return (issuerOfPatientID != null)
? new Issuer(issuerOfPatientID, null, null)
: null;
}
内容来源于网络,如有侵权,请联系作者删除!