java.lang.Object
ij.plugin.Duplicator
- All Implemented Interfaces:
PlugIn
,ItemListener
,TextListener
,EventListener
This plugin implements the Image/Duplicate command.
// test script img1 = IJ.getImage(); img2 = new Duplicator().run(img1); //img2 = new Duplicator().run(img1,1,10); img2.show();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy the current image or stack slice, cropped if there is a selection.static Overlay
cropOverlay
(Overlay overlay, Rectangle bounds) static void
void
Returns a copy of the image, stack or hyperstack contained in the specified ImagePlus.Returns a new stack containing a subrange of the specified stack.Returns a new hyperstack containing a possibly reduced version of the input image.void
This method is called when the plugin is loaded.void
-
Constructor Details
-
Duplicator
public Duplicator()
-
-
Method Details
-
run
Description copied from interface:PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt. -
run
Returns a copy of the image, stack or hyperstack contained in the specified ImagePlus.- See Also:
-
crop
Returns a copy the current image or stack slice, cropped if there is a selection.- See Also:
-
run
Returns a new stack containing a subrange of the specified stack. -
run
public ImagePlus run(ImagePlus imp, int firstC, int lastC, int firstZ, int lastZ, int firstT, int lastT) Returns a new hyperstack containing a possibly reduced version of the input image. -
cropOverlay
-
textValueChanged
- Specified by:
textValueChanged
in interfaceTextListener
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
ignoreNextSelection
public static void ignoreNextSelection()
-