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.

    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

    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

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

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

    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

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

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

    Definition Classes
    AnyRef → Any
  14. 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

    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

    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

    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

    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

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

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

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

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

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

  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped