Package inra.ijpb.data.border
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
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:BorderManagerReturns the value corresponding to (x,y) position. Position can be outside original image bounds.- Specified by:
getin interfaceBorderManager- Parameters:
x- column index of the positiony- 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:BorderManagerReturns the floating-point value corresponding to (x,y) position. Position can be outside original image bounds.- Specified by:
getfin interfaceBorderManager- Parameters:
x- column index of the positiony- row index of the position- Returns:
- border corrected value
- See Also:
BorderManager.getf(int, int)
-