Package io.anyline2.model
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.
-
-
Field Summary
Fields Modifier and Type Field Description public Bitmapbitmappublic AnylineYuvImagealYuvImagepublic AnylineImageanylineImage
-
Constructor Summary
Constructors Constructor Description AnylineImage(Bitmap bitmap)Create an AnylineImage from a Bitmap AnylineImage(AnylineYuvImage alYuvImage)Create an AnylineImage from a YuvImage
-
Method Summary
Modifier and Type Method Description synchronized BitmapgetBitmap()AnylineYuvImagegetAlYuvImage()AnylineImagegetAnylineImage()synchronized voidrelease()Releases the resources taken up by this image. synchronized intgetWidth()synchronized intgetHeight()synchronized AnylineImageclone()synchronized StringtoString()-
-
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
-
getAlYuvImage
AnylineYuvImage getAlYuvImage()
- Returns:
get this image as AnylineYuvImage, this may be null if it has been converted to Mat or Bitmap already
-
getAnylineImage
AnylineImage getAnylineImage()
-
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
-
clone
synchronized AnylineImage clone()
- Returns:
a deep copy of this image
-
-
-
-