Class MPSImageEdgeMode


  • public final class MPSImageEdgeMode
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Clamp
      Out of bound pixels are clamped to nearest edge pixel
      static long Constant
      Out of bound pixels are filled with a constant value defined by the filter.
      static long Mirror
      Out of bound pixels are mirrored wrt. the nearest edge pixel center - ie. the edge of the image is not repeated.
      static long MirrorWithEdge
      Out of bound pixels are mirrored wrt. the nearest edge pixel nearest border - ie. the edge of the image is repeated.
      static long Zero
      Out of bound pixels are (0,0,0,1) for image with pixel format without alpha channel and (0,0,0,0) for image with pixel format that has an alpha channel
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Zero

        public static final long Zero
        Out of bound pixels are (0,0,0,1) for image with pixel format without alpha channel and (0,0,0,0) for image with pixel format that has an alpha channel
        See Also:
        Constant Field Values
      • Clamp

        public static final long Clamp
        Out of bound pixels are clamped to nearest edge pixel
        See Also:
        Constant Field Values
      • Mirror

        public static final long Mirror
        Out of bound pixels are mirrored wrt. the nearest edge pixel center - ie. the edge of the image is not repeated. NOTE: The only filter that currently supports this mode is @ref MPSNNPad - using this with other filters results in undefined behavior.
        See Also:
        Constant Field Values
      • MirrorWithEdge

        public static final long MirrorWithEdge
        Out of bound pixels are mirrored wrt. the nearest edge pixel nearest border - ie. the edge of the image is repeated. NOTE: The only filter that currently supports this mode is @ref MPSNNPad - using this with other filters results in undefined behavior.
        See Also:
        Constant Field Values
      • Constant

        public static final long Constant
        Out of bound pixels are filled with a constant value defined by the filter. NOTE: The only filter that currently supports this mode is @ref MPSNNPad - using this with other filters results in undefined behavior.
        See Also:
        Constant Field Values