Object

org.apache.mxnet.javaapi

Image

Related Doc: package javaapi

Permalink

object Image

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Image
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def drawBoundingBox(src: BufferedImage, coordinate: List[Map[String, Integer]], names: List[String]): Unit

    Permalink

    Draw bounding boxes on the image

    Draw bounding boxes on the image

    src

    buffered image to draw on

    coordinate

    Contains Map of xmin, xmax, ymin, ymax corresponding to top-left and down-right points

    names

    The name set of the bounding box

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

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

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

    Permalink
    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

    Permalink

    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[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def imDecode(inputStream: InputStream): NDArray

    Permalink

    Same imageDecode with InputStream

    Same imageDecode with InputStream

    inputStream

    the inputStream of the image

    returns

    NDArray in HWC format with DType DType.UInt8

  14. def imDecode(inputStream: InputStream, flag: Int, toRGB: Boolean): NDArray

    Permalink

    Same imageDecode with InputStream

    Same imageDecode with InputStream

    inputStream

    the inputStream of the image

    flag

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

    toRGB

    Whether to convert decoded image

    returns

    NDArray in HWC format with DType DType.UInt8

  15. def imDecode(buf: Array[Byte]): NDArray

    Permalink

    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

    returns

    NDArray in HWC format with DType DType.UInt8

  16. def imDecode(buf: Array[Byte], flag: Int, toRGB: Boolean): NDArray

    Permalink

    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).

    toRGB

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

    returns

    NDArray in HWC format with DType DType.UInt8

  17. def imRead(filename: String): NDArray

    Permalink

    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.

    returns

    org.apache.mxnet.NDArray in HWC format with DType DType.UInt8

  18. def imRead(filename: String, flag: Int, toRGB: Boolean): NDArray

    Permalink

    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).

    toRGB

    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 with DType DType.UInt8

  19. def imResize(src: NDArray, w: Int, h: Int): NDArray

    Permalink

    Resize image with OpenCV.

    Resize image with OpenCV.

    src

    source image in NDArray

    w

    Width of resized image.

    h

    Height of resized image.

    returns

    org.apache.mxnet.NDArray

  20. def imResize(src: NDArray, w: Int, h: Int, interp: Integer): NDArray

    Permalink

    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

  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

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

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

    Permalink

    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

  27. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped