public enum MatrixEdgeMode extends Enum<MatrixEdgeMode>
"Determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.
'duplicate' indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.
Original N-by-M image, where m=M-1 and n=N-1: 11 12 ... 1m 1M 21 22 ... 2m 2M .. .. ... .. .. n1 n2 ... nm nM N1 N2 ... Nm NM Extended by two pixels using 'duplicate': 11 11 11 12 ... 1m 1M 1M 1M 11 11 11 12 ... 1m 1M 1M 1M 11 11 11 12 ... 1m 1M 1M 1M 21 21 21 22 ... 2m 2M 2M 2M .. .. .. .. ... .. .. .. .. n1 n1 n1 n2 ... nm nM nM nM N1 N1 N1 N2 ... Nm NM NM NM N1 N1 N1 N2 ... Nm NM NM NM N1 N1 N1 N2 ... Nm NM NM NM'wrap' indicates that the input image is extended by taking the color values from the opposite edge of the image.
Extended by two pixels using 'wrap': nm nM n1 n2 ... nm nM n1 n2 Nm NM N1 N2 ... Nm NM N1 N2 1m 1M 11 12 ... 1m 1M 11 12 2m 2M 21 22 ... 2m 2M 21 22 .. .. .. .. ... .. .. .. .. nm nM n1 n2 ... nm nM n1 n2 Nm NM N1 N2 ... Nm NM N1 N2 1m 1M 11 12 ... 1m 1M 11 12 2m 2M 21 22 ... 2m 2M 21 22'none' indicates that the input image is extended with pixel values of zero for R, G, B and A."
Modifier and Type | Method and Description |
---|---|
static MatrixEdgeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatrixEdgeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatrixEdgeMode duplicate
public static final MatrixEdgeMode wrap
public static final MatrixEdgeMode none
public static MatrixEdgeMode[] values()
for (MatrixEdgeMode c : MatrixEdgeMode.values()) System.out.println(c);
public static MatrixEdgeMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null