dcm4che2.0.29版本 ----- DicomImageReadParam

<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;
    }
}

---------------------

希望指正,共同进步。会在使用的过程中不断修正。。。。




猜你喜欢

转载自blog.csdn.net/u012633319/article/details/50500501
今日推荐