Package inra.ijpb.plugins
Class ExtendBordersPlugin
java.lang.Object
inra.ijpb.plugins.ExtendBordersPlugin
- All Implemented Interfaces:
ij.plugin.PlugIn
public class ExtendBordersPlugin
extends java.lang.Object
implements ij.plugin.PlugIn
Pads the current image with the specified value or color. Works for 2D or 3D
images. In the latter case, it is possible to specify the number of slices to
add in front of and behind the stack.
- Author:
- David Legland
-
Constructor Summary
Constructors Constructor Description ExtendBordersPlugin()
-
Method Summary
Modifier and Type Method Description ij.ImagePlus
exec(ij.ImagePlus image, int left, int right, int top, int bottom, BorderManager border)
Deprecated.static ij.ImageStack
process(ij.ImageStack image, int left, int right, int top, int bottom, int front, int back, BorderManager3D border)
Deprecated.replaced by inra.ijpb.data.border.BorderManager3D.addBorders(...) methodstatic ij.process.ImageProcessor
process(ij.process.ImageProcessor image, int left, int right, int top, int bottom, BorderManager border)
Deprecated.replaced by inra.ijpb.data.border.BorderManager.addBorders(...) methodvoid
run(java.lang.String arg)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExtendBordersPlugin
public ExtendBordersPlugin()
-
-
Method Details
-
run
public void run(java.lang.String arg)- Specified by:
run
in interfaceij.plugin.PlugIn
-
exec
@Deprecated public ij.ImagePlus exec(ij.ImagePlus image, int left, int right, int top, int bottom, BorderManager border)Deprecated.run the plugin (deprecated).- Parameters:
image
- the input imageleft
- the number of pixels to add to the left of the imageright
- the number of pixels to add to the right of the imagetop
- the number of pixels to add on top of the imagebottom
- the number of pixels to add at the bottom of the imageborder
- an instance of BorderManager that specifies the value of pixels to be added- Returns:
- a new image with extended borders
-
process
@Deprecated public static final ij.process.ImageProcessor process(ij.process.ImageProcessor image, int left, int right, int top, int bottom, BorderManager border)Deprecated.replaced by inra.ijpb.data.border.BorderManager.addBorders(...) methodAdds the specified number of pixels around the input image, and returns the resulting image.- Parameters:
image
- the input imageleft
- the number of pixels to add to the left of the imageright
- the number of pixels to add to the right of the imagetop
- the number of pixels to add on top of the imagebottom
- the number of pixels to add at the bottom of the imageborder
- an instance of BorderManager that specifies the value of pixels to be added- Returns:
- a new image with extended borders
- See Also:
BorderManager.addBorders(ImageProcessor, int, int, int, int)
-
process
@Deprecated public static final ij.ImageStack process(ij.ImageStack image, int left, int right, int top, int bottom, int front, int back, BorderManager3D border)Deprecated.replaced by inra.ijpb.data.border.BorderManager3D.addBorders(...) methodAdds the specified number of pixels around the input image, and returns the resulting image.- Parameters:
image
- the input image stackleft
- the number of voxels to add to the leftright
- the number of voxels to add to the righttop
- the number of voxels to add on top of the stackbottom
- the number of voxels to add at the bottom of the stackfront
- the number of slices to add in front of the stackback
- the number of slices to add behind the stackborder
- an instance of BorderManager that specifies the value of pixels to be added- Returns:
- a new image with extended borders
- See Also:
BorderManager3D.addBorders(ImageStack, int, int, int, int, int, int)
-