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 Bitmap
bitmap
public AnylineYuvImage
alYuvImage
public AnylineImage
anylineImage
-
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 Bitmap
getBitmap()
AnylineYuvImage
getAlYuvImage()
AnylineImage
getAnylineImage()
synchronized void
release()
Releases the resources taken up by this image. synchronized int
getWidth()
synchronized int
getHeight()
synchronized AnylineImage
clone()
synchronized String
toString()
-
-
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
-
-
-
-