-
public final class ImageProcessorClass for applying chains of image processing operations.
-
-
Constructor Summary
Constructors Constructor Description ImageProcessor()
-
Method Summary
Modifier and Type Method Description final Bitmapprocess(Bitmap image, String operations, Boolean forceCpu)Process provided image with list of operations. final BitmapprocessBitmap(Bitmap image, String operations, Boolean forceCpu)Process provided image with list of operations. final BitmapprocessNv21(ByteArray nv21, Integer width, Integer height, String operations, Boolean forceCpu)Process provided image with list of operations. final BitmapprocessJpeg(ByteArray jpeg, String operations, Boolean forceCpu)Process provided image with list of operations. -
-
Method Detail
-
process
@Deprecated(message = Deprecated in favor of explicitly named method, replaceWith = @ReplaceWith(imports = {}, expression = processBitmap(image, operations, forceCpu))) final Bitmap process(Bitmap image, String operations, Boolean forceCpu)
Process provided image with list of operations.
- Parameters:
image- provided imageoperations- list of operations serialized to JSON formatforceCpu- do not use GPU even if it is supported
-
processBitmap
final Bitmap processBitmap(Bitmap image, String operations, Boolean forceCpu)
Process provided image with list of operations.
- Parameters:
image- provided imageoperations- list of operations serialized to JSON formatforceCpu- do not use GPU even if it is supported
-
processNv21
final Bitmap processNv21(ByteArray nv21, Integer width, Integer height, String operations, Boolean forceCpu)
Process provided image with list of operations.
-
processJpeg
final Bitmap processJpeg(ByteArray jpeg, String operations, Boolean forceCpu)
Process provided image with list of operations.
- Parameters:
jpeg- provided imageoperations- list of operations serialized to JSON formatforceCpu- do not use GPU even if it is supported
-
-
-
-