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(...) method
    static 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(...) method
    void 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 interface ij.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 image
      left - the number of pixels to add to the left of the image
      right - the number of pixels to add to the right of the image
      top - the number of pixels to add on top of the image
      bottom - the number of pixels to add at the bottom of the image
      border - 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(...) method
      Adds the specified number of pixels around the input image, and returns the resulting image.
      Parameters:
      image - the input image
      left - the number of pixels to add to the left of the image
      right - the number of pixels to add to the right of the image
      top - the number of pixels to add on top of the image
      bottom - the number of pixels to add at the bottom of the image
      border - 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(...) method
      Adds the specified number of pixels around the input image, and returns the resulting image.
      Parameters:
      image - the input image stack
      left - the number of voxels to add to the left
      right - the number of voxels to add to the right
      top - the number of voxels to add on top of the stack
      bottom - the number of voxels to add at the bottom of the stack
      front - the number of slices to add in front of the stack
      back - the number of slices to add behind the stack
      border - 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)