AugmentedImageDatabaseEntry


public final class AugmentedImageDatabaseEntry


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

Summary

Public constructors

AugmentedImageDatabaseEntry(
    @NonNull Bitmap bitmap,
    @NonNull AugmentedImageDatabaseEntryMode mode,
    float widthInMeters
)

Public methods

final @NonNull AugmentedImageDatabaseEntry
copy(
    @NonNull Bitmap bitmap,
    @NonNull AugmentedImageDatabaseEntryMode mode,
    float widthInMeters
)
boolean
equals(Object other)
final @NonNull Bitmap

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

final @NonNull AugmentedImageDatabaseEntryMode

The AugmentedImageDatabaseEntryMode used to detect the image

final float

The physical width of the image in meters.

int

Public constructors

AugmentedImageDatabaseEntry

Added in 1.0.0-alpha14
public AugmentedImageDatabaseEntry(
    @NonNull Bitmap bitmap,
    @NonNull AugmentedImageDatabaseEntryMode mode,
    float widthInMeters
)

Public methods

copy

Added in 1.0.0-alpha14
public final @NonNull AugmentedImageDatabaseEntry copy(
    @NonNull Bitmap bitmap,
    @NonNull AugmentedImageDatabaseEntryMode mode,
    float widthInMeters
)

equals

public boolean equals(Object other)

getBitmap

Added in 1.0.0-alpha14
public final @NonNull Bitmap getBitmap()

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

getMode

Added in 1.0.0-alpha14
public final @NonNull AugmentedImageDatabaseEntryMode getMode()

The AugmentedImageDatabaseEntryMode used to detect the image

getWidthInMeters

Added in 1.0.0-alpha14
public final float getWidthInMeters()

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

hashCode

public int hashCode()