Enum 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
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FLAT  
      STACK  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static MergeBehavior getDefault()
      Retrieves the default MergeBehavior.
      abstract RenderedImage process​(RenderedImage[] sources, double[] backgroundValues, double[][] inputThreshold, PlanarImage[] sourceAlpha, ROI[] sourceROI, MosaicType mosaicType, RenderingHints localHints)
      Process input RenderedImage 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.
      • Methods inherited from class Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        NullPointerException - 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 input RenderedImage to produce the output of this mosaic.
        Returns:
        a RenderedImage.
      • valuesAsStrings

        public static String[] valuesAsStrings()
        Retrieves the possible values as Strings.
        Returns:
        an arrays of String that contains the representation of each value.