Class AnylineImage

  • All Implemented Interfaces:
    java.lang.Cloneable

    
    public class AnylineImage
     implements Cloneable
                        

    A Image container that takes care of the different image formats used during processing.

    • Constructor Detail

      • AnylineImage

        AnylineImage(Bitmap bitmap)
        Create an AnylineImage from a Bitmap
        Parameters:
        bitmap - the bitmap
      • AnylineImage

        AnylineImage(AnylineYuvImage alYuvImage)
        Create an AnylineImage from a YuvImage
        Parameters:
        alYuvImage - the bitmap
    • Method Detail

      • getBitmap

         synchronized Bitmap getBitmap()
        Returns:

        this image as a Bitmap (ARGB_8888)

      • getAlYuvImage

         AnylineYuvImage getAlYuvImage()
        Returns:

        get this image as AnylineYuvImage, this may be null if it has been converted to Mat or Bitmap already

      • release

         synchronized void release()

        Releases the resources taken up by this image. Should be called whenever the image is not needed anymore.

      • getWidth

         synchronized int getWidth()
        Returns:

        the width of this image in pixels

      • getHeight

         synchronized int getHeight()
        Returns:

        the height of this image in pixels

      • toString

         synchronized String toString()
        Returns:

        a string description of the image containing width and height