Enum Class VipsInteresting

java.lang.Object
java.lang.Enum<VipsInteresting>
app.photofox.vipsffm.enums.VipsInteresting
All Implemented Interfaces:
VEnum, VNamedEnum, Serializable, Comparable<VipsInteresting>, Constable

public enum VipsInteresting extends Enum<VipsInteresting> implements VNamedEnum

Pick the algorithm vips uses to decide image "interestingness". This is used by VImage.smartcrop(int, int, app.photofox.vipsffm.VipsOption...), for example, to decide what parts of the image to keep.

INTERESTING_NONE and INTERESTING_LOW mean the same -- the crop is positioned at the top or left. INTERESTING_HIGH positions at the bottom or right.

See also: VImage.smartcrop(int, int, app.photofox.vipsffm.VipsOption...).

  • Enum Constant Details

    • INTERESTING_NONE

      public static final VipsInteresting INTERESTING_NONE

      do nothing

    • INTERESTING_CENTRE

      public static final VipsInteresting INTERESTING_CENTRE

      just take the centre

    • INTERESTING_ENTROPY

      public static final VipsInteresting INTERESTING_ENTROPY

      use an entropy measure

    • INTERESTING_ATTENTION

      public static final VipsInteresting INTERESTING_ATTENTION

      look for features likely to draw human attention

    • INTERESTING_LOW

      public static final VipsInteresting INTERESTING_LOW

      position the crop towards the low coordinate

    • INTERESTING_HIGH

      public static final VipsInteresting INTERESTING_HIGH

      position the crop towards the high coordinate

    • INTERESTING_ALL

      public static final VipsInteresting INTERESTING_ALL

      everything is interesting

    • INTERESTING_LAST

      public static final VipsInteresting INTERESTING_LAST
  • Field Details

  • Method Details

    • values

      public static VipsInteresting[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VipsInteresting valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Specified by:
      getName in interface VNamedEnum
    • getNickname

      public String getNickname()
      Specified by:
      getNickname in interface VNamedEnum
    • getRawValue

      public int getRawValue()
      Specified by:
      getRawValue in interface VEnum