Class PeriodicBorder

java.lang.Object
inra.ijpb.data.border.PeriodicBorder
All Implemented Interfaces:
BorderManager

public class PeriodicBorder
extends java.lang.Object
implements BorderManager
Periodic border that considers image is repeated indefinitely in all directions.
Author:
David Legland
  • Nested Class Summary

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

    BorderManager.Type
  • Constructor Summary

    Constructors
    Constructor Description
    PeriodicBorder​(ij.process.ImageProcessor image)
    Creates a new Periodic Border Manager
  • Method Summary

    Modifier and Type Method Description
    int get​(int x, int y)
    Returns the value corresponding to (x,y) position.
    float getf​(int x, int y)
    Returns the floating-point value corresponding to (x,y) position.

    Methods inherited from class java.lang.Object

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

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

    addBorders
  • Constructor Details

    • PeriodicBorder

      public PeriodicBorder​(ij.process.ImageProcessor image)
      Creates a new Periodic Border Manager
      Parameters:
      image - the image to expand
  • Method Details

    • get

      public int get​(int x, int y)
      Description copied from interface: BorderManager
      Returns the value corresponding to (x,y) position. Position can be outside original image bounds.
      Specified by:
      get in interface BorderManager
      Parameters:
      x - column index of the position
      y - row index of the position
      Returns:
      border corrected value
      See Also:
      BorderManager.get(int, int)
    • getf

      public float getf​(int x, int y)
      Description copied from interface: BorderManager
      Returns the floating-point value corresponding to (x,y) position. Position can be outside original image bounds.
      Specified by:
      getf in interface BorderManager
      Parameters:
      x - column index of the position
      y - row index of the position
      Returns:
      border corrected value
      See Also:
      BorderManager.getf(int, int)