Object

org.apache.mxnet

Image

Related Doc: package mxnet

Permalink

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

    Permalink

    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.

    out

    NDArray to store the output

    returns

    org.apache.mxnet.NDArray

  7. def drawBoundingBox(src: BufferedImage, coordinate: Array[Map[String, Int]], names: Option[Array[String]] = None, stroke: Option[Int] = Some(3), fontSizeMult: Option[Float] = Some(1.0f), transparency: Option[Float] = Some(1.0f)): Unit

    Permalink

    Method to draw bounding boxes for an image

    Method to draw bounding boxes for an image

    src

    Source of the buffered image

    coordinate

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

    names

    The name set of the bounding box

    stroke

    Thickness of the bounding box

    fontSizeMult

    Font size multiplier

    transparency

    Transparency of the bounding box

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. 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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def imDecode(inputStream: InputStream, flag: Int = 1, to_rgb: Boolean = true, out: Option[NDArray] = None): 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).

    to_rgb

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

    out

    NDArray to store the output

    returns

    NDArray in HWC format with DType DType.UInt8

  15. def imDecode(buf: Array[Byte], flag: Int, to_rgb: Boolean, out: Option[NDArray]): 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).

    to_rgb

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

    out

    NDArray to store the output

    returns

    NDArray in HWC format with DType DType.UInt8

  16. def imRead(filename: String, flag: Option[Int] = None, to_rgb: Option[Boolean] = None, out: Option[NDArray] = None): 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).

    to_rgb

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

    out

    NDArray to store the output

    returns

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

  17. def imResize(src: NDArray, w: Int, h: Int, interp: Option[Int] = None, out: Option[NDArray] = None): 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).

    out

    NDArray to store the output

    returns

    org.apache.mxnet.NDArray

  18. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. 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

  24. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped