Class MirroringBorder

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

public class MirroringBorder
extends java.lang.Object
implements BorderManager
Periodic border that considers image is mirrored 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
    MirroringBorder​(ij.process.ImageProcessor image)
    Creates a new Mirroring 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

    • MirroringBorder

      public MirroringBorder​(ij.process.ImageProcessor image)
      Creates a new Mirroring 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