/** Runs an ImageJ command. Does not return until the command has finished executing. To avoid "image locked", errors, plugins that call this method should implement the PlugIn interface instead of PlugInFilter. */ public static void run(String command) { run(command, null); }
/** * Run a ImageJ command without arguments. * * This method call the run method of ImageJ without any options. * * @param command command to run */ public static void run(String command) { IJ.run(command); }
@Override public Void call() throws Exception { IJ.run(command); return null; } });
/** The macro interpreter uses this method to run commands. */ public static void run(Interpreter interpreter, String command, String options) { macroInterpreter = interpreter; run(command, options); macroInterpreter = null; }
/** The macro interpreter uses this method to run commands. */ public static void run(Interpreter interpreter, String command, String options) { macroInterpreter = interpreter; run(command, options); macroInterpreter = null; }
void open() { try {IJ.run("LUT... ");} // File>Import>Lut... catch(RuntimeException e) {} updateLut = true; repaint(); }
void specify() { try {IJ.run("Specify...");} catch (Exception e) {return;} runCommand("add"); }
/** Displays the About ImageJ 1.x dialog. */ public void appAbout() { if (legacyService.isLegacyMode()) { IJ.run("About ImageJ..."); } }
void open() { try {IJ.run("LUT... ");} // File>Import>Lut... catch(RuntimeException e) {} updateLut = true; repaint(); }
private void openControlPanel() { Prefs.set("Control_Panel.@Main", "51 22 92 426"); Prefs.set("Control_Panel.Help.Examples", "144 107 261 373"); IJ.run("Control Panel...", ""); }
@Override public void run(final ImageProcessor ip) { processImage(image); if (resultImage == null) { return; } resultImage.show(); IJ.run("Fire"); // changes the color palette of the output image } }
void process(String path) { if (IJ.versionLessThan("1.33b")) return; IJ.run("Open...", "path='"+path+"'"); //IJ.run("Open...", "path=/Users/barthel/Applications/ImageJ/plugins/ColorInspector3D/images/cube6.png"); run(""); }
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); cImp.setPosition(currentChannel, currentSlice, currentFrame); CompositeImage cImp = (CompositeImage) this.cImp; IJ.run(cmd); repaint(); setCursor(defaultCursor); }
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); cImp.setPosition(currentChannel, currentSlice, currentFrame); CompositeImage cImp = (CompositeImage) this.cImp; IJ.run(cmd); repaint(); setCursor(defaultCursor); }
public static void main( final String[] args ) { System.setProperty( "apple.laf.useScreenMenuBar", "true" ); new ImageJ(); IJ.run( "Confocal Series (2.2MB)" ); // IJ.run( "Fly Brain (1MB)" ); new OpenImagePlusPlugIn().run(); }
private void rotate(ImagePlus imp) { Roi roi = imp.getRoi(); if (IJ.macroRunning()) { String options = Macro.getOptions(); if (options!=null && (options.indexOf("grid=")!=-1||options.indexOf("interpolat")!=-1)) { IJ.run("Rotate... ", options); // run Image>Transform>Rotate return; } } (new RoiRotator()).run(""); }
public static void main( final String[] args ) { new ImageJ(); IJ.run("Confocal Series (2.2MB)"); new ExportImagePlusPlugIn().run(); }
public void run() { int currentSlice = imp.getCurrentSlice(); ResultsTable rtMulti = RoiManager.multiMeasure(imp, rois, appendResults); mmResults = (ResultsTable)rtMulti.clone(); rtMulti.show("Results"); imp.setSlice(currentSlice); if (rois.length>1) IJ.run("Select None"); }
/** Returns a byte[3][256] containing the colors of the fire LUT. */ public static final IndexColorModel fireLUT() { final ImagePlus imp = new ImagePlus("fire", new ByteProcessor(1, 1)); IJ.run(imp, "Fire", ""); return (IndexColorModel) imp.getProcessor().getColorModel(); }
private void labels() { ImagePlus imp = WindowManager.getCurrentImage(); if (imp!=null) { showAllCheckbox.setState(true); labelsCheckbox.setState(true); showAll(LABELS); } try { IJ.run("Labels..."); } catch(Exception e) {} Overlay defaultOverlay = OverlayLabels.createOverlay(); Prefs.useNamesAsLabels = defaultOverlay.getDrawNames(); }