gpt4 book ai didi

org.weasis.core.api.image.ZoomOp.getName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 22:09:31 27 4
gpt4 key购买 nike

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

ZoomOp.getName介绍

暂无

代码示例

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

private static void changePixelSize(DicomImageElement img, Map<String, Object> actionsInView, double[] prPixSize) {
  img.setPixelSize(prPixSize[1], prPixSize[0]);
  actionsInView.put(PRManager.TAG_CHANGE_PIX_CONFIG, true);
  ZoomOp node = img.getRectifyAspectRatioZoomOp();
  if (node != null) {
    SimpleOpManager process = new SimpleOpManager();
    process.addImageOperationAction(node);
    OpManager preprocessing = (OpManager) actionsInView.get(ActionW.PREPROCESSING.cmd());
    if (preprocessing != null) {
      for (ImageOpNode op : preprocessing.getOperations()) {
        if (!node.getName().equals(op.getName())) {
          process.addImageOperationAction(op);
        }
      }
    }
    actionsInView.put(ActionW.PREPROCESSING.cmd(), process);
  }
}

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

@Override
public void setImage(E image, OpManager preprocessing) {
  boolean init = (image != null && !image.equals(this.sourceImage)) || (image == null && sourceImage != null);
  this.sourceImage = image;
  this.preprocessing = preprocessing;
  // Rectify non square pixel image in the first operation
  if (sourceImage != null) {
    ZoomOp node = sourceImage.getRectifyAspectRatioZoomOp();
    if (node != null) {
      SimpleOpManager process = new SimpleOpManager();
      process.addImageOperationAction(node);
      if (preprocessing != null) {
        for (ImageOpNode op : preprocessing.getOperations()) {
          if (!node.getName().equals(op.getName())) {
            process.addImageOperationAction(op);
          }
        }
      }
      this.preprocessing = process;
    }
  }
  if (preprocessing != null || init) {
    disOpManager.setFirstNode(getSourceRenderedImage());
    updateDisplayOperations();
  }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com