org.dcm4che3.data.Attributes.addAll()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(239)

本文整理了Java中org.dcm4che3.data.Attributes.addAll()方法的一些代码示例,展示了Attributes.addAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.addAll()方法的具体详情如下:
包路径:org.dcm4che3.data.Attributes
类名称:Attributes
方法名:addAll

Attributes.addAll介绍

暂无

代码示例

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-qidors

public void addAll(Attributes attrs) {
  queryAttrs.addAll(attrs);
}

代码示例来源:origin: dcm4che/dcm4che

public Attributes(Attributes other, boolean bigEndian) {
  this(bigEndian, other.size);
  if (other.properties != null)
    properties = new HashMap<String, Object>(other.properties);
  addAll(other);
}

代码示例来源:origin: dcm4che/dcm4che

@Override
public Attributes nextMatch() throws DicomServiceException {
  Attributes ret = new Attributes(patRec.size()
      + studyRec.size()
      + seriesRec.size()
      + instRec.size());
  ret.addAll(patRec);
  ret.addAll(studyRec);
  ret.addAll(seriesRec);
  ret.addAll(instRec);
  wrappedFindNextInstance();
  return ret;
}

代码示例来源:origin: dcm4che/dcm4che

@Override
public Attributes nextMatch() throws DicomServiceException {
  Attributes ret = new Attributes(patRec.size()
      + studyRec.size()
      + seriesRec.size());
  ret.addAll(patRec);
  ret.addAll(studyRec);
  ret.addAll(seriesRec);
  wrappedFindNextSeries();
  return ret;
}

代码示例来源:origin: dcm4che/dcm4che

static void mergeKeys(Attributes attrs, Attributes keys) {
  try {
    attrs.accept(new MergeNested(keys), false);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  attrs.addAll(keys);
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-findscu

static void mergeKeys(Attributes attrs, Attributes keys) {
  try {
    attrs.accept(new MergeNested(keys), false);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  attrs.addAll(keys);
}

代码示例来源:origin: dcm4che/dcm4che

@Override
  public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) {
    try (DicomInputStream dis = new DicomInputStream(path.toFile())) {
      Attributes dataset = dis.readDataset(-1, -1);
      dataset.addAll(cliAttrs);
      System.out.println(format.format(dataset));
    } catch (IOException e) {
      System.err.println("Failed to parse DICOM file " + path);
      e.printStackTrace();
    }
    return FileVisitResult.CONTINUE;
  }
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp

@Override
public Attributes nextMatch() throws DicomServiceException {
  Attributes ret = new Attributes(patRec.size()
      + studyRec.size()
      + seriesRec.size());
  ret.addAll(patRec);
  ret.addAll(studyRec);
  ret.addAll(seriesRec);
  wrappedFindNextSeries();
  return ret;
}

代码示例来源:origin: dcm4che/dcm4che

@Override
public Attributes nextMatch() throws DicomServiceException {
  Attributes ret = new Attributes(patRec.size() + studyRec.size());
  ret.addAll(patRec);
  ret.addAll(studyRec);
  wrappedFindNextStudy();
  return ret;
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp

@Override
public Attributes nextMatch() throws DicomServiceException {
  Attributes ret = new Attributes(patRec.size() + studyRec.size());
  ret.addAll(patRec);
  ret.addAll(studyRec);
  wrappedFindNextStudy();
  return ret;
}

代码示例来源:origin: nroduit/Weasis

@Override
public Attributes getDicomObject() {
  Attributes dcm = new Attributes();
  DicomMediaUtils.fillAttributes(tags, dcm);
  dcm.addAll(attributes);
  return dcm;
}

代码示例来源: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: dcm4che/dcm4che

@Override
  public void coerce(Attributes attrs, Attributes modified) {
    Attributes.unifyCharacterSets(attrs, newAttrs);
    if (modified != null) {
      attrs.update(Attributes.UpdatePolicy.OVERWRITE, newAttrs, modified);
    } else {
      attrs.addAll(newAttrs);
    }
    if (next != null)
      next.coerce(attrs, modified);
  }
}

代码示例来源: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: dcm4che/dcm4che

private Attributes readPostAttr(DicomInputStream dis) throws IOException {
  Attributes postAttr = dis.readDataset(-1, -1);
  postAttr.addAll(metadata.getAttributes());
  metadata = new DicomMetaData(metadata.getFileMetaInformation(), postAttr);
  return postAttr;
}

代码示例来源:origin: dcm4che/dcm4che

@Override
public boolean visit(Attributes attrs, int tag, VR vr, Object val) {
  if (isNotEmptySequence(val)) {
    Object o = keys.remove(tag);
    if (isNotEmptySequence(o))
      ((Sequence) val).get(0).addAll(((Sequence) o).get(0));
  }
  return true;
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-findscu

@Override
public boolean visit(Attributes attrs, int tag, VR vr, Object val) {
  if (isNotEmptySequence(val)) {
    Object o = keys.remove(tag);
    if (isNotEmptySequence(o))
      ((Sequence) val).get(0).addAll(((Sequence) o).get(0));
  }
  return true;
}

代码示例来源:origin: dcm4che/dcm4che

public void retrieve(File f) throws IOException, InterruptedException {
  Attributes attrs = new Attributes();
  DicomInputStream dis = null;
  try {
    attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter);
  } finally {
    SafeClose.close(dis);
  }
  attrs.addAll(keys);
  retrieve(attrs);
}

代码示例来源:origin: dcm4che/dcm4che

public void retrieve(File f) throws IOException, InterruptedException {
  Attributes attrs = new Attributes();
  DicomInputStream dis = null;
  try {
    attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter);
  } finally {
    SafeClose.close(dis);
  }
  attrs.addAll(keys);
  retrieve(attrs);
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-getscu

public void retrieve(File f) throws IOException, InterruptedException {
  Attributes attrs = new Attributes();
  DicomInputStream dis = null;
  try {
    attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter);
  } finally {
    SafeClose.close(dis);
  }
  attrs.addAll(keys);
  retrieve(attrs);
}

相关文章

微信公众号

最新文章

更多