/** Returns the DICOM tags of the specified file as a string. */ public String getInfo(String path) { showErrors = false; gettingInfo = true; run(path); return info; }
/** Returns the DICOM tags of the specified file as a string. */ public String getInfo(String path) { showErrors = false; gettingInfo = true; run(path); return info; }
/** Opens the specified file as a DICOM. Does not display a message if there is an error. Here is an example: <pre> DICOM dcm = new DICOM(); dcm.open(path); if (dcm.getWidth()==0) IJ.log("Error opening '"+path+"'"); else dcm.show(); </pre> */ public void open(String path) { showErrors = false; run(path); }
/** Opens the specified file as a DICOM. Does not display a message if there is an error. Here is an example: <pre> DICOM dcm = new DICOM(); dcm.open(path); if (dcm.getWidth()==0) IJ.log("Error opening '"+path+"'"); else dcm.show(); </pre> */ public void open(String path) { showErrors = false; run(path); }
FileInputStream fis; try { fis = new FileInputStream(path); DICOM d = new DICOM(fis); d.run(path); Image picture = SwingFXUtils.toFXImage(d.getBufferedImage(), null); Button bt = new Button(); bt.setGraphic(new ImageView(picture)); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); }
InputStream reader = new FileInputStream(fullpath); DICOM dcm = new DICOM(reader); dcm.run("Name"); dcm.show(); for (int i = 1; i < sf.length; i++) {
} else if (name.endsWith(".dcm")) { DICOM dcm = new DICOM(zis); dcm.run(name); imp = dcm; } else {
} else if (name.endsWith(".dcm")) { DICOM dcm = new DICOM(zis); dcm.run(name); imp = dcm; } else {
InputStream is = new ByteArrayInputStream(bytes); DICOM dcm = new DICOM(is); dcm.run(name); imp2 = dcm; is.close();
InputStream is = new ByteArrayInputStream(bytes); DICOM dcm = new DICOM(is); dcm.run(name); imp2 = dcm; is.close();