/** Set true to scale to 0-255 when converting short to byte or float to byte and to 0-65535 when converting float to short. */ public static void setDoScaling(boolean scaleConversions) { doScaling = scaleConversions; IJ.register(ImageConverter.class); }
/** Sets the y-axis min and max. Specify (0,0) to autoscale. */ public static void setMinAndMax(double min, double max) { fixedMin = min; fixedMax = max; IJ.register(ProfilePlot.class); }
public int setup(String arg, ImagePlus imp) { this.imp = imp; IJ.register(ScaleDialog.class); return DOES_ALL+NO_CHANGES; }
public int setup(String arg, ImagePlus imp) { this.imp = imp; IJ.register(ScaleDialog.class); return DOES_ALL+NO_CHANGES; }
/** Set true to scale to 0-255 when converting short to byte or float to byte and to 0-65535 when converting float to short. */ public static void setDoScaling(boolean scaleConversions) { doScaling = scaleConversions; IJ.register(ImageConverter.class); }
/** Sets the y-axis min and max. Specify (0,0) to autoscale. */ public static void setMinAndMax(double min, double max) { fixedMin = min; fixedMax = max; IJ.register(ProfilePlot.class); }
/** Sets the Swing look and feel to the system look and feel (Windows only). */ public static void setSystemLookAndFeel() { if (lookAndFeelSet || !IJ.isWindows()) return; try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Throwable t) {} lookAndFeelSet = true; IJ.register(Java2.class); }
public int setup(String arg, ImagePlus imp) { this.arg = arg; this.imp = imp; IJ.register(ImageMath.class); if (!arg.equals("macro") || Interpreter.getInstance()==null) flags |= PARALLELIZE_STACKS; return flags; }
public int setup(String arg, ImagePlus imp) { if (arg.equals("setup")) {pageSetup(); return DONE;} this.imp = imp; IJ.register(Printer.class); return DOES_ALL+NO_CHANGES; }
public int setup(String arg, ImagePlus imp) { if (arg.equals("setup")) {pageSetup(); return DONE;} this.imp = imp; IJ.register(Printer.class); return DOES_ALL+NO_CHANGES; }
public int setup(String arg, ImagePlus imp) { this.arg = arg; this.imp = imp; IJ.register(ImageMath.class); if (!arg.equals("macro") || Interpreter.getInstance()==null) flags |= PARALLELIZE_STACKS; return flags; }
/** Sets the Swing look and feel to the system look and feel (Windows only). */ public static void setSystemLookAndFeel() { if (lookAndFeelSet || !IJ.isWindows()) return; try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Throwable t) {} lookAndFeelSet = true; IJ.register(Java2.class); }
public int setup(String arg, ImagePlus imp) { this.arg = arg; IJ.register(Binary.class); doOptions = arg.equals("options"); if (doOptions) { if (imp == null) return NO_IMAGE_REQUIRED; //options dialog does not need a (suitable) image ImageProcessor ip = imp.getProcessor(); if (!(ip instanceof ByteProcessor)) return NO_IMAGE_REQUIRED; if (!((ByteProcessor)ip).isBinary()) return NO_IMAGE_REQUIRED; } return flags; }
public int setup(String arg, ImagePlus imp) { this.arg = arg; IJ.register(Binary.class); doOptions = arg.equals("options"); if (doOptions) { if (imp == null) return NO_IMAGE_REQUIRED; //options dialog does not need a (suitable) image ImageProcessor ip = imp.getProcessor(); if (!(ip instanceof ByteProcessor)) return NO_IMAGE_REQUIRED; if (!((ByteProcessor)ip).isBinary()) return NO_IMAGE_REQUIRED; } return flags; }
public int setup(String arg, ImagePlus imp) { IJ.register(Debayer_Image.class); if (IJ.versionLessThan("1.32c")) return DONE; imp.unlock(); this.imp = imp; this.algorithm = Integer.parseInt(arg); return DOES_16; }
public void run(String arg) { if (arg.equals("install") || arg.equals("install2")) installHotkey(arg); else if (arg.equals("remove")) removeHotkey(); else if (arg.equals("list")) listCommands(); else { Executer e = new Executer(arg); e.run(); } IJ.register(Hotkeys.class); }
@Override public void run(final String arg) { IJ.register(Make_Montage.class); final ImagePlus imp = WindowManager.getCurrentImage(); if (imp == null) { IJ.noImage(); return; } makeMontage(imp); }
@Override public int showDialog( final ImagePlus imp, final String command, final PlugInFilterRunner pfr ) { final GenericDialog gd = new GenericDialog( dialogTitle() ); gd.addNumericField( "Block_radius_x : ", blockRadiusX, 0, 6, "pixels" ); gd.addNumericField( "Block_radius_y : ", blockRadiusY, 0, 6, "pixels" ); gd.addPreviewCheckbox( pfr ); gd.addDialogListener( this ); init( imp ); gd.showDialog(); if ( gd.wasCanceled() ) return DONE; IJ.register( this.getClass() ); return IJ.setupDialog( imp, flags ); }
public void run(String arg) { ImagePlus imp = WindowManager.getCurrentImage(); if (imp==null) {IJ.noImage(); return;} ImageStack stack = imp.getStack(); if (stack.getSize()==1) {IJ.error("Stack Required"); return;} if (!showDialog(stack)) return; removeSlices(stack, first, last, inc); imp.setStack(null, stack); IJ.register(Slice_Remover.class); }
public void run(String arg) { if (!showDialog()) return; if (imp1.getType()!=imp2.getType()) {error(); return;} ImageStack stack1 = imp1.getStack(); ImageStack stack2 = imp2.getStack(); ImageStack stack3 = interleave(stack1, stack2); new ImagePlus("Combined Stacks", stack3).show(); IJ.register(Stack_Interleaver.class); }