Package 

Class ImageProcessor


  • 
    public final class ImageProcessor
    
                        

    Class for applying chains of image processing operations.

    • Constructor Detail

      • ImageProcessor

        ImageProcessor()
    • 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 image
        operations - list of operations serialized to JSON format
        forceCpu - 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 image
        operations - list of operations serialized to JSON format
        forceCpu - 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.

        Parameters:
        nv21 - provided image
        width - width of image, encoded in nv21
        height - height of image, encoded in nv21
        operations - list of operations serialized to JSON format
        forceCpu - do not use GPU even if it is supported
      • processJpeg

         final Bitmap processJpeg(ByteArray jpeg, String operations, Boolean forceCpu)

        Process provided image with list of operations.

        Parameters:
        jpeg - provided image
        operations - list of operations serialized to JSON format
        forceCpu - do not use GPU even if it is supported