Package org.geotools.gce.imagemosaic
Enum MergeBehavior
- Object
-
- Enum<MergeBehavior>
-
- MergeBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<MergeBehavior>
public enum MergeBehavior extends Enum<MergeBehavior>
This class is responsible for implementing the strategies for the mosaicking which can be a flat merge of band-stacking merge.- Author:
- Simone Giannecchini, GeoSolutions TODO check more conditions to use
MosaicDescriptor
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MergeBehavior
getDefault()
Retrieves the defaultMergeBehavior
.abstract RenderedImage
process(RenderedImage[] sources, double[] backgroundValues, double[][] inputThreshold, PlanarImage[] sourceAlpha, ROI[] sourceROI, MosaicType mosaicType, RenderingHints localHints)
Process inputRenderedImage
to produce the output of this mosaic.static MergeBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static MergeBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static String[]
valuesAsStrings()
Retrieves the possible values as Strings.
-
-
-
Enum Constant Detail
-
STACK
public static final MergeBehavior STACK
-
FLAT
public static final MergeBehavior FLAT
-
MAX
public static final MergeBehavior MAX
-
MIN
public static final MergeBehavior MIN
-
-
Method Detail
-
values
public static MergeBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MergeBehavior c : MergeBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MergeBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
process
public abstract RenderedImage process(RenderedImage[] sources, double[] backgroundValues, double[][] inputThreshold, PlanarImage[] sourceAlpha, ROI[] sourceROI, MosaicType mosaicType, RenderingHints localHints)
Process inputRenderedImage
to produce the output of this mosaic.- Returns:
- a
RenderedImage
.
-
getDefault
public static MergeBehavior getDefault()
Retrieves the defaultMergeBehavior
.- Returns:
- the default
MergeBehavior
.
-
-