AugmentedImageDatabaseEntry


class AugmentedImageDatabaseEntry


Defines an augmented image database entry that is going to be added to an AugmentedImageDatabase

Summary

Public constructors

AugmentedImageDatabaseEntry(
    bitmap: Bitmap,
    mode: AugmentedImageDatabaseEntryMode,
    widthInMeters: Float
)

Public functions

AugmentedImageDatabaseEntry
copy(
    bitmap: Bitmap,
    mode: AugmentedImageDatabaseEntryMode,
    widthInMeters: Float
)
open operator Boolean
equals(other: Any?)
open Int

Public properties

Bitmap

The bitmap of the image in android.graphics.Bitmap.Config.ARGB_8888 format

AugmentedImageDatabaseEntryMode

The AugmentedImageDatabaseEntryMode used to detect the image

Float

The physical width of the image in meters.

Public constructors

AugmentedImageDatabaseEntry

Added in 1.0.0-alpha14
AugmentedImageDatabaseEntry(
    bitmap: Bitmap,
    mode: AugmentedImageDatabaseEntryMode = AugmentedImageDatabaseEntryMode.DYNAMIC,
    widthInMeters: Float = 0.0f
)

Public functions

copy

Added in 1.0.0-alpha14
fun copy(
    bitmap: Bitmap = this.bitmap,
    mode: AugmentedImageDatabaseEntryMode = this.mode,
    widthInMeters: Float = this.widthInMeters
): AugmentedImageDatabaseEntry

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

bitmap

Added in 1.0.0-alpha14
val bitmapBitmap

The bitmap of the image in android.graphics.Bitmap.Config.ARGB_8888 format

mode

Added in 1.0.0-alpha14
val modeAugmentedImageDatabaseEntryMode

The AugmentedImageDatabaseEntryMode used to detect the image

widthInMeters

Added in 1.0.0-alpha14
val widthInMetersFloat

The physical width of the image in meters. If zero, the physical width will be estimated if the device supports it. If physical size estimation is not supported, configuring the Session adding an entry with widthInMeters being 0f or lower will throw an IllegalArgumentException