Package inra.ijpb.data.border
Interface BorderManager3D
- All Known Implementing Classes:
ConstantBorder3D
,MirroringBorder3D
,PeriodicBorder3D
,ReplicatedBorder3D
public interface BorderManager3D
Manages borders of an image, by providing methods for accessing values also
for position out of image bounds.
ImageProcessor image = ...
BorderManager bm = new ReplicatedBorder(image);
int value = bm.get(-5, -10);
- Author:
- David Legland
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BorderManager3D.Type
A set of pre-defined border managers stored in an enumeration. -
Method Summary
Modifier and Type Method Description default ij.ImageStack
addBorders(ij.ImageStack image, int left, int right, int top, int bottom, int front, int back)
Adds the specified number of voxels around the input image, and returns the resulting image.int
get(int x, int y, int z)
Returns the value corresponding to (x,y) position.
-
Method Details
-
addBorders
default ij.ImageStack addBorders(ij.ImageStack image, int left, int right, int top, int bottom, int front, int back)Adds the specified number of voxels around the input image, and returns the resulting image.- Parameters:
image
- the input image stackleft
- the number of voxels to add to the leftright
- the number of voxels to add to the righttop
- the number of voxels to add on top of the stackbottom
- the number of voxels to add at the bottom of the stackfront
- the number of slices to add in front of the stackback
- the number of slices to add behind the stack- Returns:
- a new image with extended borders
-
get
int get(int x, int y, int z)Returns the value corresponding to (x,y) position. Position can be outside original image bounds.- Parameters:
x
- column index of the positiony
- row index of the positionz
- slice index of the position- Returns:
- border corrected value
-