Table of Contents

Class ImageTargetParameters

Namespace
easyar
Assembly
EasyAR.Sense.dll

ImageTargetParameters represents the parameters required to create an `ImageTarget`.

public class ImageTargetParameters : RefBase, IDisposable
Inheritance
ImageTargetParameters
Implements
Inherited Members

Constructors

ImageTargetParameters()

public ImageTargetParameters()

Methods

Clone()

public ImageTargetParameters Clone()

Returns

CloneObject()

protected override object CloneObject()

Returns

image()

Get the image.

public virtual Image image()

Returns

meta()

Get the meta data.

public virtual string meta()

Returns

name()

Get the target name. The name is used to distinguish targets.

public virtual string name()

Returns

scale()

The scale factor of the image. Its value is the ratio of the physical size of the image width to 1 meter, with a default value of 1.

public virtual float scale()

Returns

setImage(Image)

Set the image.

public virtual void setImage(Image image)

Parameters

image

setMeta(string)

Set the meta data.

public virtual void setMeta(string meta)

Parameters

meta

setName(string)

Set the target name.

public virtual void setName(string name)

Parameters

name

setScale(float)

Set the scale factor of the image. Its value is the ratio of the physical size of the image width to 1 meter, with a default value of 1. Also, you need to separately set this model scale in the rendering engine.

public virtual void setScale(float scale)

Parameters

scale

setUid(string)

Set the target UID.

public virtual void setUid(string uid)

Parameters

uid

uid()

Get the target UID. The target UID is used in cloud recognition algorithms. When not connected to cloud recognition, you can set this UID in the JSON configuration and use it in your own code as another way to distinguish targets.

public virtual string uid()

Returns