public class ConstantBorder extends Object implements BorderManager
BorderManager.Type| Constructor and Description |
|---|
ConstantBorder(ij.process.ImageProcessor image,
float value)
Creates a new Constant Border Manager
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(int x,
int y)
Returns either image pixel when position is inside image bounds, or a
constant value when position is outside of image bounds.
|
float |
getf(int x,
int y)
Returns either image pixel when position is inside image bounds, or a
constant value when position is outside of image bounds.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBorderspublic ConstantBorder(ij.process.ImageProcessor image,
float value)
image - the image to expandvalue - the value used to expand the borders.public int get(int x,
int y)
get in interface BorderManagerx - column index of the positiony - row index of the positionBorderManager.get(int, int)public float getf(int x,
int y)
getf in interface BorderManagerx - column index of the positiony - row index of the positionBorderManager.getf(int, int)Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.