Package clips.dicom.Image

Examples of clips.dicom.Image.DICOMImage


      }
    }
  }

  public void autoWindow(int curImageID, double beginPocent, double endProcent) {
    DICOMImage    img = getImage(curImageID);
    if (img == null){
      return;
    }
    img.autoWindow(beginPocent, endProcent);
    setMinMax(curImageID, img.getMin(), img.getMax());
  }
View Full Code Here


  }
}//GEN-LAST:event_SetDefaultjButtonActionPerformed

private void SaveDeviseParamjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SaveDeviseParamjButtonActionPerformed
    if (imageModel != null){
      DICOMImage    img = imageModel.getImage(curImageID);
      DICOMImage    paramimg = imageModel.getImage(0);
      if (img != null && paramimg != null) {
        new DicomDeviseImageParamsDlg(MainWindow.mainWindow, paramimg.getDeviceParam(), img).setVisible(true);
      }
    }
}//GEN-LAST:event_SaveDeviseParamjButtonActionPerformed
View Full Code Here

    // End of variables declaration//GEN-END:variables

 
  public void updateZoom(){
    Dimension      scrollSize = imagejScrollPane.getSize();
    DICOMImage      img =  imageModel != null? imageModel.getImage(curImageID): null;
    if (img != null){
      Dimension    imgSize = img.getImageSize();
      double      hzoom = (double)(scrollSize.width - 4) / (double)imgSize.width;
      double      vzoom = (double)(scrollSize.height - 4) / (double)imgSize.height;
      double      curzoom = Math.min(hzoom, vzoom) * zoomFactor;
      Dimension    newSize = new Dimension((int)(imgSize.width * curzoom), (int)(imgSize.height * curzoom));
     
 
View Full Code Here

TOP

Related Classes of clips.dicom.Image.DICOMImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.