Refine search
private synchronized void processingNewFrame(String message) { IJ.showStatus(String.format(message, processing_frame, frames)); IJ.showProgress((double) (processing_frame) / (double) frames); processing_frame++; }
private synchronized void processingNewFrame(String message) { IJ.showStatus(String.format(message, processingFrame, frames)); IJ.showProgress((double)(processingFrame) / (double)frames); processingFrame++; }
void write8BitStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); write8BitImage(out, (byte[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void write16BitStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); write16BitImage(out, (short[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void writeFloatStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); writeFloatImage(out, (float[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void writeRGBStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); writeRGBImage(out, (int[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void writeRGBStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); writeRGBImage(out, (int[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void write8BitStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); write8BitImage(out, (byte[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void write16BitStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); write16BitImage(out, (short[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
void writeFloatStack(OutputStream out, Object[] stack) throws IOException { showProgressBar = false; for (int i=0; i<fi.nImages; i++) { IJ.showStatus("Writing: " + (i+1) + "/" + fi.nImages); writeFloatImage(out, (float[])stack[i]); IJ.showProgress((double)(i+1)/fi.nImages); } }
public MedianCut(int[] pixels, int width, int height) { int color16; pixels32 = pixels; this.width = width; this.height = height; //build 32x32x32 RGB histogram IJ.showProgress(0.3); IJ.showStatus("Building 32x32x32 RGB histogram"); hist = new int[HSIZE]; for (int i=0; i<width*height; i++) { color16 = rgb(pixels32[i]); hist[color16]++; } }
public MedianCut(int[] pixels, int width, int height) { int color16; pixels32 = pixels; this.width = width; this.height = height; //build 32x32x32 RGB histogram IJ.showProgress(0.3); IJ.showStatus("Building 32x32x32 RGB histogram"); hist = new int[HSIZE]; for (int i=0; i<width*height; i++) { color16 = rgb(pixels32[i]); hist[color16]++; } }
public void addDefaultFiles() throws IOException { boolean logToStdout = IJ.getInstance() == null; if (logToStdout) System.out.println("Writing files"); else IJ.showStatus("Writing files"); int count = 0; for (String fileName : files) { addFile(fileName, false); if (logToStdout) System.out.print("."); else IJ.showProgress(count++, files.size()); } if (logToStdout) System.out.println(); }
private void callExporter(IImportExport exporter, GenericTable table, String fpath, int floatPrecision, List<String> columns) { IJ.showStatus("ThunderSTORM is exporting your results..."); IJ.showProgress(0.0); try { exporter.exportToFile(fpath, floatPrecision, table, columns); IJ.showStatus("ThunderSTORM has exported your results."); } catch(IOException ex) { IJ.showStatus(""); IJ.showMessage("Exception", ex.getMessage()); } catch(Exception ex) { IJ.showStatus(""); IJ.handleException(ex); } IJ.showProgress(1.0); }
static void error(final String message) { IJ.showMessage(name()+": Error",message+"."); IJ.showProgress(1); IJ.showStatus(""); }
static void error(final String message) { IJ.showMessage(name()+": Error",message+"."); IJ.showProgress(1); IJ.showStatus(""); }
public void run(String path) { IJ.showProgress(0); imp = WindowManager.getCurrentImage(); if (imp==null) {IJ.noImage(); return;} try { writeImage(imp, path); } catch (Exception e) { String msg = e.getMessage(); if (msg==null || msg.equals("")) msg = ""+e; IJ.error("BMP Writer", "An error occured writing the file.\n \n" + msg); } IJ.showProgress(1); IJ.showStatus(""); }
ImageProcessor makeImage() { // Generate 8-bit image Image img8; byte[] pixels8; int color16; IJ.showStatus("Creating 8-bit image"); pixels8 = new byte[width*height]; for (int i=0; i<width*height; i++) { color16 = rgb(pixels32[i]); pixels8[i] = (byte)hist[color16]; } ImageProcessor ip = new ByteProcessor(width, height, pixels8, cm); IJ.showProgress(1.0); return ip; }
ImageProcessor makeImage() { // Generate 8-bit image Image img8; byte[] pixels8; int color16; IJ.showStatus("Creating 8-bit image"); pixels8 = new byte[width*height]; for (int i=0; i<width*height; i++) { color16 = rgb(pixels32[i]); pixels8[i] = (byte)hist[color16]; } ImageProcessor ip = new ByteProcessor(width, height, pixels8, cm); IJ.showProgress(1.0); return ip; }
public void run(String path) { IJ.showProgress(0); imp = WindowManager.getCurrentImage(); if (imp==null) {IJ.noImage(); return;} try { writeImage(imp, path); } catch (Exception e) { String msg = e.getMessage(); if (msg==null || msg.equals("")) msg = ""+e; IJ.error("BMP Writer", "An error occured writing the file.\n \n" + msg); } IJ.showProgress(1); IJ.showStatus(""); }