org.apache.mxnet

Image

Related Doc: package mxnet

object Image

Image API of Scala package enable OpenCV feature

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Image
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def copyMakeBorder(src: NDArray, top: Int, bot: Int, left: Int, right: Int, typeOf: Option[Int] = None, value: Option[Double] = None, values: Option[Any] = None, out: Option[NDArray] = None): NDArray

    Pad image border with OpenCV.

    Pad image border with OpenCV.

    src

    source image

    top

    Top margin.

    bot

    Bottom margin.

    left

    Left margin.

    right

    Right margin.

    typeOf

    Filling type (default=cv2.BORDER_CONSTANT).

    value

    (Deprecated! Use values instead.) Fill with single value.

    values

    Fill with value(RGB[A] or gray), up to 4 channels.

    returns

    org.apache.mxnet.NDArray

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fixedCrop(src: NDArray, x0: Int, y0: Int, w: Int, h: Int): NDArray

    Do a fixed crop on the image

    Do a fixed crop on the image

    src

    Src image in NDArray

    x0

    starting x point

    y0

    starting y point

    w

    width of the image

    h

    height of the image

    returns

    cropped NDArray

  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. def imDecode(inputStream: InputStream, flag: Int = 1, to_rgb: Boolean = true, out: Option[NDArray] = None): NDArray

    Same imageDecode with InputStream

    Same imageDecode with InputStream

    inputStream

    the inputStream of the image

    returns

    NDArray in HWC format

  14. def imDecode(buf: Array[Byte], flag: Int, to_rgb: Boolean, out: Option[NDArray]): NDArray

    Decode image with OpenCV.

    Decode image with OpenCV. Note: return image in RGB by default, instead of OpenCV's default BGR.

    buf

    Buffer containing binary encoded image

    flag

    Convert decoded image to grayscale (0) or color (1).

    to_rgb

    Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).

    returns

    NDArray in HWC format

  15. def imRead(filename: String, flag: Option[Int] = None, to_rgb: Option[Boolean] = None, out: Option[NDArray] = None): NDArray

    Read and decode image with OpenCV.

    Read and decode image with OpenCV. Note: return image in RGB by default, instead of OpenCV's default BGR.

    filename

    Name of the image file to be loaded.

    flag

    Convert decoded image to grayscale (0) or color (1).

    to_rgb

    Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).

    returns

    org.apache.mxnet.NDArray in HWC format

  16. def imResize(src: NDArray, w: Int, h: Int, interp: Option[Int] = None, out: Option[NDArray] = None): NDArray

    Resize image with OpenCV.

    Resize image with OpenCV.

    src

    source image in NDArray

    w

    Width of resized image.

    h

    Height of resized image.

    interp

    Interpolation method (default=cv2.INTER_LINEAR).

    returns

    org.apache.mxnet.NDArray

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toImage(src: NDArray): BufferedImage

    Convert a NDArray image to a real image The time cost will increase if the image resolution is big

    Convert a NDArray image to a real image The time cost will increase if the image resolution is big

    src

    Source image file in RGB

    returns

    Buffered Image

  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped