Package com.appliedrec.verid.core2
Class ImageUtils
- java.lang.Object
-
- com.appliedrec.verid.core2.ImageUtils
-
public class ImageUtils extends java.lang.Object
Created by pauldriegen on 2016-11-23.
-
-
Constructor Summary
Constructors Constructor Description ImageUtils(android.content.Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description android.graphics.Bitmap
bitmapFromImage(Image image)
android.graphics.Bitmap
bitmapFromImageSource(IImage<?> source)
byte[]
bitmapToGrayscale(android.graphics.Bitmap bitmap, int orientation)
byte[]
bitmapToGrayscale(android.graphics.Bitmap bitmap, int orientation, float rWeight, float gWeight, float bWeight)
BrightnessContrastSharpness
brightnessContrastAndSharpnessOfImage(byte[] imageBuffer, int width, int height)
static android.graphics.Bitmap
cropImageToFace(android.graphics.Bitmap image, Face face)
static android.graphics.Matrix
getMatrixFromExifOrientation(int exifOrientation)
double
sharpnessOfImage(byte[] imageBuffer, int width, int height)
-
-
-
Method Detail
-
cropImageToFace
public static android.graphics.Bitmap cropImageToFace(android.graphics.Bitmap image, Face face)
-
bitmapFromImage
public android.graphics.Bitmap bitmapFromImage(Image image)
-
bitmapFromImageSource
public android.graphics.Bitmap bitmapFromImageSource(IImage<?> source) throws VerIDCoreException
- Throws:
VerIDCoreException
-
bitmapToGrayscale
public byte[] bitmapToGrayscale(android.graphics.Bitmap bitmap, int orientation)
-
bitmapToGrayscale
public byte[] bitmapToGrayscale(android.graphics.Bitmap bitmap, int orientation, float rWeight, float gWeight, float bWeight)
-
sharpnessOfImage
public double sharpnessOfImage(byte[] imageBuffer, int width, int height) throws java.lang.Exception
- Throws:
java.lang.Exception
-
brightnessContrastAndSharpnessOfImage
public BrightnessContrastSharpness brightnessContrastAndSharpnessOfImage(byte[] imageBuffer, int width, int height) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getMatrixFromExifOrientation
public static android.graphics.Matrix getMatrixFromExifOrientation(int exifOrientation)
-
-