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]++; } }
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); }
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(); }
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(""); }
private void callImporter(IImportExport importer, GenericTable table, String fpath, int startingFrame) { IJ.showStatus("ThunderSTORM is importing your file..."); IJ.showProgress(0.0); try { table.setOriginalState(); importer.importFromFile(fpath, table, startingFrame); table.convertAllColumnsToAnalogUnits(); IJ.showStatus("ThunderSTORM has imported your file."); } catch(IOException ex) { IJ.showStatus(""); IJ.showMessage("Exception", ex.getMessage()); } catch(Exception ex) { IJ.showStatus(""); IJ.handleException(ex); } IJ.showProgress(1.0); }
/** * Add the default features to the feature stack */ public void addDefaultFeatures() { int counter = 1; for (float i=1.0f; i<maximumSigma; i*=2){ IJ.showStatus("Creating feature stack... " + counter); this.addGaussianBlur(i); counter++; IJ.showStatus("Creating feature stack... " + counter); this.addGradient(i); counter++; IJ.showStatus("Creating feature stack... " + counter); this.addHessian(i); counter++; for (float j=1.0f; j<i; j*=2){ IJ.showStatus("Creating feature stack... " + counter); this.addDoG(i, j); counter++; } } this.addMembraneFeatures(19, 1); IJ.showProgress(1.0); }
/** * Add the default features to the feature stack */ public void addDefaultFeatures() { int counter = 1; for (float i=1.0f; i<maximumSigma; i*=2){ IJ.showStatus("Creating feature stack... " + counter); this.addGaussianBlur(i); counter++; IJ.showStatus("Creating feature stack... " + counter); this.addGradient(i); counter++; IJ.showStatus("Creating feature stack... " + counter); this.addHessian(i); counter++; for (float j=1.0f; j<i; j*=2){ IJ.showStatus("Creating feature stack... " + counter); this.addDoG(i, j); counter++; } } this.addMembraneFeatures(19, 1); IJ.showProgress(1.0); }
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; }