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(); }
fullpath = fullpath + "\\" + filelist; InputStream reader = new FileInputStream(fullpath); DICOM dcm = new DICOM(reader); dcm.run("Name"); dcm.show();
private static String getSliceLabel(ImageStack stack, int n) { String info = stack.getSliceLabel(n); if ((info==null || info.length()<100) && stack.isVirtual()) { String dir = ((VirtualStack)stack).getDirectory(); String name = ((VirtualStack)stack).getFileName(n); DICOM reader = new DICOM(); info = reader.getInfo(dir+name); if (info!=null) info = name + "\n" + info; } return info; }
private static String getSliceLabel(ImageStack stack, int n) { String info = stack.getSliceLabel(n); if ((info==null || info.length()<100) && stack.isVirtual()) { String dir = ((VirtualStack)stack).getDirectory(); String name = ((VirtualStack)stack).getFileName(n); DICOM reader = new DICOM(); info = reader.getInfo(dir+name); if (info!=null) info = name + "\n" + info; } return info; }
imp = openTiff(zis, name); } else if (name.endsWith(".dcm")) { DICOM dcm = new DICOM(zis); dcm.run(name); imp = dcm;
imp = openTiff(zis, name); } else if (name.endsWith(".dcm")) { DICOM dcm = new DICOM(zis); dcm.run(name); imp = dcm;
out.close(); InputStream is = new ByteArrayInputStream(bytes); DICOM dcm = new DICOM(is); dcm.run(name); imp2 = dcm;
out.close(); InputStream is = new ByteArrayInputStream(bytes); DICOM dcm = new DICOM(is); dcm.run(name); imp2 = dcm;