ImageUtils

open class ImageUtils

Utility class for manipulating images.

Functions

Link copied to clipboard
open fun convertYUV420SPToARGB8888(    input: Array<Byte>,     width: Int,     height: Int,     output: Array<Int>)
Link copied to clipboard
open fun convertYUV420ToARGB8888(    yData: Array<Byte>,     uData: Array<Byte>,     vData: Array<Byte>,     width: Int,     height: Int,     yRowStride: Int,     uvRowStride: Int,     uvPixelStride: Int,     out: Array<Int>)
Link copied to clipboard
open fun getTransformationMatrix(    srcWidth: Int,     srcHeight: Int,     dstWidth: Int,     dstHeight: Int,     applyRotation: Int,     maintainAspectRatio: Boolean): Matrix
Returns a transformation matrix from one reference frame into another.
Link copied to clipboard
open fun getYUVByteSize(width: Int, height: Int): Int
Link copied to clipboard
open fun saveBitmap(bitmap: Bitmap)
open fun saveBitmap(bitmap: Bitmap, filename: String)
Saves a Bitmap object to disk for analysis.