dcm4che2.0.29版本 ----- DicomImageReadParam
2016-01-11 23:43
399 查看
<span style="font-size: 18.18181800842285px;">1.DicomImageReadParam由ImageReadParam继承而来,可参照JPEGImageReadParam,只不过读取的为Dicom文件,在将dicom文件作为普通图片类进行读取时,对dicom文件中一些涉及作为普通图像显示的参数进行设置。</span>
2.DicomImageReadParam:设置/返回窗宽、窗位。
public class DicomImageReadParam extends ImageReadParam { public static final String LINEAR = "LINEAR"; //线性 public static final String SIGMOID = "SIGMOID";// private boolean autoWindowing = true; //自动调整窗口 private float center;//窗位 private float width;//窗宽 private String vlutFct;// private DicomObject voiLut;//感兴趣区域的查找表(value of interset look up table) private DicomObject prState;//当前状态(presentState) private short[] pval2gray;// String overlayRGB = null;// public final boolean isAutoWindowing() { return autoWindowing; } public final void setAutoWindowing(boolean autoWindowing) { this.autoWindowing = autoWindowing; } public final float getWindowCenter() { return center; } public final void setWindowCenter(float center) { this.center = center; } public final float getWindowWidth() { return width; } public final void setWindowWidth(float width) { this.width = width; } public final void setVoiLutFunction(String vlutFct) { this.vlutFct = vlutFct; } public final String getVoiLutFunction() { return vlutFct; } public final DicomObject getVoiLut() { return voiLut; } public final void setVoiLut(DicomObject voiLut) { this.voiLut = voiLut; } public final DicomObject getPresentationState() { return prState; } public final void setPresentationState(DicomObject prState) { this.prState = prState; } public final short[] getPValue2Gray() { return pval2gray; } public final void setPValue2Gray(short[] pval2gray) { this.pval2gray = pval2gray; } public String getOverlayRGB() { return overlayRGB; }
public void setOverlayRGB(String overlayRGB) { if (overlayRGB == null) { this.overlayRGB = null; return; } overlayRGB = overlayRGB.trim(); if (overlayRGB.startsWith("#")) overlayRGB = overlayRGB.substring(1, overlayRGB.length()); if (overlayRGB.length() == 0) { this.overlayRGB = null; return; } this.overlayRGB = overlayRGB; } }
---------------------
希望指正,共同进步。会在使用的过程中不断修正。。。。
相关文章推荐
- StarUML2 建模工具全平台破解及license验证简要分析
- mark一下:csdn博客访问量约100万, 积分约2万, 评论约1000条, 排名约200
- 资源收集
- js-变量、作用域和内存问题,引用类型
- 幻方
- 改变PS1变量的颜色
- 网络舆情分析师
- HDU【1875】畅通工程再续
- 数据存储
- [每日电路图] 2、红外遥控电路原理设计与解析【转+解读】
- Java学习——继承
- mysql ERROR 1045 (28000): Access denied for user解决方法
- 服务端开发小感
- Android插件化开发之Atlas初体验
- GPUImage滤镜之锐化
- Java final关键字声明的意义
- 说说常用的服务器操作
- 欧几里得扩展算法
- 计算机学习视频教程
- 2016第2周一