Class ConstantBorder3D

java.lang.Object
inra.ijpb.data.border.ConstantBorder3D
All Implemented Interfaces:
BorderManager3D

public class ConstantBorder3D
extends java.lang.Object
implements BorderManager3D
Returns either image pixel when position is inside image bounds, or a constant value when position is outside of image bounds.
Author:
David Legland
  • Nested Class Summary

    Nested classes/interfaces inherited from interface inra.ijpb.data.border.BorderManager3D

    BorderManager3D.Type
  • Constructor Summary

    Constructors
    Constructor Description
    ConstantBorder3D​(ij.ImageStack image, int value)
    Creates a new Constant Border Manager
  • Method Summary

    Modifier and Type Method Description
    int get​(int x, int y, int z)
    Returns either image pixel when position is inside image bounds, or a constant value when position is outside of image bounds.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface inra.ijpb.data.border.BorderManager3D

    addBorders
  • Constructor Details

    • ConstantBorder3D

      public ConstantBorder3D​(ij.ImageStack image, int value)
      Creates a new Constant Border Manager
      Parameters:
      image - the image to expand
      value - the value used to expand the borders.
  • Method Details

    • get

      public int get​(int x, int y, int z)
      Returns either image pixel when position is inside image bounds, or a constant value when position is outside of image bounds.
      Specified by:
      get in interface BorderManager3D
      Parameters:
      x - column index of the position
      y - row index of the position
      z - slice index of the position
      Returns:
      border corrected value
      See Also:
      BorderManager.get(int, int)