Package inra.ijpb.data.border
Class ReplicatedBorder3D
java.lang.Object
inra.ijpb.data.border.ReplicatedBorder3D
- All Implemented Interfaces:
BorderManager3D
public class ReplicatedBorder3D extends java.lang.Object implements BorderManager3D
Assess pixel outside image bounds have same value as the closest pixel on
image border.
- Author:
- David Legland
-
Nested Class Summary
Nested classes/interfaces inherited from interface inra.ijpb.data.border.BorderManager3D
BorderManager3D.Type -
Constructor Summary
Constructors Constructor Description ReplicatedBorder3D(ij.ImageStack image)Creates a new Replicating Border Manager -
Method Summary
Modifier and Type Method Description intget(int x, int y, int z)Forces both of x and y to be between 0 and the corresponding image size, and returns the corresponding image value.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface inra.ijpb.data.border.BorderManager3D
addBorders
-
Constructor Details
-
ReplicatedBorder3D
public ReplicatedBorder3D(ij.ImageStack image)Creates a new Replicating Border Manager- Parameters:
image- the image to expand
-
-
Method Details
-
get
public int get(int x, int y, int z)Forces both of x and y to be between 0 and the corresponding image size, and returns the corresponding image value.- Specified by:
getin interfaceBorderManager3D- Parameters:
x- column index of the positiony- row index of the positionz- slice index of the position- Returns:
- border corrected value
- See Also:
BorderManager.get(int, int)
-