object OpenCVMat extends Serializable
- Alphabetic
- By Inheritance
- OpenCVMat
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromFloats(floats: Array[Float], height: Int, width: Int, channel: Int = 3): OpenCVMat
Convert float array(pixels) to OpenCV mat
Convert float array(pixels) to OpenCV mat
- floats
float array that represents pixels
- height
image height
- width
image width
- returns
image in mat
-
def
fromImageBytes(fileContent: Array[Byte]): OpenCVMat
convert image file in bytes to opencv mat
convert image file in bytes to opencv mat
- fileContent
bytes from an image file
- returns
opencv mat
-
def
fromPixelsBytes(pixels: Array[Byte], height: Int, width: Int, channel: Int = 3): OpenCVMat
convert pixel bytes to OpenCVMat
convert pixel bytes to OpenCVMat
- pixels
pixels in byte array
- height
image height
- width
image width
-
def
fromTensor(tensor: Tensor[Float], format: String = "HWC"): OpenCVMat
convert float tensor to OpenCVMat, Note that if you want to convert the tensor to BGR image, the element should be in range [0, 255]
convert float tensor to OpenCVMat, Note that if you want to convert the tensor to BGR image, the element should be in range [0, 255]
- tensor
tensor that represent an image
- format
"HWC" or "CHW", "HWC" means (height, width, channel) order, "CHW" means (channel, height, width) order
- returns
OpenCVMat
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
imencode(mat: OpenCVMat, encoding: String = "png"): Array[Byte]
convert opencv mat to image bytes
convert opencv mat to image bytes
- mat
opencv mat
- encoding
encoding type
- returns
bytes that represent an image
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
read(path: String): OpenCVMat
read local image path as opencv mat
read local image path as opencv mat
- path
local image path
- returns
mat
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBytePixels(input: Mat, buffer: Array[Byte] = null): (Array[Byte], Int, Int, Int)
convert mat to byte array that represents pixels
convert mat to byte array that represents pixels
- input
opencv mat
-
def
toFloatPixels(input: Mat, buffer: Array[Float] = null): (Array[Float], Int, Int, Int)
convert mat to float array that represents pixels
convert mat to float array that represents pixels
- input
mat
- buffer
float array
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )