Friday, 27 September 2013

ImageJ: Show Any Formate Image

WindowManager.setTempCurrentImage(new ImagePlus("D:\\testImaes\\skull\\IM-0001-0001.DCM"));
        imp = WindowManager.getTempCurrentImage();

        Istogramma istogramma = new Istogramma(imp);
        istogramma.showHistogram(imp, 1);
        //imp.show();
        IJ.run(imp, "Scale...", "x=0.5 y=0.5 width=344 height=345 interpolate create title=[Scaled version of " + imp.getTitle() + "]");

No comments: